Changeset 1337 for trunk/examples/extended/analysis/N03Con/src
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/analysis/N03Con/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/analysis/N03Con/src/ExN03DetectorConstruction.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03DetectorConstruction.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/analysis/N03Con/src/ExN03DetectorMessenger.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03DetectorMessenger.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/analysis/N03Con/src/ExN03EventAction.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03EventAction.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/analysis/N03Con/src/ExN03EventActionMessenger.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03EventActionMessenger.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/analysis/N03Con/src/ExN03PhysicsList.cc
r1230 r1337 25 25 // 26 26 // 27 // $Id: ExN03PhysicsList.cc,v 1. 1 2007/05/26 00:18:28 tkoi Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: ExN03PhysicsList.cc,v 1.2 2010/03/31 21:43:48 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // … … 36 36 37 37 #include "G4ProcessManager.hh" 38 #include "G4ParticleTypes.hh" 38 39 #include "G4BosonConstructor.hh" 40 #include "G4LeptonConstructor.hh" 41 #include "G4MesonConstructor.hh" 42 #include "G4BosonConstructor.hh" 43 #include "G4BaryonConstructor.hh" 44 #include "G4IonConstructor.hh" 39 45 40 46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 42 48 ExN03PhysicsList::ExN03PhysicsList(): G4VUserPhysicsList() 43 49 { 44 defaultCutValue = 1.0*mm;45 SetVerboseLevel(1);50 defaultCutValue = 1.0*mm; 51 SetVerboseLevel(1); 46 52 } 47 53 … … 60 66 // created in the program. 61 67 62 ConstructBosons(); 63 ConstructLeptons(); 64 ConstructMesons(); 65 ConstructBaryons(); 66 } 67 68 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 69 70 void ExN03PhysicsList::ConstructBosons() 71 { 72 // pseudo-particles 73 G4Geantino::GeantinoDefinition(); 74 G4ChargedGeantino::ChargedGeantinoDefinition(); 75 76 // gamma 77 G4Gamma::GammaDefinition(); 78 79 // optical photon 80 G4OpticalPhoton::OpticalPhotonDefinition(); 81 } 82 83 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 84 85 void ExN03PhysicsList::ConstructLeptons() 86 { 87 // leptons 88 G4Electron::ElectronDefinition(); 89 G4Positron::PositronDefinition(); 90 G4MuonPlus::MuonPlusDefinition(); 91 G4MuonMinus::MuonMinusDefinition(); 92 93 G4NeutrinoE::NeutrinoEDefinition(); 94 G4AntiNeutrinoE::AntiNeutrinoEDefinition(); 95 G4NeutrinoMu::NeutrinoMuDefinition(); 96 G4AntiNeutrinoMu::AntiNeutrinoMuDefinition(); 97 } 98 99 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 100 101 void ExN03PhysicsList::ConstructMesons() 102 { 103 // mesons 104 G4PionPlus::PionPlusDefinition(); 105 G4PionMinus::PionMinusDefinition(); 106 G4PionZero::PionZeroDefinition(); 107 G4Eta::EtaDefinition(); 108 G4EtaPrime::EtaPrimeDefinition(); 109 G4KaonPlus::KaonPlusDefinition(); 110 G4KaonMinus::KaonMinusDefinition(); 111 G4KaonZero::KaonZeroDefinition(); 112 G4AntiKaonZero::AntiKaonZeroDefinition(); 113 G4KaonZeroLong::KaonZeroLongDefinition(); 114 G4KaonZeroShort::KaonZeroShortDefinition(); 115 } 116 117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 118 119 void ExN03PhysicsList::ConstructBaryons() 120 { 121 // barions 122 G4Proton::ProtonDefinition(); 123 G4AntiProton::AntiProtonDefinition(); 124 G4Neutron::NeutronDefinition(); 125 G4AntiNeutron::AntiNeutronDefinition(); 126 } 127 68 G4BosonConstructor pBosonConstructor; 69 pBosonConstructor.ConstructParticle(); 70 71 G4LeptonConstructor pLeptonConstructor; 72 pLeptonConstructor.ConstructParticle(); 73 74 G4MesonConstructor pMesonConstructor; 75 pMesonConstructor.ConstructParticle(); 76 77 G4BaryonConstructor pBaryonConstructor; 78 pBaryonConstructor.ConstructParticle(); 79 80 G4IonConstructor pIonConstructor; 81 pIonConstructor.ConstructParticle(); 82 } 128 83 129 84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 133 88 AddTransportation(); 134 89 ConstructEM(); 135 Construct General();90 ConstructDecay(); 136 91 } 137 92 … … 142 97 #include "G4PhotoElectricEffect.hh" 143 98 144 #include "G4MultipleScattering.hh" 145 99 #include "G4eMultipleScattering.hh" 146 100 #include "G4eIonisation.hh" 147 101 #include "G4eBremsstrahlung.hh" 148 102 #include "G4eplusAnnihilation.hh" 149 103 104 #include "G4MuMultipleScattering.hh" 150 105 #include "G4MuIonisation.hh" 151 106 #include "G4MuBremsstrahlung.hh" 152 107 #include "G4MuPairProduction.hh" 153 108 109 #include "G4hMultipleScattering.hh" 154 110 #include "G4hIonisation.hh" 111 #include "G4hBremsstrahlung.hh" 112 #include "G4hPairProduction.hh" 113 114 #include "G4ionIonisation.hh" 155 115 156 116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 172 132 } else if (particleName == "e-") { 173 133 //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);134 pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); 135 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 136 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 177 137 178 138 } else if (particleName == "e+") { 179 139 //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 140 pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); 141 pmanager->AddProcess(new G4eIonisation, -1, 2, 2); 142 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3); 143 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4); 144 185 145 } else if( particleName == "mu+" || 186 146 particleName == "mu-" ) { 187 147 //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); 148 pmanager->AddProcess(new G4MuMultipleScattering,-1, 1, 1); 149 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2); 150 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3); 151 pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4); 152 153 } else if( particleName == "proton" || 154 particleName == "pi-" || 155 particleName == "pi+" ) { 156 //proton 157 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 158 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 159 pmanager->AddProcess(new G4hBremsstrahlung, -1, 3, 3); 160 pmanager->AddProcess(new G4hPairProduction, -1, 4, 4); 192 161 193 } else if ((!particle->IsShortLived()) && 162 } else if( particleName == "alpha" || 163 particleName == "He3" ) { 164 //alpha 165 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 166 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 167 168 } else if( particleName == "GenericIon" ) { 169 //Ions 170 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); 171 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); 172 173 } else if ((!particle->IsShortLived()) && 194 174 (particle->GetPDGCharge() != 0.0) && 195 175 (particle->GetParticleName() != "chargedgeantino")) { 196 176 //all others charged particles except geantino 197 pmanager->AddProcess(new G4 MultipleScattering,-1, 1,1);198 pmanager->AddProcess(new G4hIonisation, -1, 2,2);199 } 177 pmanager->AddProcess(new G4hMultipleScattering,-1, 1, 1); 178 pmanager->AddProcess(new G4hIonisation, -1, 2, 2); 179 } 200 180 } 201 181 } … … 205 185 #include "G4Decay.hh" 206 186 207 void ExN03PhysicsList::Construct General()187 void ExN03PhysicsList::ConstructDecay() 208 188 { 209 189 // Add Decay Process 210 190 G4Decay* theDecayProcess = new G4Decay(); 211 191 theParticleIterator->reset(); 212 192 while( (*theParticleIterator)() ){ … … 237 217 SetCutValue(defaultCutValue, "e-"); 238 218 SetCutValue(defaultCutValue, "e+"); 219 SetCutValue(defaultCutValue, "proton"); 239 220 240 221 if (verboseLevel>0) DumpCutValuesTable(); -
trunk/examples/extended/analysis/N03Con/src/ExN03PrimaryGeneratorAction.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorAction.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/analysis/N03Con/src/ExN03PrimaryGeneratorMessenger.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/analysis/N03Con/src/ExN03RunAction.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03RunAction.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/analysis/N03Con/src/ExN03SteppingAction.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03SteppingAction.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/analysis/N03Con/src/ExN03SteppingVerbose.cc
r1230 r1337 26 26 // 27 27 // $Id: ExN03SteppingVerbose.cc,v 1.1 2007/05/26 00:18:28 tkoi Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracChangeset
for help on using the changeset viewer.