[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 | // |
---|
[921] | 26 | // $Id: G4EmStandardPhysics.cc,v 1.16 2008/11/21 16:50:30 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-02-cand-01 $ |
---|
[825] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: G4EmStandardPhysics |
---|
| 32 | // |
---|
| 33 | // Author: V.Ivanchenko 09.11.2005 |
---|
| 34 | // |
---|
| 35 | // Modified: |
---|
| 36 | // 05.12.2005 V.Ivanchenko add controlled verbosity |
---|
| 37 | // 13.11.2006 V.Ivanchenko use G4hMultipleScattering |
---|
| 38 | // 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout |
---|
| 39 | // 13.02.2007 V.Ivanchenko use G4hMultipleScattering for muons |
---|
| 40 | // 13.02.2007 V.Ivanchenko set skin=0.0 |
---|
[850] | 41 | // 21.04.2008 V.Ivanchenko add long-lived D and B mesons |
---|
[825] | 42 | // |
---|
| 43 | //---------------------------------------------------------------------------- |
---|
| 44 | // |
---|
| 45 | |
---|
| 46 | #include "G4EmStandardPhysics.hh" |
---|
| 47 | #include "G4ParticleDefinition.hh" |
---|
| 48 | #include "G4ProcessManager.hh" |
---|
| 49 | #include "G4LossTableManager.hh" |
---|
| 50 | #include "G4EmProcessOptions.hh" |
---|
| 51 | |
---|
| 52 | #include "G4ComptonScattering.hh" |
---|
| 53 | #include "G4GammaConversion.hh" |
---|
| 54 | #include "G4PhotoElectricEffect.hh" |
---|
| 55 | |
---|
| 56 | #include "G4MultipleScattering.hh" |
---|
| 57 | #include "G4hMultipleScattering.hh" |
---|
[921] | 58 | #include "G4eMultipleScattering.hh" |
---|
[825] | 59 | |
---|
| 60 | #include "G4eIonisation.hh" |
---|
| 61 | #include "G4eBremsstrahlung.hh" |
---|
| 62 | #include "G4eplusAnnihilation.hh" |
---|
| 63 | |
---|
| 64 | #include "G4MuIonisation.hh" |
---|
| 65 | #include "G4MuBremsstrahlung.hh" |
---|
| 66 | #include "G4MuPairProduction.hh" |
---|
[921] | 67 | #include "G4hBremsstrahlung.hh" |
---|
| 68 | #include "G4hPairProduction.hh" |
---|
[825] | 69 | |
---|
| 70 | #include "G4hIonisation.hh" |
---|
| 71 | #include "G4ionIonisation.hh" |
---|
| 72 | |
---|
| 73 | #include "G4Gamma.hh" |
---|
| 74 | #include "G4Electron.hh" |
---|
| 75 | #include "G4Positron.hh" |
---|
| 76 | #include "G4MuonPlus.hh" |
---|
| 77 | #include "G4MuonMinus.hh" |
---|
| 78 | #include "G4PionPlus.hh" |
---|
| 79 | #include "G4PionMinus.hh" |
---|
| 80 | #include "G4KaonPlus.hh" |
---|
| 81 | #include "G4KaonMinus.hh" |
---|
| 82 | #include "G4Proton.hh" |
---|
| 83 | #include "G4AntiProton.hh" |
---|
| 84 | #include "G4Deuteron.hh" |
---|
| 85 | #include "G4Triton.hh" |
---|
| 86 | #include "G4He3.hh" |
---|
| 87 | #include "G4Alpha.hh" |
---|
| 88 | #include "G4GenericIon.hh" |
---|
| 89 | |
---|
| 90 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 91 | |
---|
| 92 | G4EmStandardPhysics::G4EmStandardPhysics(G4int ver, const G4String& name) |
---|
| 93 | : G4VPhysicsConstructor(name), verbose(ver) |
---|
| 94 | { |
---|
| 95 | G4LossTableManager::Instance(); |
---|
| 96 | } |
---|
| 97 | |
---|
| 98 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 99 | |
---|
| 100 | G4EmStandardPhysics::~G4EmStandardPhysics() |
---|
| 101 | {} |
---|
| 102 | |
---|
| 103 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 104 | |
---|
| 105 | void G4EmStandardPhysics::ConstructParticle() |
---|
| 106 | { |
---|
| 107 | // gamma |
---|
| 108 | G4Gamma::Gamma(); |
---|
| 109 | |
---|
| 110 | // leptons |
---|
| 111 | G4Electron::Electron(); |
---|
| 112 | G4Positron::Positron(); |
---|
| 113 | G4MuonPlus::MuonPlus(); |
---|
| 114 | G4MuonMinus::MuonMinus(); |
---|
| 115 | |
---|
| 116 | // mesons |
---|
| 117 | G4PionPlus::PionPlusDefinition(); |
---|
| 118 | G4PionMinus::PionMinusDefinition(); |
---|
| 119 | G4KaonPlus::KaonPlusDefinition(); |
---|
| 120 | G4KaonMinus::KaonMinusDefinition(); |
---|
| 121 | |
---|
| 122 | // barions |
---|
| 123 | G4Proton::Proton(); |
---|
| 124 | G4AntiProton::AntiProton(); |
---|
| 125 | |
---|
| 126 | // ions |
---|
| 127 | G4Deuteron::Deuteron(); |
---|
| 128 | G4Triton::Triton(); |
---|
| 129 | G4He3::He3(); |
---|
| 130 | G4Alpha::Alpha(); |
---|
| 131 | G4GenericIon::GenericIonDefinition(); |
---|
| 132 | } |
---|
| 133 | |
---|
| 134 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 135 | |
---|
| 136 | void G4EmStandardPhysics::ConstructProcess() |
---|
| 137 | { |
---|
| 138 | // Add standard EM Processes |
---|
| 139 | |
---|
| 140 | theParticleIterator->reset(); |
---|
| 141 | while( (*theParticleIterator)() ){ |
---|
| 142 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
| 143 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
| 144 | G4String particleName = particle->GetParticleName(); |
---|
| 145 | if(verbose > 1) |
---|
| 146 | G4cout << "### " << GetPhysicsName() << " instantiates for " |
---|
| 147 | << particleName << G4endl; |
---|
| 148 | |
---|
| 149 | if (particleName == "gamma") { |
---|
| 150 | |
---|
| 151 | pmanager->AddDiscreteProcess(new G4PhotoElectricEffect); |
---|
| 152 | pmanager->AddDiscreteProcess(new G4ComptonScattering); |
---|
| 153 | pmanager->AddDiscreteProcess(new G4GammaConversion); |
---|
| 154 | |
---|
| 155 | } else if (particleName == "e-") { |
---|
| 156 | |
---|
[921] | 157 | pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); |
---|
[825] | 158 | pmanager->AddProcess(new G4eIonisation, -1, 2, 2); |
---|
[921] | 159 | pmanager->AddProcess(new G4eBremsstrahlung(), -1,-3, 3); |
---|
[825] | 160 | |
---|
| 161 | } else if (particleName == "e+") { |
---|
| 162 | |
---|
[921] | 163 | pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1); |
---|
[825] | 164 | pmanager->AddProcess(new G4eIonisation, -1, 2, 2); |
---|
[921] | 165 | pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3); |
---|
[825] | 166 | pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4); |
---|
| 167 | |
---|
| 168 | } else if (particleName == "mu+" || |
---|
| 169 | particleName == "mu-" ) { |
---|
| 170 | |
---|
| 171 | pmanager->AddProcess(new G4hMultipleScattering,-1, 1, 1); |
---|
| 172 | pmanager->AddProcess(new G4MuIonisation, -1, 2, 2); |
---|
[921] | 173 | pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3); |
---|
| 174 | pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4); |
---|
[825] | 175 | |
---|
| 176 | } else if (particleName == "alpha" || |
---|
| 177 | particleName == "He3" || |
---|
| 178 | particleName == "GenericIon") { |
---|
| 179 | |
---|
| 180 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 181 | pmanager->AddProcess(new G4ionIonisation, -1, 2, 2); |
---|
| 182 | |
---|
[921] | 183 | } else if (particleName == "pi+" || |
---|
| 184 | particleName == "pi-" || |
---|
| 185 | particleName == "proton" ) { |
---|
| 186 | |
---|
| 187 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 188 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2); |
---|
| 189 | pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3); |
---|
| 190 | pmanager->AddProcess(new G4hPairProduction, -1,-4, 4); |
---|
| 191 | |
---|
[850] | 192 | } else if (particleName == "B+" || |
---|
| 193 | particleName == "B-" || |
---|
| 194 | particleName == "D+" || |
---|
| 195 | particleName == "D-" || |
---|
| 196 | particleName == "Ds+" || |
---|
| 197 | particleName == "Ds-" || |
---|
| 198 | particleName == "anti_lambda_c+" || |
---|
| 199 | particleName == "anti_omega-" || |
---|
[825] | 200 | particleName == "anti_proton" || |
---|
[921] | 201 | particleName == "anti_sigma_c+" || |
---|
| 202 | particleName == "anti_sigma_c++" || |
---|
[825] | 203 | particleName == "anti_sigma+" || |
---|
| 204 | particleName == "anti_sigma-" || |
---|
[850] | 205 | particleName == "anti_xi_c+" || |
---|
[825] | 206 | particleName == "anti_xi-" || |
---|
| 207 | particleName == "deuteron" || |
---|
[921] | 208 | particleName == "kaon+" || |
---|
[825] | 209 | particleName == "kaon-" || |
---|
[921] | 210 | particleName == "lambda_c+" || |
---|
[825] | 211 | particleName == "omega-" || |
---|
[921] | 212 | particleName == "sigma_c+" || |
---|
| 213 | particleName == "sigma_c++" || |
---|
[825] | 214 | particleName == "sigma+" || |
---|
| 215 | particleName == "sigma-" || |
---|
| 216 | particleName == "tau+" || |
---|
| 217 | particleName == "tau-" || |
---|
| 218 | particleName == "triton" || |
---|
[850] | 219 | particleName == "xi_c+" || |
---|
[825] | 220 | particleName == "xi-" ) { |
---|
| 221 | |
---|
| 222 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 223 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2); |
---|
| 224 | } |
---|
| 225 | } |
---|
| 226 | G4EmProcessOptions opt; |
---|
| 227 | opt.SetVerbose(verbose); |
---|
| 228 | } |
---|
| 229 | |
---|
| 230 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|