Changeset 1209 for trunk/examples/novice/N03/src
- Timestamp:
- Dec 2, 2009, 3:57:26 PM (16 years ago)
- Location:
- trunk/examples/novice/N03/src
- Files:
-
- 10 edited
-
ExN03DetectorConstruction.cc (modified) (2 diffs)
-
ExN03DetectorMessenger.cc (modified) (1 diff)
-
ExN03EventAction.cc (modified) (3 diffs)
-
ExN03EventActionMessenger.cc (modified) (1 diff)
-
ExN03PhysicsList.cc (modified) (4 diffs)
-
ExN03PrimaryGeneratorAction.cc (modified) (1 diff)
-
ExN03PrimaryGeneratorMessenger.cc (modified) (1 diff)
-
ExN03RunAction.cc (modified) (3 diffs)
-
ExN03SteppingAction.cc (modified) (1 diff)
-
ExN03SteppingVerbose.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N03/src/ExN03DetectorConstruction.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03DetectorConstruction.cc,v 1.2 3 2006/06/29 17:48:54 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03DetectorConstruction.cc,v 1.24 2008/08/12 20:00:03 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 184 184 185 185 G4Material* CO2 = 186 new G4Material("CarbonicGas", density= 27.*mg/cm3, ncomponents=2,186 new G4Material("CarbonicGas", density= 1.842*mg/cm3, ncomponents=2, 187 187 kStateGas, 325.*kelvin, 50.*atmosphere); 188 188 CO2->AddElement(C, natoms=1); -
trunk/examples/novice/N03/src/ExN03DetectorMessenger.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03DetectorMessenger.cc,v 1.10 2006/06/29 17:48:58 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03EventAction.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03EventAction.cc,v 1.2 8 2006/10/26 14:30:05 allisonExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03EventAction.cc,v 1.29 2008/01/17 17:31:32 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 66 66 void ExN03EventAction::BeginOfEventAction(const G4Event* evt) 67 67 { 68 G4int evtNb = evt->GetEventID();69 if (evtNb%printModulo == 0) {70 G4cout << "\n---> Begin of event: " << evtNb << G4endl;71 CLHEP::HepRandom::showEngineStatus();72 }68 G4int evtNb = evt->GetEventID(); 69 if (evtNb%printModulo == 0) { 70 G4cout << "\n---> Begin of event: " << evtNb << G4endl; 71 CLHEP::HepRandom::showEngineStatus(); 72 } 73 73 74 74 // initialisation per event … … 103 103 << G4endl; 104 104 105 } 105 } 106 106 } 107 107 -
trunk/examples/novice/N03/src/ExN03EventActionMessenger.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03EventActionMessenger.cc,v 1.12 2006/10/26 14:28:00 allison Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03PhysicsList.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03PhysicsList.cc,v 1.2 1 2007/07/02 13:22:08 vnivanchExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03PhysicsList.cc,v 1.26 2009/11/15 14:48:40 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 142 142 #include "G4PhotoElectricEffect.hh" 143 143 144 #include "G4MultipleScattering.hh" 145 144 #include "G4eMultipleScattering.hh" 146 145 #include "G4eIonisation.hh" 147 146 #include "G4eBremsstrahlung.hh" 148 147 #include "G4eplusAnnihilation.hh" 149 148 149 #include "G4MuMultipleScattering.hh" 150 150 #include "G4MuIonisation.hh" 151 151 #include "G4MuBremsstrahlung.hh" 152 152 #include "G4MuPairProduction.hh" 153 153 154 #include "G4hMultipleScattering.hh" 154 155 #include "G4hIonisation.hh" 156 #include "G4hBremsstrahlung.hh" 157 #include "G4hPairProduction.hh" 158 159 #include "G4ionIonisation.hh" 155 160 156 161 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 172 177 } else if (particleName == "e-") { 173 178 //electron 174 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);175 pmanager->AddProcess(new G4eIonisation, -1, 2,2);176 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);179 pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); 180 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 181 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 177 182 178 183 } else if (particleName == "e+") { 179 184 //positron 180 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);181 pmanager->AddProcess(new G4eIonisation, -1, 2,2);182 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);183 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);184 185 pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); 186 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 187 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 188 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4); 189 185 190 } else if( particleName == "mu+" || 186 191 particleName == "mu-" ) { 187 192 //muon 188 pmanager->AddProcess(new G4MultipleScattering,-1, 1,1); 189 pmanager->AddProcess(new G4MuIonisation, -1, 2,2); 190 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3); 191 pmanager->AddProcess(new G4MuPairProduction, -1, 4,4); 193 pmanager->AddProcess(new G4MuMultipleScattering,-1, 1, 1); 194 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2); 195 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3); 196 pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4); 197 198 } else if( particleName == "proton" || 199 particleName == "pi-" || 200 particleName == "pi+" ) { 201 //proton 202 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 203 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 204 pmanager->AddProcess(new G4hBremsstrahlung, -1, 3, 3); 205 pmanager->AddProcess(new G4hPairProduction, -1, 4, 4); 192 206 193 } else if ((!particle->IsShortLived()) && 207 } else if( particleName == "alpha" || 208 particleName == "He3" ) { 209 //alpha 210 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 211 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 212 213 } else if( particleName == "GenericIon" ) { 214 //Ions 215 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 216 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 217 218 } else if ((!particle->IsShortLived()) && 194 219 (particle->GetPDGCharge() != 0.0) && 195 220 (particle->GetParticleName() != "chargedgeantino")) { 196 221 //all others charged particles except geantino 197 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);198 pmanager->AddProcess(new G4hIonisation, -1, 2,2);199 } 222 pmanager->AddProcess(new G4hMultipleScattering,-1, 1, 1); 223 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 224 } 200 225 } 201 226 } … … 237 262 SetCutValue(defaultCutValue, "e-"); 238 263 SetCutValue(defaultCutValue, "e+"); 264 SetCutValue(defaultCutValue, "proton"); 239 265 240 266 if (verboseLevel>0) DumpCutValuesTable(); -
trunk/examples/novice/N03/src/ExN03PrimaryGeneratorAction.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorAction.cc,v 1.8 2006/06/29 17:49:07 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03PrimaryGeneratorMessenger.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.9 2006/06/29 17:49:09 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03RunAction.cc
r609 r1209 25 25 // 26 26 // 27 // $Id: ExN03RunAction.cc,v 1.1 8 2006/06/29 17:49:11 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN03RunAction.cc,v 1.19 2008/01/17 17:31:32 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 55 55 //inform the runManager to save random number seed 56 56 G4RunManager::GetRunManager()->SetRandomNumberStore(true); 57 57 58 58 //initialize cumulative quantities 59 59 // … … 117 117 << " +- " << G4BestUnit(rmsLGap,"Length") 118 118 << "\n------------------------------------------------------------\n" 119 << G4endl; 119 << G4endl; 120 120 } 121 121 -
trunk/examples/novice/N03/src/ExN03SteppingAction.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03SteppingAction.cc,v 1.15 2006/06/29 17:49:13 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N03/src/ExN03SteppingVerbose.cc
r609 r1209 26 26 // 27 27 // $Id: ExN03SteppingVerbose.cc,v 1.13 2006/06/29 17:49:16 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note:
See TracChangeset
for help on using the changeset viewer.
