[988] | 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_option3.cc,v 1.21 2010/10/10 15:18:34 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: phys-lists-V09-03-34 $ |
---|
[988] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: G4EmStandardPhysics_option3 |
---|
| 32 | // |
---|
| 33 | // Author: V.Ivanchenko 13.03.2008 |
---|
| 34 | // |
---|
| 35 | // Modified: |
---|
| 36 | // 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline |
---|
| 37 | // 28.05.2008 V.Ivanchenko linLossLimit=0.01 for ions 0.001 for others |
---|
| 38 | // |
---|
| 39 | //---------------------------------------------------------------------------- |
---|
| 40 | // |
---|
| 41 | |
---|
| 42 | #include "G4EmStandardPhysics_option3.hh" |
---|
| 43 | |
---|
| 44 | #include "G4ParticleDefinition.hh" |
---|
| 45 | #include "G4ProcessManager.hh" |
---|
| 46 | #include "G4LossTableManager.hh" |
---|
| 47 | #include "G4EmProcessOptions.hh" |
---|
| 48 | |
---|
| 49 | #include "G4ComptonScattering.hh" |
---|
| 50 | #include "G4GammaConversion.hh" |
---|
| 51 | #include "G4PhotoElectricEffect.hh" |
---|
[1203] | 52 | #include "G4RayleighScattering.hh" |
---|
[988] | 53 | |
---|
| 54 | #include "G4eMultipleScattering.hh" |
---|
[1203] | 55 | #include "G4MuMultipleScattering.hh" |
---|
[988] | 56 | #include "G4hMultipleScattering.hh" |
---|
| 57 | #include "G4MscStepLimitType.hh" |
---|
[1203] | 58 | #include "G4UrbanMscModel93.hh" |
---|
| 59 | #include "G4WentzelVIModel.hh" |
---|
| 60 | #include "G4CoulombScattering.hh" |
---|
[988] | 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" |
---|
| 69 | #include "G4hBremsstrahlung.hh" |
---|
| 70 | #include "G4hPairProduction.hh" |
---|
| 71 | |
---|
| 72 | #include "G4hIonisation.hh" |
---|
| 73 | #include "G4ionIonisation.hh" |
---|
[1203] | 74 | #include "G4IonParametrisedLossModel.hh" |
---|
| 75 | #include "G4NuclearStopping.hh" |
---|
[988] | 76 | |
---|
| 77 | #include "G4Gamma.hh" |
---|
| 78 | #include "G4Electron.hh" |
---|
| 79 | #include "G4Positron.hh" |
---|
| 80 | #include "G4MuonPlus.hh" |
---|
| 81 | #include "G4MuonMinus.hh" |
---|
| 82 | #include "G4PionPlus.hh" |
---|
| 83 | #include "G4PionMinus.hh" |
---|
| 84 | #include "G4KaonPlus.hh" |
---|
| 85 | #include "G4KaonMinus.hh" |
---|
| 86 | #include "G4Proton.hh" |
---|
| 87 | #include "G4AntiProton.hh" |
---|
| 88 | #include "G4Deuteron.hh" |
---|
| 89 | #include "G4Triton.hh" |
---|
| 90 | #include "G4He3.hh" |
---|
| 91 | #include "G4Alpha.hh" |
---|
| 92 | #include "G4GenericIon.hh" |
---|
| 93 | |
---|
| 94 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 95 | |
---|
[1315] | 96 | G4EmStandardPhysics_option3::G4EmStandardPhysics_option3(G4int ver) |
---|
| 97 | : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver) |
---|
[988] | 98 | { |
---|
| 99 | G4LossTableManager::Instance(); |
---|
| 100 | } |
---|
| 101 | |
---|
| 102 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 103 | |
---|
[1315] | 104 | G4EmStandardPhysics_option3::G4EmStandardPhysics_option3(G4int ver, const G4String&) |
---|
| 105 | : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver) |
---|
| 106 | { |
---|
| 107 | G4LossTableManager::Instance(); |
---|
| 108 | } |
---|
| 109 | |
---|
| 110 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 111 | |
---|
[988] | 112 | G4EmStandardPhysics_option3::~G4EmStandardPhysics_option3() |
---|
| 113 | {} |
---|
| 114 | |
---|
| 115 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 116 | |
---|
| 117 | void G4EmStandardPhysics_option3::ConstructParticle() |
---|
| 118 | { |
---|
| 119 | // gamma |
---|
| 120 | G4Gamma::Gamma(); |
---|
| 121 | |
---|
| 122 | // leptons |
---|
| 123 | G4Electron::Electron(); |
---|
| 124 | G4Positron::Positron(); |
---|
| 125 | G4MuonPlus::MuonPlus(); |
---|
| 126 | G4MuonMinus::MuonMinus(); |
---|
| 127 | |
---|
| 128 | // mesons |
---|
| 129 | G4PionPlus::PionPlusDefinition(); |
---|
| 130 | G4PionMinus::PionMinusDefinition(); |
---|
| 131 | G4KaonPlus::KaonPlusDefinition(); |
---|
| 132 | G4KaonMinus::KaonMinusDefinition(); |
---|
| 133 | |
---|
| 134 | // barions |
---|
| 135 | G4Proton::Proton(); |
---|
| 136 | G4AntiProton::AntiProton(); |
---|
| 137 | |
---|
| 138 | // ions |
---|
| 139 | G4Deuteron::Deuteron(); |
---|
| 140 | G4Triton::Triton(); |
---|
| 141 | G4He3::He3(); |
---|
| 142 | G4Alpha::Alpha(); |
---|
| 143 | G4GenericIon::GenericIonDefinition(); |
---|
| 144 | } |
---|
| 145 | |
---|
| 146 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 147 | |
---|
| 148 | void G4EmStandardPhysics_option3::ConstructProcess() |
---|
| 149 | { |
---|
| 150 | // Add standard EM Processes |
---|
| 151 | |
---|
| 152 | theParticleIterator->reset(); |
---|
| 153 | while( (*theParticleIterator)() ){ |
---|
| 154 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
| 155 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
| 156 | G4String particleName = particle->GetParticleName(); |
---|
| 157 | if(verbose > 1) |
---|
| 158 | G4cout << "### " << GetPhysicsName() << " instantiates for " |
---|
| 159 | << particleName << G4endl; |
---|
| 160 | |
---|
| 161 | if (particleName == "gamma") { |
---|
| 162 | |
---|
| 163 | pmanager->AddDiscreteProcess(new G4PhotoElectricEffect); |
---|
| 164 | pmanager->AddDiscreteProcess(new G4ComptonScattering); |
---|
| 165 | pmanager->AddDiscreteProcess(new G4GammaConversion); |
---|
[1203] | 166 | pmanager->AddDiscreteProcess(new G4RayleighScattering); |
---|
[988] | 167 | |
---|
| 168 | } else if (particleName == "e-") { |
---|
| 169 | |
---|
| 170 | G4eMultipleScattering* msc = new G4eMultipleScattering(); |
---|
[1315] | 171 | //msc->AddEmModel(0, new G4UrbanMscModel93()); |
---|
[988] | 172 | msc->SetStepLimitType(fUseDistanceToBoundary); |
---|
| 173 | pmanager->AddProcess(msc, -1, 1, 1); |
---|
| 174 | G4eIonisation* eIoni = new G4eIonisation(); |
---|
| 175 | eIoni->SetStepFunction(0.2, 100*um); |
---|
| 176 | pmanager->AddProcess(eIoni, -1, 2, 2); |
---|
| 177 | pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3); |
---|
| 178 | |
---|
| 179 | } else if (particleName == "e+") { |
---|
| 180 | |
---|
| 181 | G4eMultipleScattering* msc = new G4eMultipleScattering(); |
---|
[1315] | 182 | //msc->AddEmModel(0, new G4UrbanMscModel93()); |
---|
[988] | 183 | msc->SetStepLimitType(fUseDistanceToBoundary); |
---|
| 184 | pmanager->AddProcess(msc, -1, 1, 1); |
---|
| 185 | G4eIonisation* eIoni = new G4eIonisation(); |
---|
| 186 | eIoni->SetStepFunction(0.2, 100*um); |
---|
| 187 | pmanager->AddProcess(eIoni, -1, 2, 2); |
---|
| 188 | pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3); |
---|
| 189 | pmanager->AddProcess(new G4eplusAnnihilation,0,-1, 4); |
---|
| 190 | |
---|
| 191 | } else if (particleName == "mu+" || |
---|
| 192 | particleName == "mu-" ) { |
---|
| 193 | |
---|
[1203] | 194 | G4MuMultipleScattering* msc = new G4MuMultipleScattering(); |
---|
| 195 | msc->AddEmModel(0, new G4WentzelVIModel()); |
---|
| 196 | pmanager->AddProcess(msc, -1, 1, 1); |
---|
[988] | 197 | G4MuIonisation* muIoni = new G4MuIonisation(); |
---|
| 198 | muIoni->SetStepFunction(0.2, 50*um); |
---|
| 199 | pmanager->AddProcess(muIoni, -1, 2, 2); |
---|
| 200 | pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3); |
---|
| 201 | pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4); |
---|
[1203] | 202 | pmanager->AddDiscreteProcess(new G4CoulombScattering()); |
---|
[988] | 203 | |
---|
| 204 | } else if (particleName == "alpha" || |
---|
[1203] | 205 | particleName == "He3") { |
---|
[988] | 206 | |
---|
| 207 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 208 | G4ionIonisation* ionIoni = new G4ionIonisation(); |
---|
| 209 | ionIoni->SetStepFunction(0.1, 20*um); |
---|
| 210 | pmanager->AddProcess(ionIoni, -1, 2, 2); |
---|
[1203] | 211 | pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1); |
---|
[988] | 212 | |
---|
[1203] | 213 | } else if (particleName == "GenericIon") { |
---|
| 214 | |
---|
| 215 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 216 | G4ionIonisation* ionIoni = new G4ionIonisation(); |
---|
| 217 | ionIoni->SetEmModel(new G4IonParametrisedLossModel()); |
---|
| 218 | ionIoni->SetStepFunction(0.1, 10*um); |
---|
| 219 | pmanager->AddProcess(ionIoni, -1, 2, 2); |
---|
| 220 | pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1); |
---|
| 221 | |
---|
[988] | 222 | } else if (particleName == "pi+" || |
---|
| 223 | particleName == "pi-" || |
---|
[1203] | 224 | particleName == "kaon+" || |
---|
| 225 | particleName == "kaon-" || |
---|
[988] | 226 | particleName == "proton" ) { |
---|
| 227 | |
---|
| 228 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 229 | G4hIonisation* hIoni = new G4hIonisation(); |
---|
| 230 | hIoni->SetStepFunction(0.2, 50*um); |
---|
| 231 | pmanager->AddProcess(hIoni, -1, 2, 2); |
---|
| 232 | pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3); |
---|
| 233 | pmanager->AddProcess(new G4hPairProduction, -1,-4, 4); |
---|
| 234 | |
---|
| 235 | } else if (particleName == "B+" || |
---|
| 236 | particleName == "B-" || |
---|
| 237 | particleName == "D+" || |
---|
| 238 | particleName == "D-" || |
---|
| 239 | particleName == "Ds+" || |
---|
| 240 | particleName == "Ds-" || |
---|
[1340] | 241 | particleName == "anti_He3" || |
---|
| 242 | particleName == "anti_alpha" || |
---|
| 243 | particleName == "anti_deuteron" || |
---|
[988] | 244 | particleName == "anti_lambda_c+" || |
---|
| 245 | particleName == "anti_omega-" || |
---|
| 246 | particleName == "anti_proton" || |
---|
| 247 | particleName == "anti_sigma_c+" || |
---|
| 248 | particleName == "anti_sigma_c++" || |
---|
| 249 | particleName == "anti_sigma+" || |
---|
| 250 | particleName == "anti_sigma-" || |
---|
[1340] | 251 | particleName == "anti_triton" || |
---|
[988] | 252 | particleName == "anti_xi_c+" || |
---|
| 253 | particleName == "anti_xi-" || |
---|
| 254 | particleName == "deuteron" || |
---|
| 255 | particleName == "lambda_c+" || |
---|
| 256 | particleName == "omega-" || |
---|
| 257 | particleName == "sigma_c+" || |
---|
| 258 | particleName == "sigma_c++" || |
---|
| 259 | particleName == "sigma+" || |
---|
| 260 | particleName == "sigma-" || |
---|
| 261 | particleName == "tau+" || |
---|
| 262 | particleName == "tau-" || |
---|
| 263 | particleName == "triton" || |
---|
| 264 | particleName == "xi_c+" || |
---|
| 265 | particleName == "xi-" ) { |
---|
| 266 | |
---|
| 267 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1); |
---|
| 268 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2); |
---|
| 269 | } |
---|
| 270 | } |
---|
| 271 | |
---|
| 272 | // Em options |
---|
| 273 | // |
---|
| 274 | G4EmProcessOptions opt; |
---|
| 275 | opt.SetVerbose(verbose); |
---|
| 276 | |
---|
| 277 | // Multiple Coulomb scattering |
---|
| 278 | // |
---|
| 279 | //opt.SetMscStepLimitation(fUseDistanceToBoundary); |
---|
| 280 | //opt.SetMscRangeFactor(0.02); |
---|
| 281 | |
---|
| 282 | // Physics tables |
---|
| 283 | // |
---|
| 284 | opt.SetMinEnergy(100*eV); |
---|
| 285 | opt.SetMaxEnergy(10*TeV); |
---|
| 286 | opt.SetDEDXBinning(220); |
---|
| 287 | opt.SetLambdaBinning(220); |
---|
| 288 | //opt.SetSplineFlag(true); |
---|
[1203] | 289 | opt.SetPolarAngleLimit(0.2); |
---|
[988] | 290 | |
---|
| 291 | // Ionization |
---|
| 292 | // |
---|
| 293 | //opt.SetSubCutoff(true); |
---|
| 294 | } |
---|
| 295 | |
---|
| 296 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|