[825] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
[1340] | 26 | // $Id: G4EmStandardPhysics_option1.cc,v 1.19 2010/10/10 15:18:34 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: phys-lists-V09-03-34 $ |
---|
[825] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: G4EmStandardPhysics_option1 |
---|
| 32 | // |
---|
| 33 | // Author: V.Ivanchenko 09.11.2005 |
---|
| 34 | // |
---|
| 35 | // Modified: |
---|
| 36 | // 19.12.2005 V.Ivanchenko StepFunction for electrons (1.0, 1.0*mm) |
---|
| 37 | // 21.06.2006 V.Ivanchenko use recent msc with step limitation off |
---|
| 38 | // 23.06.2006 V.Ivanchenko set dRoverRange = 0.8 for e- and e+ |
---|
| 39 | // 13.11.2006 V.Ivanchenko use G4hMultipleScattering |
---|
| 40 | // 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout |
---|
| 41 | // 13.02.2007 V.Ivanchenko set skin=0.0 |
---|
| 42 | // 15.05.2007 V.Ivanchenko rename to _option1 |
---|
[850] | 43 | // 21.04.2008 V.Ivanchenko add long-lived D and B mesons |
---|
[825] | 44 | // |
---|
| 45 | //---------------------------------------------------------------------------- |
---|
| 46 | // |
---|
| 47 | |
---|
| 48 | #include "G4EmStandardPhysics_option1.hh" |
---|
| 49 | #include "G4ParticleDefinition.hh" |
---|
| 50 | #include "G4ProcessManager.hh" |
---|
| 51 | #include "G4LossTableManager.hh" |
---|
| 52 | #include "G4EmProcessOptions.hh" |
---|
| 53 | |
---|
| 54 | #include "G4ComptonScattering.hh" |
---|
| 55 | #include "G4GammaConversion.hh" |
---|
| 56 | #include "G4PhotoElectricEffect.hh" |
---|
| 57 | |
---|
[921] | 58 | #include "G4eMultipleScattering.hh" |
---|
[1203] | 59 | #include "G4MuMultipleScattering.hh" |
---|
[825] | 60 | #include "G4hMultipleScattering.hh" |
---|
[1340] | 61 | //#include "G4MscStepLimitType.hh" |
---|
| 62 | #include "G4WentzelVIModel.hh" |
---|
[825] | 63 | |
---|
| 64 | #include "G4eIonisation.hh" |
---|
| 65 | #include "G4eBremsstrahlung.hh" |
---|
| 66 | #include "G4eplusAnnihilation.hh" |
---|
| 67 | |
---|
| 68 | #include "G4MuIonisation.hh" |
---|
| 69 | #include "G4MuBremsstrahlung.hh" |
---|
| 70 | #include "G4MuPairProduction.hh" |
---|
[921] | 71 | #include "G4hBremsstrahlung.hh" |
---|
| 72 | #include "G4hPairProduction.hh" |
---|
[825] | 73 | |
---|
| 74 | #include "G4hIonisation.hh" |
---|
| 75 | #include "G4ionIonisation.hh" |
---|
[1340] | 76 | #include "G4alphaIonisation.hh" |
---|
[825] | 77 | |
---|
| 78 | #include "G4Gamma.hh" |
---|
| 79 | #include "G4Electron.hh" |
---|
| 80 | #include "G4Positron.hh" |
---|
| 81 | #include "G4MuonPlus.hh" |
---|
| 82 | #include "G4MuonMinus.hh" |
---|
| 83 | #include "G4PionPlus.hh" |
---|
| 84 | #include "G4PionMinus.hh" |
---|
| 85 | #include "G4KaonPlus.hh" |
---|
| 86 | #include "G4KaonMinus.hh" |
---|
| 87 | #include "G4Proton.hh" |
---|
| 88 | #include "G4AntiProton.hh" |
---|
| 89 | #include "G4Deuteron.hh" |
---|
| 90 | #include "G4Triton.hh" |
---|
| 91 | #include "G4He3.hh" |
---|
| 92 | #include "G4Alpha.hh" |
---|
| 93 | #include "G4GenericIon.hh" |
---|
| 94 | |
---|
| 95 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 96 | |
---|
[1315] | 97 | G4EmStandardPhysics_option1::G4EmStandardPhysics_option1(G4int ver) |
---|
| 98 | : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver) |
---|
[825] | 99 | { |
---|
| 100 | G4LossTableManager::Instance(); |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 104 | |
---|
[1315] | 105 | G4EmStandardPhysics_option1::G4EmStandardPhysics_option1(G4int ver, const G4String&) |
---|
| 106 | : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver) |
---|
| 107 | { |
---|
| 108 | G4LossTableManager::Instance(); |
---|
| 109 | } |
---|
| 110 | |
---|
| 111 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 112 | |
---|
[825] | 113 | G4EmStandardPhysics_option1::~G4EmStandardPhysics_option1() |
---|
| 114 | {} |
---|
| 115 | |
---|
| 116 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 117 | |
---|
| 118 | void G4EmStandardPhysics_option1::ConstructParticle() |
---|
| 119 | { |
---|
| 120 | // gamma |
---|
| 121 | G4Gamma::Gamma(); |
---|
| 122 | |
---|
| 123 | // leptons |
---|
| 124 | G4Electron::Electron(); |
---|
| 125 | G4Positron::Positron(); |
---|
| 126 | G4MuonPlus::MuonPlus(); |
---|
| 127 | G4MuonMinus::MuonMinus(); |
---|
| 128 | |
---|
| 129 | // mesons |
---|
| 130 | G4PionPlus::PionPlusDefinition(); |
---|
| 131 | G4PionMinus::PionMinusDefinition(); |
---|
| 132 | G4KaonPlus::KaonPlusDefinition(); |
---|
| 133 | G4KaonMinus::KaonMinusDefinition(); |
---|
| 134 | |
---|
| 135 | // barions |
---|
| 136 | G4Proton::Proton(); |
---|
| 137 | G4AntiProton::AntiProton(); |
---|
| 138 | |
---|
| 139 | // ions |
---|
| 140 | G4Deuteron::Deuteron(); |
---|
| 141 | G4Triton::Triton(); |
---|
| 142 | G4He3::He3(); |
---|
| 143 | G4Alpha::Alpha(); |
---|
| 144 | G4GenericIon::GenericIonDefinition(); |
---|
| 145 | } |
---|
| 146 | |
---|
| 147 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 148 | |
---|
| 149 | void G4EmStandardPhysics_option1::ConstructProcess() |
---|
| 150 | { |
---|
| 151 | // Add standard EM Processes |
---|
| 152 | |
---|
| 153 | theParticleIterator->reset(); |
---|
| 154 | while( (*theParticleIterator)() ){ |
---|
| 155 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
| 156 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
| 157 | G4String particleName = particle->GetParticleName(); |
---|
| 158 | if(verbose > 1) |
---|
| 159 | G4cout << "### " << GetPhysicsName() << " instantiates for " |
---|
| 160 | << particleName << G4endl; |
---|
| 161 | |
---|
| 162 | if (particleName == "gamma") { |
---|
| 163 | |
---|
| 164 | pmanager->AddDiscreteProcess(new G4PhotoElectricEffect); |
---|
| 165 | pmanager->AddDiscreteProcess(new G4ComptonScattering); |
---|
| 166 | pmanager->AddDiscreteProcess(new G4GammaConversion); |
---|
| 167 | |
---|
| 168 | } else if (particleName == "e-") { |
---|
| 169 | |
---|
| 170 | G4eIonisation* eioni = new G4eIonisation(); |
---|
| 171 | eioni->SetStepFunction(0.8, 1.0*mm); |
---|
[921] | 172 | G4eMultipleScattering* msc = new G4eMultipleScattering; |
---|
[825] | 173 | msc->SetStepLimitType(fMinimal); |
---|
| 174 | pmanager->AddProcess(msc, -1, 1, 1); |
---|
| 175 | pmanager->AddProcess(eioni, -1, 2, 2); |
---|
[921] | 176 | pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3); |
---|
[825] | 177 | |
---|
| 178 | } else if (particleName == "e+") { |
---|
| 179 | |
---|
| 180 | G4eIonisation* eioni = new G4eIonisation(); |
---|
| 181 | eioni->SetStepFunction(0.8, 1.0*mm); |
---|
[921] | 182 | G4eMultipleScattering* msc = new G4eMultipleScattering; |
---|
[825] | 183 | msc->SetStepLimitType(fMinimal); |
---|
| 184 | pmanager->AddProcess(msc, -1, 1, 1); |
---|
| 185 | pmanager->AddProcess(eioni, -1, 2, 2); |
---|
[921] | 186 | pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3); |
---|
[825] | 187 | pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4); |
---|
| 188 | |
---|
| 189 | } else if (particleName == "mu+" || |
---|
| 190 | particleName == "mu-" ) { |
---|
| 191 | |
---|
[1340] | 192 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
[825] | 193 | pmanager->AddProcess(new G4MuIonisation, -1, 2, 2); |
---|
[921] | 194 | pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3); |
---|
| 195 | pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4); |
---|
[825] | 196 | |
---|
| 197 | } else if (particleName == "alpha" || |
---|
[1203] | 198 | particleName == "He3") { |
---|
[825] | 199 | |
---|
| 200 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 201 | pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); |
---|
| 202 | |
---|
[1203] | 203 | } else if (particleName == "GenericIon") { |
---|
| 204 | |
---|
| 205 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 206 | pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); |
---|
| 207 | |
---|
[921] | 208 | } else if (particleName == "pi+" || |
---|
| 209 | particleName == "pi-" || |
---|
[1203] | 210 | particleName == "kaon+" || |
---|
| 211 | particleName == "kaon-" || |
---|
[921] | 212 | particleName == "proton" ) { |
---|
| 213 | |
---|
| 214 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 215 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2); |
---|
| 216 | pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3); |
---|
| 217 | pmanager->AddProcess(new G4hPairProduction, -1,-4, 4); |
---|
| 218 | |
---|
[850] | 219 | } else if (particleName == "B+" || |
---|
| 220 | particleName == "B-" || |
---|
| 221 | particleName == "D+" || |
---|
| 222 | particleName == "D-" || |
---|
| 223 | particleName == "Ds+" || |
---|
| 224 | particleName == "Ds-" || |
---|
[1340] | 225 | particleName == "anti_He3" || |
---|
| 226 | particleName == "anti_alpha" || |
---|
| 227 | particleName == "anti_deuteron" || |
---|
[850] | 228 | particleName == "anti_lambda_c+" || |
---|
| 229 | particleName == "anti_omega-" || |
---|
[825] | 230 | particleName == "anti_proton" || |
---|
[921] | 231 | particleName == "anti_sigma_c+" || |
---|
| 232 | particleName == "anti_sigma_c++" || |
---|
[825] | 233 | particleName == "anti_sigma+" || |
---|
| 234 | particleName == "anti_sigma-" || |
---|
[1340] | 235 | particleName == "anti_triton" || |
---|
[850] | 236 | particleName == "anti_xi_c+" || |
---|
[825] | 237 | particleName == "anti_xi-" || |
---|
| 238 | particleName == "deuteron" || |
---|
[921] | 239 | particleName == "lambda_c+" || |
---|
[825] | 240 | particleName == "omega-" || |
---|
[921] | 241 | particleName == "sigma_c+" || |
---|
| 242 | particleName == "sigma_c++" || |
---|
[825] | 243 | particleName == "sigma+" || |
---|
| 244 | particleName == "sigma-" || |
---|
| 245 | particleName == "tau+" || |
---|
| 246 | particleName == "tau-" || |
---|
| 247 | particleName == "triton" || |
---|
[850] | 248 | particleName == "xi_c+" || |
---|
[825] | 249 | particleName == "xi-" ) { |
---|
| 250 | |
---|
| 251 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 252 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2); |
---|
| 253 | } |
---|
| 254 | } |
---|
| 255 | G4EmProcessOptions opt; |
---|
| 256 | opt.SetVerbose(verbose); |
---|
[1203] | 257 | opt.SetApplyCuts(true); |
---|
[825] | 258 | } |
---|
| 259 | |
---|
| 260 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|