| [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.cc,v 1.24 2010/10/10 15:18:34 vnivanch Exp $
|
|---|
| 27 | // GEANT4 tag $Name: phys-lists-V09-03-34 $
|
|---|
| [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 |
|
|---|
| [1203] | 56 | #include "G4eMultipleScattering.hh"
|
|---|
| 57 | #include "G4MuMultipleScattering.hh"
|
|---|
| [825] | 58 | #include "G4hMultipleScattering.hh"
|
|---|
| [1340] | 59 | #include "G4CoulombScattering.hh"
|
|---|
| 60 | #include "G4WentzelVIModel.hh"
|
|---|
| [825] | 61 |
|
|---|
| 62 | #include "G4eIonisation.hh"
|
|---|
| 63 | #include "G4eBremsstrahlung.hh"
|
|---|
| 64 | #include "G4eplusAnnihilation.hh"
|
|---|
| 65 |
|
|---|
| 66 | #include "G4MuIonisation.hh"
|
|---|
| 67 | #include "G4MuBremsstrahlung.hh"
|
|---|
| 68 | #include "G4MuPairProduction.hh"
|
|---|
| [921] | 69 | #include "G4hBremsstrahlung.hh"
|
|---|
| 70 | #include "G4hPairProduction.hh"
|
|---|
| [825] | 71 |
|
|---|
| 72 | #include "G4hIonisation.hh"
|
|---|
| 73 | #include "G4ionIonisation.hh"
|
|---|
| [1340] | 74 | #include "G4alphaIonisation.hh"
|
|---|
| [825] | 75 |
|
|---|
| 76 | #include "G4Gamma.hh"
|
|---|
| 77 | #include "G4Electron.hh"
|
|---|
| 78 | #include "G4Positron.hh"
|
|---|
| 79 | #include "G4MuonPlus.hh"
|
|---|
| 80 | #include "G4MuonMinus.hh"
|
|---|
| 81 | #include "G4PionPlus.hh"
|
|---|
| 82 | #include "G4PionMinus.hh"
|
|---|
| 83 | #include "G4KaonPlus.hh"
|
|---|
| 84 | #include "G4KaonMinus.hh"
|
|---|
| 85 | #include "G4Proton.hh"
|
|---|
| 86 | #include "G4AntiProton.hh"
|
|---|
| 87 | #include "G4Deuteron.hh"
|
|---|
| 88 | #include "G4Triton.hh"
|
|---|
| 89 | #include "G4He3.hh"
|
|---|
| 90 | #include "G4Alpha.hh"
|
|---|
| 91 | #include "G4GenericIon.hh"
|
|---|
| 92 |
|
|---|
| 93 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 94 |
|
|---|
| [1315] | 95 | G4EmStandardPhysics::G4EmStandardPhysics(G4int ver)
|
|---|
| 96 | : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
|
|---|
| [825] | 97 | {
|
|---|
| 98 | G4LossTableManager::Instance();
|
|---|
| 99 | }
|
|---|
| 100 |
|
|---|
| 101 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 102 |
|
|---|
| [1315] | 103 | G4EmStandardPhysics::G4EmStandardPhysics(G4int ver, const G4String&)
|
|---|
| 104 | : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
|
|---|
| 105 | {
|
|---|
| 106 | G4LossTableManager::Instance();
|
|---|
| 107 | }
|
|---|
| 108 |
|
|---|
| 109 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 110 |
|
|---|
| [825] | 111 | G4EmStandardPhysics::~G4EmStandardPhysics()
|
|---|
| 112 | {}
|
|---|
| 113 |
|
|---|
| 114 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 115 |
|
|---|
| 116 | void G4EmStandardPhysics::ConstructParticle()
|
|---|
| 117 | {
|
|---|
| 118 | // gamma
|
|---|
| 119 | G4Gamma::Gamma();
|
|---|
| 120 |
|
|---|
| 121 | // leptons
|
|---|
| 122 | G4Electron::Electron();
|
|---|
| 123 | G4Positron::Positron();
|
|---|
| 124 | G4MuonPlus::MuonPlus();
|
|---|
| 125 | G4MuonMinus::MuonMinus();
|
|---|
| 126 |
|
|---|
| 127 | // mesons
|
|---|
| 128 | G4PionPlus::PionPlusDefinition();
|
|---|
| 129 | G4PionMinus::PionMinusDefinition();
|
|---|
| 130 | G4KaonPlus::KaonPlusDefinition();
|
|---|
| 131 | G4KaonMinus::KaonMinusDefinition();
|
|---|
| 132 |
|
|---|
| 133 | // barions
|
|---|
| 134 | G4Proton::Proton();
|
|---|
| 135 | G4AntiProton::AntiProton();
|
|---|
| 136 |
|
|---|
| 137 | // ions
|
|---|
| 138 | G4Deuteron::Deuteron();
|
|---|
| 139 | G4Triton::Triton();
|
|---|
| 140 | G4He3::He3();
|
|---|
| 141 | G4Alpha::Alpha();
|
|---|
| 142 | G4GenericIon::GenericIonDefinition();
|
|---|
| 143 | }
|
|---|
| 144 |
|
|---|
| 145 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 146 |
|
|---|
| 147 | void G4EmStandardPhysics::ConstructProcess()
|
|---|
| 148 | {
|
|---|
| 149 | // Add standard EM Processes
|
|---|
| 150 |
|
|---|
| 151 | theParticleIterator->reset();
|
|---|
| 152 | while( (*theParticleIterator)() ){
|
|---|
| 153 | G4ParticleDefinition* particle = theParticleIterator->value();
|
|---|
| 154 | G4ProcessManager* pmanager = particle->GetProcessManager();
|
|---|
| 155 | G4String particleName = particle->GetParticleName();
|
|---|
| 156 | if(verbose > 1)
|
|---|
| 157 | G4cout << "### " << GetPhysicsName() << " instantiates for "
|
|---|
| 158 | << particleName << G4endl;
|
|---|
| 159 |
|
|---|
| 160 | if (particleName == "gamma") {
|
|---|
| 161 |
|
|---|
| 162 | pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
|
|---|
| 163 | pmanager->AddDiscreteProcess(new G4ComptonScattering);
|
|---|
| 164 | pmanager->AddDiscreteProcess(new G4GammaConversion);
|
|---|
| 165 |
|
|---|
| 166 | } else if (particleName == "e-") {
|
|---|
| 167 |
|
|---|
| [1203] | 168 | pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
|
|---|
| 169 | pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
|
|---|
| 170 | pmanager->AddProcess(new G4eBremsstrahlung(), -1,-3, 3);
|
|---|
| [825] | 171 |
|
|---|
| 172 | } else if (particleName == "e+") {
|
|---|
| 173 |
|
|---|
| [1203] | 174 | pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
|
|---|
| 175 | pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
|
|---|
| 176 | pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
|
|---|
| 177 | pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
|
|---|
| [825] | 178 |
|
|---|
| 179 | } else if (particleName == "mu+" ||
|
|---|
| 180 | particleName == "mu-" ) {
|
|---|
| 181 |
|
|---|
| [1340] | 182 | G4MuMultipleScattering* msc = new G4MuMultipleScattering();
|
|---|
| 183 | msc->AddEmModel(0, new G4WentzelVIModel());
|
|---|
| 184 | pmanager->AddProcess(msc, -1, 1, 1);
|
|---|
| 185 | pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
|
|---|
| 186 | pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
|
|---|
| 187 | pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
|
|---|
| 188 | pmanager->AddDiscreteProcess(new G4CoulombScattering());
|
|---|
| [825] | 189 |
|
|---|
| 190 | } else if (particleName == "alpha" ||
|
|---|
| [1203] | 191 | particleName == "He3") {
|
|---|
| [825] | 192 |
|
|---|
| 193 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
|---|
| 194 | pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
|
|---|
| 195 |
|
|---|
| [1203] | 196 | } else if (particleName == "GenericIon") {
|
|---|
| 197 |
|
|---|
| 198 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
|---|
| 199 | pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
|
|---|
| 200 |
|
|---|
| [921] | 201 | } else if (particleName == "pi+" ||
|
|---|
| 202 | particleName == "pi-" ||
|
|---|
| [1203] | 203 | particleName == "kaon+" ||
|
|---|
| 204 | particleName == "kaon-" ||
|
|---|
| [921] | 205 | particleName == "proton" ) {
|
|---|
| 206 |
|
|---|
| 207 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
|---|
| 208 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
|
|---|
| 209 | pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
|
|---|
| 210 | pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
|
|---|
| 211 |
|
|---|
| [850] | 212 | } else if (particleName == "B+" ||
|
|---|
| 213 | particleName == "B-" ||
|
|---|
| 214 | particleName == "D+" ||
|
|---|
| 215 | particleName == "D-" ||
|
|---|
| 216 | particleName == "Ds+" ||
|
|---|
| 217 | particleName == "Ds-" ||
|
|---|
| [1340] | 218 | particleName == "anti_He3" ||
|
|---|
| 219 | particleName == "anti_alpha" ||
|
|---|
| 220 | particleName == "anti_deuteron" ||
|
|---|
| [850] | 221 | particleName == "anti_lambda_c+" ||
|
|---|
| 222 | particleName == "anti_omega-" ||
|
|---|
| [825] | 223 | particleName == "anti_proton" ||
|
|---|
| [921] | 224 | particleName == "anti_sigma_c+" ||
|
|---|
| 225 | particleName == "anti_sigma_c++" ||
|
|---|
| [825] | 226 | particleName == "anti_sigma+" ||
|
|---|
| 227 | particleName == "anti_sigma-" ||
|
|---|
| [1340] | 228 | particleName == "anti_triton" ||
|
|---|
| [850] | 229 | particleName == "anti_xi_c+" ||
|
|---|
| [825] | 230 | particleName == "anti_xi-" ||
|
|---|
| 231 | particleName == "deuteron" ||
|
|---|
| [921] | 232 | particleName == "lambda_c+" ||
|
|---|
| [825] | 233 | particleName == "omega-" ||
|
|---|
| [921] | 234 | particleName == "sigma_c+" ||
|
|---|
| 235 | particleName == "sigma_c++" ||
|
|---|
| [825] | 236 | particleName == "sigma+" ||
|
|---|
| 237 | particleName == "sigma-" ||
|
|---|
| 238 | particleName == "tau+" ||
|
|---|
| 239 | particleName == "tau-" ||
|
|---|
| 240 | particleName == "triton" ||
|
|---|
| [850] | 241 | particleName == "xi_c+" ||
|
|---|
| [825] | 242 | particleName == "xi-" ) {
|
|---|
| 243 |
|
|---|
| 244 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
|---|
| 245 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
|
|---|
| 246 | }
|
|---|
| 247 | }
|
|---|
| 248 | G4EmProcessOptions opt;
|
|---|
| 249 | opt.SetVerbose(verbose);
|
|---|
| [1340] | 250 | opt.SetPolarAngleLimit(0.2);
|
|---|
| [825] | 251 | }
|
|---|
| 252 |
|
|---|
| 253 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|