Changeset 1230 for trunk/examples/novice/N02
- Timestamp:
- Jan 8, 2010, 3:02:48 PM (16 years ago)
- Location:
- trunk/examples/novice/N02
- Files:
-
- 26 edited
-
exampleN02.cc (modified) (1 diff)
-
exampleN02.out (modified) (2 diffs)
-
include/ExN02ChamberParameterisation.hh (modified) (1 diff)
-
include/ExN02DetectorConstruction.hh (modified) (2 diffs)
-
include/ExN02DetectorMessenger.hh (modified) (2 diffs)
-
include/ExN02EventAction.hh (modified) (1 diff)
-
include/ExN02MagneticField.hh (modified) (1 diff)
-
include/ExN02PhysicsList.hh (modified) (2 diffs)
-
include/ExN02PrimaryGeneratorAction.hh (modified) (1 diff)
-
include/ExN02RunAction.hh (modified) (1 diff)
-
include/ExN02SteppingAction.hh (modified) (1 diff)
-
include/ExN02SteppingVerbose.hh (modified) (1 diff)
-
include/ExN02TrackerHit.hh (modified) (1 diff)
-
include/ExN02TrackerSD.hh (modified) (1 diff)
-
src/ExN02ChamberParameterisation.cc (modified) (1 diff)
-
src/ExN02DetectorConstruction.cc (modified) (2 diffs)
-
src/ExN02DetectorMessenger.cc (modified) (4 diffs)
-
src/ExN02EventAction.cc (modified) (1 diff)
-
src/ExN02MagneticField.cc (modified) (1 diff)
-
src/ExN02PhysicsList.cc (modified) (6 diffs)
-
src/ExN02PrimaryGeneratorAction.cc (modified) (1 diff)
-
src/ExN02RunAction.cc (modified) (1 diff)
-
src/ExN02SteppingAction.cc (modified) (1 diff)
-
src/ExN02SteppingVerbose.cc (modified) (1 diff)
-
src/ExN02TrackerHit.cc (modified) (1 diff)
-
src/ExN02TrackerSD.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N02/exampleN02.cc
r1189 r1230 26 26 // 27 27 // $Id: exampleN02.cc,v 1.16 2009/10/30 14:59:59 allison Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N02/exampleN02.out
r1189 r1230 5 5 6 6 ************************************************************* 7 Geant4 version Name: geant4-09-0 2-ref-09 (5-June-2009)7 Geant4 version Name: geant4-09-03-ref-00 (18-December-2009) 8 8 Copyright : Geant4 Collaboration 9 9 Reference : NIM A 506 (2003), 250-303 … … 175 175 BetheBloch : Emin= 1.05231 MeV Emax= 10 TeV 176 176 177 m sc: for mu+ SubType= 10177 muMsc: for mu+ SubType= 10 178 178 Lambda tables from 100 eV to 10 TeV in 77 bins, spline: 1 179 RangeFactor= 0.2, step LimitType: 0, latDisplacement: 1, skin= 3, geomFactor= 2.5179 RangeFactor= 0.2, step limit type: 0, lateralDisplacement: 1, polarAngleLimit(deg)= 0 180 180 ===== EM models for the G4Region DefaultRegionForTheWorld ====== 181 181 UrbanMsc90 : Emin= 0 eV Emax= 10 TeV -
trunk/examples/novice/N02/include/ExN02ChamberParameterisation.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02ChamberParameterisation.hh,v 1.10 2006/06/29 17:47:28 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N02/include/ExN02DetectorConstruction.hh
r807 r1230 25 25 // 26 26 // 27 // $Id: ExN02DetectorConstruction.hh,v 1. 9 2007/10/17 08:50:35 gcosmoExp $28 // GEANT4 tag $Name: $27 // $Id: ExN02DetectorConstruction.hh,v 1.10 2008/09/22 16:41:20 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 68 68 void setChamberMaterial(G4String); 69 69 void SetMagField(G4double); 70 void SetMaxStep (G4double); 70 71 71 72 private: -
trunk/examples/novice/N02/include/ExN02DetectorMessenger.hh
r807 r1230 25 25 // 26 26 // 27 // $Id: ExN02DetectorMessenger.hh,v 1. 8 2006/06/29 17:47:33 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN02DetectorMessenger.hh,v 1.9 2008/09/22 16:41:20 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 60 60 G4UIcmdWithAString* ChamMatCmd; 61 61 G4UIcmdWithADoubleAndUnit* FieldCmd; 62 G4UIcmdWithADoubleAndUnit* StepMaxCmd; 62 63 }; 63 64 -
trunk/examples/novice/N02/include/ExN02EventAction.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02EventAction.hh,v 1.8 2006/06/29 17:47:35 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/include/ExN02MagneticField.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02MagneticField.hh,v 1.8 2007/08/22 13:11:51 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/novice/N02/include/ExN02PhysicsList.hh
r807 r1230 25 25 // 26 26 // 27 // $Id: ExN02PhysicsList.hh,v 1.1 1 2006/06/29 17:47:40 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN02PhysicsList.hh,v 1.12 2008/09/22 16:41:20 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 64 64 void ConstructGeneral(); 65 65 void ConstructEM(); 66 void AddStepMax(); 66 67 }; 67 68 -
trunk/examples/novice/N02/include/ExN02PrimaryGeneratorAction.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02PrimaryGeneratorAction.hh,v 1.7 2006/06/29 17:47:43 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/include/ExN02RunAction.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02RunAction.hh,v 1.8 2006/06/29 17:47:45 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/include/ExN02SteppingAction.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02SteppingAction.hh,v 1.8 2006/06/29 17:47:48 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/include/ExN02SteppingVerbose.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02SteppingVerbose.hh,v 1.8 2006/06/29 17:47:50 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // This class manages the verbose outputs in G4SteppingManager. -
trunk/examples/novice/N02/include/ExN02TrackerHit.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02TrackerHit.hh,v 1.8 2006/06/29 17:47:53 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/include/ExN02TrackerSD.hh
r807 r1230 26 26 // 27 27 // $Id: ExN02TrackerSD.hh,v 1.7 2006/06/29 17:47:56 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02ChamberParameterisation.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02ChamberParameterisation.cc,v 1.9 2006/06/29 17:47:58 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02DetectorConstruction.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: ExN02DetectorConstruction.cc,v 1.2 0 2007/10/17 08:50:35 gcosmoExp $28 // GEANT4 tag $Name: $27 // $Id: ExN02DetectorConstruction.cc,v 1.21 2008/09/22 16:41:20 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 304 304 305 305 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 306 307 void ExN02DetectorConstruction::SetMaxStep(G4double maxStep) 308 { 309 if ((stepLimit)&&(maxStep>0.)) stepLimit->SetMaxAllowedStep(maxStep); 310 } 311 312 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02DetectorMessenger.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: ExN02DetectorMessenger.cc,v 1.1 1 2006/06/29 17:48:02 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN02DetectorMessenger.cc,v 1.12 2008/09/22 16:41:20 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 65 65 FieldCmd->SetParameterName("Bx",false); 66 66 FieldCmd->SetUnitCategory("Magnetic flux density"); 67 FieldCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 67 FieldCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 68 69 StepMaxCmd = new G4UIcmdWithADoubleAndUnit("/N02/det/stepMax",this); 70 StepMaxCmd->SetGuidance("Define a step max"); 71 StepMaxCmd->SetParameterName("stepMax",false); 72 StepMaxCmd->SetUnitCategory("Length"); 73 StepMaxCmd->AvailableForStates(G4State_Idle); 68 74 } 69 75 … … 75 81 delete ChamMatCmd; 76 82 delete FieldCmd; 83 delete StepMaxCmd; 77 84 delete detDir; 78 85 delete N02Dir; … … 91 98 if( command == FieldCmd ) 92 99 { myDetector->SetMagField(FieldCmd->GetNewDoubleValue(newValue));} 100 101 if( command == StepMaxCmd ) 102 { myDetector->SetMaxStep(StepMaxCmd->GetNewDoubleValue(newValue));} 93 103 } 94 104 -
trunk/examples/novice/N02/src/ExN02EventAction.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02EventAction.cc,v 1.11 2006/06/29 17:48:05 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02MagneticField.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02MagneticField.cc,v 1.9 2007/08/22 13:11:51 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // User Field class implementation. -
trunk/examples/novice/N02/src/ExN02PhysicsList.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: ExN02PhysicsList.cc,v 1.2 2 2006/06/29 17:48:11 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: ExN02PhysicsList.cc,v 1.27 2009/11/15 14:27:30 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 134 134 ConstructEM(); 135 135 ConstructGeneral(); 136 AddStepMax(); 136 137 } 137 138 … … 142 143 #include "G4PhotoElectricEffect.hh" 143 144 144 #include "G4MultipleScattering.hh" 145 145 #include "G4eMultipleScattering.hh" 146 146 #include "G4eIonisation.hh" 147 147 #include "G4eBremsstrahlung.hh" 148 148 #include "G4eplusAnnihilation.hh" 149 149 150 #include "G4MuMultipleScattering.hh" 150 151 #include "G4MuIonisation.hh" 151 152 #include "G4MuBremsstrahlung.hh" 152 153 #include "G4MuPairProduction.hh" 153 154 155 #include "G4hMultipleScattering.hh" 154 156 #include "G4hIonisation.hh" 155 156 #include "G4StepLimiter.hh" 157 #include "G4UserSpecialCuts.hh" 157 #include "G4hBremsstrahlung.hh" 158 #include "G4hPairProduction.hh" 159 160 #include "G4ionIonisation.hh" 158 161 159 162 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 175 178 } else if (particleName == "e-") { 176 179 //electron 177 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);178 pmanager->AddProcess(new G4eIonisation, -1, 2,2);179 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);180 pmanager->AddProcess(new G4eMultipleScattering, -1, 1, 1); 181 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 182 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 180 183 181 184 } else if (particleName == "e+") { 182 185 //positron 183 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);184 pmanager->AddProcess(new G4eIonisation, -1, 2,2);185 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);186 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);186 pmanager->AddProcess(new G4eMultipleScattering, -1, 1, 1); 187 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 188 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 189 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4); 187 190 188 191 } else if( particleName == "mu+" || 189 192 particleName == "mu-" ) { 190 193 //muon 191 pmanager->AddProcess(new G4MultipleScattering,-1, 1,1); 192 pmanager->AddProcess(new G4MuIonisation, -1, 2,2); 193 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3); 194 pmanager->AddProcess(new G4MuPairProduction, -1, 4,4); 195 194 pmanager->AddProcess(new G4MuMultipleScattering, -1, 1, 1); 195 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2); 196 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3); 197 pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4); 198 199 } else if( particleName == "proton" || 200 particleName == "pi-" || 201 particleName == "pi+" ) { 202 //proton 203 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 204 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 205 pmanager->AddProcess(new G4hBremsstrahlung, -1, 3, 3); 206 pmanager->AddProcess(new G4hPairProduction, -1, 4, 4); 207 208 } else if( particleName == "alpha" || 209 particleName == "He3" ) { 210 //alpha 211 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 212 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 213 214 } else if( particleName == "GenericIon" ) { 215 //Ions 216 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 217 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 218 196 219 } else if ((!particle->IsShortLived()) && 197 220 (particle->GetPDGCharge() != 0.0) && 198 221 (particle->GetParticleName() != "chargedgeantino")) { 199 222 //all others charged particles except geantino 200 pmanager->AddProcess(new G4MultipleScattering,-1, 1,1); 201 pmanager->AddProcess(new G4hIonisation, -1, 2,2); 202 //step limit 203 pmanager->AddProcess(new G4StepLimiter, -1,-1,3); 204 ///pmanager->AddProcess(new G4UserSpecialCuts, -1,-1,4); 223 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 224 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 205 225 } 206 226 } … … 210 230 211 231 #include "G4Decay.hh" 232 212 233 void ExN02PhysicsList::ConstructGeneral() 213 234 { … … 226 247 } 227 248 } 249 250 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 251 252 #include "G4StepLimiter.hh" 253 #include "G4UserSpecialCuts.hh" 254 255 void ExN02PhysicsList::AddStepMax() 256 { 257 // Step limitation seen as a process 258 G4StepLimiter* stepLimiter = new G4StepLimiter(); 259 ////G4UserSpecialCuts* userCuts = new G4UserSpecialCuts(); 260 261 theParticleIterator->reset(); 262 while ((*theParticleIterator)()){ 263 G4ParticleDefinition* particle = theParticleIterator->value(); 264 G4ProcessManager* pmanager = particle->GetProcessManager(); 265 266 if (particle->GetPDGCharge() != 0.0) 267 { 268 pmanager ->AddDiscreteProcess(stepLimiter); 269 ////pmanager ->AddDiscreteProcess(userCuts); 270 } 271 } 272 } 228 273 229 274 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02PrimaryGeneratorAction.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02PrimaryGeneratorAction.cc,v 1.7 2006/06/29 17:48:13 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02RunAction.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02RunAction.cc,v 1.9 2006/06/29 17:48:16 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02SteppingAction.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02SteppingAction.cc,v 1.9 2006/06/29 17:48:18 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02SteppingVerbose.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02SteppingVerbose.cc,v 1.12 2006/06/29 17:48:21 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02TrackerHit.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02TrackerHit.cc,v 1.10 2006/06/29 17:48:24 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/novice/N02/src/ExN02TrackerSD.cc
r807 r1230 26 26 // 27 27 // $Id: ExN02TrackerSD.cc,v 1.9 2006/06/29 17:48:27 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.
