| 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_option3.cc,v 1.20 2010/06/02 17:21:29 vnivanch Exp $
|
|---|
| 27 | // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
|
|---|
| 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"
|
|---|
| 52 | #include "G4RayleighScattering.hh"
|
|---|
| 53 |
|
|---|
| 54 | #include "G4eMultipleScattering.hh"
|
|---|
| 55 | #include "G4MuMultipleScattering.hh"
|
|---|
| 56 | #include "G4hMultipleScattering.hh"
|
|---|
| 57 | #include "G4MscStepLimitType.hh"
|
|---|
| 58 | #include "G4UrbanMscModel93.hh"
|
|---|
| 59 | #include "G4WentzelVIModel.hh"
|
|---|
| 60 | #include "G4CoulombScattering.hh"
|
|---|
| 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"
|
|---|
| 74 | #include "G4IonParametrisedLossModel.hh"
|
|---|
| 75 | #include "G4NuclearStopping.hh"
|
|---|
| 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 |
|
|---|
| 96 | G4EmStandardPhysics_option3::G4EmStandardPhysics_option3(G4int ver)
|
|---|
| 97 | : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
|
|---|
| 98 | {
|
|---|
| 99 | G4LossTableManager::Instance();
|
|---|
| 100 | }
|
|---|
| 101 |
|
|---|
| 102 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 103 |
|
|---|
| 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 |
|
|---|
| 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);
|
|---|
| 166 | pmanager->AddDiscreteProcess(new G4RayleighScattering);
|
|---|
| 167 |
|
|---|
| 168 | } else if (particleName == "e-") {
|
|---|
| 169 |
|
|---|
| 170 | G4eMultipleScattering* msc = new G4eMultipleScattering();
|
|---|
| 171 | //msc->AddEmModel(0, new G4UrbanMscModel93());
|
|---|
| 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();
|
|---|
| 182 | //msc->AddEmModel(0, new G4UrbanMscModel93());
|
|---|
| 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 |
|
|---|
| 194 | G4MuMultipleScattering* msc = new G4MuMultipleScattering();
|
|---|
| 195 | msc->AddEmModel(0, new G4WentzelVIModel());
|
|---|
| 196 | pmanager->AddProcess(msc, -1, 1, 1);
|
|---|
| 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);
|
|---|
| 202 | pmanager->AddDiscreteProcess(new G4CoulombScattering());
|
|---|
| 203 |
|
|---|
| 204 | } else if (particleName == "alpha" ||
|
|---|
| 205 | particleName == "He3") {
|
|---|
| 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);
|
|---|
| 211 | pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
|
|---|
| 212 |
|
|---|
| 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 |
|
|---|
| 222 | } else if (particleName == "pi+" ||
|
|---|
| 223 | particleName == "pi-" ||
|
|---|
| 224 | particleName == "kaon+" ||
|
|---|
| 225 | particleName == "kaon-" ||
|
|---|
| 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-" ||
|
|---|
| 241 | particleName == "anti_lambda_c+" ||
|
|---|
| 242 | particleName == "anti_omega-" ||
|
|---|
| 243 | particleName == "anti_proton" ||
|
|---|
| 244 | particleName == "anti_sigma_c+" ||
|
|---|
| 245 | particleName == "anti_sigma_c++" ||
|
|---|
| 246 | particleName == "anti_sigma+" ||
|
|---|
| 247 | particleName == "anti_sigma-" ||
|
|---|
| 248 | particleName == "anti_xi_c+" ||
|
|---|
| 249 | particleName == "anti_xi-" ||
|
|---|
| 250 | particleName == "deuteron" ||
|
|---|
| 251 | particleName == "lambda_c+" ||
|
|---|
| 252 | particleName == "omega-" ||
|
|---|
| 253 | particleName == "sigma_c+" ||
|
|---|
| 254 | particleName == "sigma_c++" ||
|
|---|
| 255 | particleName == "sigma+" ||
|
|---|
| 256 | particleName == "sigma-" ||
|
|---|
| 257 | particleName == "tau+" ||
|
|---|
| 258 | particleName == "tau-" ||
|
|---|
| 259 | particleName == "triton" ||
|
|---|
| 260 | particleName == "xi_c+" ||
|
|---|
| 261 | particleName == "xi-" ) {
|
|---|
| 262 |
|
|---|
| 263 | pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
|---|
| 264 | pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
|
|---|
| 265 | }
|
|---|
| 266 | }
|
|---|
| 267 |
|
|---|
| 268 | // Em options
|
|---|
| 269 | //
|
|---|
| 270 | G4EmProcessOptions opt;
|
|---|
| 271 | opt.SetVerbose(verbose);
|
|---|
| 272 |
|
|---|
| 273 | // Multiple Coulomb scattering
|
|---|
| 274 | //
|
|---|
| 275 | //opt.SetMscStepLimitation(fUseDistanceToBoundary);
|
|---|
| 276 | //opt.SetMscRangeFactor(0.02);
|
|---|
| 277 |
|
|---|
| 278 | // Physics tables
|
|---|
| 279 | //
|
|---|
| 280 | opt.SetMinEnergy(100*eV);
|
|---|
| 281 | opt.SetMaxEnergy(10*TeV);
|
|---|
| 282 | opt.SetDEDXBinning(220);
|
|---|
| 283 | opt.SetLambdaBinning(220);
|
|---|
| 284 | //opt.SetSplineFlag(true);
|
|---|
| 285 | opt.SetPolarAngleLimit(0.2);
|
|---|
| 286 |
|
|---|
| 287 | // Ionization
|
|---|
| 288 | //
|
|---|
| 289 | //opt.SetSubCutoff(true);
|
|---|
| 290 | }
|
|---|
| 291 |
|
|---|
| 292 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|