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