| 35 |
//optPhoton(); |
//optPhoton(); |
| 36 |
appl->SetVerboseLevel(2); |
appl->SetVerboseLevel(2); |
| 37 |
// Initialize MC |
// Initialize MC |
| 38 |
appl->InitMC(configMacro); |
TString G4ConfMacro=G4WD+"/config/"+configMacro; |
| 39 |
|
appl->InitMC(G4ConfMacro); |
| 40 |
|
// appl->InitMC(configMacro); |
| 41 |
|
|
| 42 |
// Customise Geant4 setting after initialization: |
// Customise Geant4 setting after initialization: |
| 43 |
// Physics list |
// Physics list |
| 53 |
// gMC->SetCut("PPCUTM", 1.0e-6); |
// gMC->SetCut("PPCUTM", 1.0e-6); |
| 54 |
// gMC->SetCut("TOFMAX", 1.0e-3); |
// gMC->SetCut("TOFMAX", 1.0e-3); |
| 55 |
|
|
| 56 |
((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4config2.in"); |
((TGeant4*)gMC)->ProcessGeantMacro(G4WD+"/config/g4config2.in"); |
| 57 |
// Visualization settings |
// Visualization settings |
| 58 |
// ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4vis.in"); |
// ((TGeant4*)gMC)->ProcessGeantMacro(G4WD+"/config/g4vis.in"); |
| 59 |
|
|
| 60 |
((TGeant4*)gMC)->SetMaxNStep(50000); |
((TGeant4*)gMC)->SetMaxNStep(50000); |
| 61 |
//appl->GetPrimaryGenerator()->SetParticle(1000060120); |
//appl->GetPrimaryGenerator()->SetParticle(1000060120); |
| 71 |
//appl->GetPrimaryGenerator()->GenDirection(0.,TMath::Pi()/2.,0.,2*TMath::Pi()); |
//appl->GetPrimaryGenerator()->GenDirection(0.,TMath::Pi()/2.,0.,2*TMath::Pi()); |
| 72 |
//appl->GetPrimaryGenerator()->GenSpe(1.,5.,-2.75); |
//appl->GetPrimaryGenerator()->GenSpe(1.,5.,-2.75); |
| 73 |
// appl->GetPrimaryGenerator()->Print(); |
// appl->GetPrimaryGenerator()->Print(); |
| 74 |
// if (i==9) ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4vis.in"); |
// if (i==9) ((TGeant4*)gMC)->ProcessGeantMacro(G4WD+"/macro/g4vis.in"); |
| 75 |
appl->RunMC(1); |
appl->RunMC(1); |
| 76 |
|
|
| 77 |
} |
} |