Changeset 1315 for trunk/source/processes/electromagnetic/standard/test
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- Location:
- trunk/source/processes/electromagnetic/standard/test
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/test/BremLPMTest.cc
r1199 r1315 25 25 // 26 26 // $Id: BremLPMTest.cc,v 1.2 2008/08/22 08:16:17 schaelic Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------ -
trunk/source/processes/electromagnetic/standard/test/CrossSectionStd.cc
r1199 r1315 26 26 // 27 27 // $Id: CrossSectionStd.cc,v 1.5 2006/06/29 19:54:07 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // ------------------------------------------------------------ -
trunk/source/processes/electromagnetic/standard/test/CrossSectionV52.cc
r1199 r1315 26 26 // 27 27 // $Id: CrossSectionV52.cc,v 1.4 2006/06/29 19:54:09 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // ------------------------------------------------------------ -
trunk/source/processes/electromagnetic/standard/test/G4InitXscPAItest.cc
r1199 r1315 26 26 // 27 27 // $Id: G4InitXscPAItest.cc,v 1.6 2006/06/29 19:54:11 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // -
trunk/source/processes/electromagnetic/standard/test/G4PAIdNdxTest.cc
r1199 r1315 26 26 // 27 27 // $Id: G4PAIdNdxTest.cc,v 1.8 2008/04/14 14:53:39 grichine Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // -
trunk/source/processes/electromagnetic/standard/test/G4PAIxSectionTest.cc
r1199 r1315 25 25 // 26 26 // 27 // $Id: G4PAIxSectionTest.cc,v 1.1 5 2006/06/29 19:54:15 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: G4PAIxSectionTest.cc,v 1.16 2009/12/30 12:57:41 grichine Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 432 432 outFile <<k<<"\t"<< " Material : " <<(*theMaterialTable)[k]->GetName() << G4endl ; 433 433 } 434 G4String testName ;434 G4String testName = "Argon" ; 435 435 G4cout<<"Enter material name for test : "<<std::flush ; 436 436 // G4cin>>testName ; … … 448 448 449 449 450 for( k=0;k<numOfMaterials;k++)450 for( k = 0; k < numOfMaterials; k++ ) 451 451 { 452 //if((*theMaterialTable)[k]->GetName() != testName) continue ;452 if((*theMaterialTable)[k]->GetName() != testName) continue ; 453 453 outFile << "Material : " <<(*theMaterialTable)[k]->GetName() << G4endl ; 454 454 G4cout << "Material : " <<(*theMaterialTable)[k]->GetName() << G4endl ; … … 543 543 // G4PAIxSection testPAIproton(k,maxEnergyTransfer) ; 544 544 545 kineticEnergy = 10 .0*keV ; // 110*MeV ;545 kineticEnergy = 100.*MeV; // 10.0*keV ; // 110*MeV ; 546 546 547 547 // for(j=1;j<testPAIproton.GetNumberOfGammas();j++) -
trunk/source/processes/electromagnetic/standard/test/PAIenergyLossTest.cc
r1199 r1315 26 26 // 27 27 // $Id: PAIenergyLossTest.cc,v 1.8 2006/06/29 19:54:17 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // -
trunk/source/processes/electromagnetic/standard/test/readBremLPM.py
r1199 r1315 1 1 # $Id: readBremLPM.py,v 1.2 2008/08/22 08:16:17 schaelic Exp $ 2 # GEANT4 tag $Name: geant4-09-0 3-cand-01 $2 # GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 3 3 # 4 4 # works together with BremLPMTest.cc -
trunk/source/processes/electromagnetic/standard/test/test90Ne10CO2pai.cc
r1199 r1315 25 25 // 26 26 // 27 // $Id: test90Ne10CO2pai.cc,v 1. 6 2008/12/18 13:01:40 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: test90Ne10CO2pai.cc,v 1.8 2009/12/30 12:57:41 grichine Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 38 38 // 11.04.08, V. Grichine test of PAI predictions for 90% Ne + 10% CO2 39 39 // ALICE TPC gas mixture 40 // 8.12.09 V. Grichine update for T2K gas mixture 40 41 41 42 #include "G4ios.hh" … … 150 151 int main() 151 152 { 152 std::ofstream outFile("90Ne10CO2pai.dat", std::ios::out ); 153 // std::ofstream outFile("90Ne10CO2pai.dat", std::ios::out ); 154 std::ofstream outFile("e5GeVt2kPhilippe.dat", std::ios::out ); 153 155 outFile.setf( std::ios::scientific, std::ios::floatfield ); 154 156 … … 174 176 175 177 178 a = 1.01*g/mole; 179 G4Isotope* ih1 = new G4Isotope("Hydrogen",iz=1,n=1,a); 180 181 a = 2.01*g/mole; 182 G4Isotope* ih2 = new G4Isotope("Deuterium",iz=1,n=2,a); 183 184 G4Element* elH = new G4Element(name="Hydrogen",symbol="H",2); 185 elH->AddIsotope(ih1,.999); 186 elH->AddIsotope(ih2,.001); 187 176 188 a = 12.01*g/mole; 177 189 G4Element* elC = new G4Element(name="Carbon",symbol="C", ez=6., a); … … 183 195 G4Element* elO = new G4Element(name="Oxygen",symbol="O", ez=8., a); 184 196 197 198 a = 19.00*g/mole; 199 G4Element* elF = new G4Element(name="Fluorine", symbol="F", z=9., a); 185 200 201 a = 39.948*g/mole; 202 G4Element* elAr = new G4Element(name="Argon", symbol="Ar", z=18., a); 186 203 187 204 // Neon as detector gas, STP … … 232 249 density *= 0.966/1.01325; 233 250 234 G4cout<<"density of Ne857CO295N2T292 = "<<density*cm3/mg<<" mg/cm3"<<G4endl;251 // G4cout<<"density of Ne857CO295N2T292 = "<<density*cm3/mg<<" mg/cm3"<<G4endl; 235 252 236 253 G4Material* Ne857CO295N2T292 = new G4Material(name="Ne857CO295N2T292" , density, … … 241 258 242 259 260 261 // Ar as detector gas,STP 262 263 density = 1.7836*mg/cm3 ; // STP 264 G4Material* Argon = new G4Material(name="Argon" , density, ncomponents=1); 265 Argon->AddElement(elAr, 1); 266 /* 267 // iso-Butane (methylpropane), STP 268 269 density = 2.67*mg/cm3 ; 270 G4Material* isobutane = new G4Material(name="isoC4H10",density,nel=2) ; 271 isobutane->AddElement(elC,4) ; 272 isobutane->AddElement(elH,10) ; 273 274 // CF4 from ATLAS TRT estimation 275 276 G4double TRT_CF4_density = 3.9*mg/cm3; 277 G4Material* TRT_CF4 = new G4Material(name="TRT_CF4", TRT_CF4_density, nel=2, 278 kStateGas,293.15*kelvin,1.*atmosphere); 279 */ 280 281 // Philippe Gros T2K mixture version 282 // Argon 283 /* 284 density = 1.66*mg/cm3; 285 pressure = 1*atmosphere; 286 temperature = 288.15*kelvin; 287 G4Material* Argon = new G4Material(name="Ar", // z=18., a=39.948*g/mole, 288 density, ncomponents=1); // kStateGas,temperature,pressure); 289 Argon->AddElement(elAr, 1); 290 */ 291 292 // IsoButane 293 294 density = 2.51*mg/cm3; 295 G4Material* Isobu = new G4Material(name="isoC4H10", z=34.,a=58.123*g/mole, 296 density, kStateGas,temperature,pressure); 297 298 // Tetrafluoromethane 299 300 density = 3.72*mg/cm3; 301 G4Material* FlMet = new 302 G4Material(name="CF4",z=42.,a=88.01*g/mole,density,kStateGas,temperature,pressure); 303 304 // Argon + 3% tetrafluoromethane + 2% iso-butane 305 306 density = 1.748*mg/cm3; 307 G4Material* t2kGasMixture = new G4Material(name="t2kGasMixture", density, ncomponents=3); 308 t2kGasMixture->AddMaterial(Argon, fractionmass = 90.9*perCent); 309 t2kGasMixture->AddMaterial(FlMet, fractionmass = 6.3*perCent); 310 t2kGasMixture->AddMaterial(Isobu, fractionmass = 2.8*perCent); 311 312 243 313 G4int i, j, jMax, k, numOfMaterials, iSan, nbOfElements, sanIndex, row; 244 314 G4double maxEnergyTransfer, kineticEnergy; … … 261 331 262 332 // G4String testName = "N2"; 263 G4String testName = "Ne10CO2"; 333 // G4String testName = "Ne10CO2"; 334 G4String testName = "t2kGasMixture"; 335 // G4String testName = "Ar"; 336 // G4String testName = "Argon"; 264 337 // G4String testName = "Ne10CO2T293"; 265 338 // G4String testName = "Ne857CO295N2T292"; … … 372 445 373 446 374 kineticEnergy = 10.0*keV; // 100.*GeV; // 10.0*keV; // 110*MeV; // for proton 447 // kineticEnergy = 10.0*keV; // 100.*GeV; // 10.0*keV; // 110*MeV; // for proton 448 449 // kineticEnergy = 5*GeV; // for electrons 450 451 kineticEnergy = 5*GeV*proton_mass_c2/electron_mass_c2; 452 453 // kineticEnergy = 5*GeV; 375 454 376 455 // for(j=1;j<testPAIproton.GetNumberOfGammas();j++) 377 456 378 jMax = 70; // 70; 379 380 outFile<<jMax<<G4endl; 457 // jMax = 70; // 70; 458 jMax = 1; // 70; 459 460 // outFile<<jMax<<G4endl; 381 461 382 462 for( j = 0; j < jMax; j++ ) 383 463 { 384 464 tau = kineticEnergy/proton_mass_c2; 465 // tau = kineticEnergy/electron_mass_c2; 385 466 gamma = tau +1.0; 386 467 bg2 = tau*(tau + 2.0); 387 468 bg = std::sqrt(bg2); 388 469 beta2 = bg2/(gamma*gamma); 389 //G4cout<<"bg = "<<bg<<"; b2 = "<<beta2<<G4endl<<G4endl;470 G4cout<<"bg = "<<bg<<"; b2 = "<<beta2<<G4endl<<G4endl; 390 471 rateMass = electron_mass_c2/proton_mass_c2; 391 392 Tmax = 2.0*electron_mass_c2*bg2393 /(1.0+2.0*gamma*rateMass+rateMass*rateMass);472 473 Tmax = 2.0*electron_mass_c2*bg2/(1.0+2.0*gamma*rateMass+rateMass*rateMass); 474 // Tmax = 0.5*kineticEnergy; 394 475 395 476 Tkin = maxEnergyTransfer; … … 404 485 } 405 486 G4PAIxSection testPAIproton(k,Tkin,bg2); 406 487 /* 407 488 G4cout 408 489 // << kineticEnergy/keV<<"\t\t" … … 444 525 // <<testPAIproton.GetPAItable(1,j)*cm<<"\t\t"<<G4endl; 445 526 446 447 /*527 */ 528 448 529 outFile<<testPAIproton.GetSplineSize()-1<<G4endl; 449 530 … … 451 532 { 452 533 outFile 534 << testPAIproton.GetSplineEnergy(i)/keV << "\t" 535 // << testPAIproton.GetIntegralCerenkov(i)*cm << "\t" 536 // << testPAIproton.GetIntegralMM(i)*cm << "\t" 537 // << testPAIproton.GetIntegralPlasmon(i)*cm << "\t" 538 // << testPAIproton.GetIntegralResonance(i)*cm << "\t" 539 << testPAIproton.GetIntegralPAIxSection(i)*cm << "\t" 540 << G4endl; 541 542 G4cout 453 543 << testPAIproton.GetSplineEnergy(i)/keV << "\t" 454 544 << testPAIproton.GetIntegralCerenkov(i)*cm << "\t" … … 458 548 << testPAIproton.GetIntegralPAIxSection(i)*cm << "\t" 459 549 << G4endl; 550 460 551 } 461 552 462 */553 463 554 464 555
Note: See TracChangeset
for help on using the changeset viewer.