1 #include "SimG4Core/PhysicsLists/interface/G4EmStandardPhysics_option1LHCB.hh"
2 #include "G4ParticleDefinition.hh"
3 #include "G4ProcessManager.hh"
4 #include "G4LossTableManager.hh"
5 #include "G4EmProcessOptions.hh"
7 #include "G4ComptonScattering.hh"
8 #include "G4GammaConversion.hh"
9 #include "G4PhotoElectricEffect.hh"
11 #include "G4eMultipleScattering.hh"
12 #include "G4MuMultipleScattering.hh"
13 #include "G4hMultipleScattering.hh"
14 #include "G4CoulombScattering.hh"
15 #include "G4WentzelVIModel.hh"
16 #include "G4UrbanMscModel93.hh"
17 #include "G4eCoulombScatteringModel.hh"
19 #include "G4eIonisation.hh"
20 #include "G4eBremsstrahlung.hh"
21 #include "G4eplusAnnihilation.hh"
23 #include "G4MuIonisation.hh"
24 #include "G4MuBremsstrahlung.hh"
25 #include "G4MuPairProduction.hh"
26 #include "G4hBremsstrahlung.hh"
27 #include "G4hPairProduction.hh"
29 #include "G4hIonisation.hh"
30 #include "G4ionIonisation.hh"
31 #include "G4alphaIonisation.hh"
34 #include "G4Electron.hh"
35 #include "G4Positron.hh"
36 #include "G4MuonPlus.hh"
37 #include "G4MuonMinus.hh"
38 #include "G4PionPlus.hh"
39 #include "G4PionMinus.hh"
40 #include "G4KaonPlus.hh"
41 #include "G4KaonMinus.hh"
42 #include "G4Proton.hh"
43 #include "G4AntiProton.hh"
44 #include "G4Deuteron.hh"
45 #include "G4Triton.hh"
48 #include "G4GenericIon.hh"
52 G4EmStandardPhysics_option1LHCB::G4EmStandardPhysics_option1LHCB(G4int ver)
53 : G4VPhysicsConstructor(
"G4EmStandard_opt1"),
verbose(ver)
55 G4LossTableManager::Instance();
60 G4EmStandardPhysics_option1LHCB::~G4EmStandardPhysics_option1LHCB()
65 void G4EmStandardPhysics_option1LHCB::ConstructParticle()
71 G4Electron::Electron();
72 G4Positron::Positron();
73 G4MuonPlus::MuonPlus();
74 G4MuonMinus::MuonMinus();
77 G4PionPlus::PionPlusDefinition();
78 G4PionMinus::PionMinusDefinition();
79 G4KaonPlus::KaonPlusDefinition();
80 G4KaonMinus::KaonMinusDefinition();
84 G4AntiProton::AntiProton();
87 G4Deuteron::Deuteron();
91 G4GenericIon::GenericIonDefinition();
96 void G4EmStandardPhysics_option1LHCB::ConstructProcess()
99 G4double mscEnergyLimit = 1.05*GeV;
101 theParticleIterator->reset();
102 while( (*theParticleIterator)() ){
103 G4ParticleDefinition* particle = theParticleIterator->value();
104 G4ProcessManager* pmanager = particle->GetProcessManager();
105 G4String particleName = particle->GetParticleName();
107 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
108 << particleName << G4endl;
110 if (particleName ==
"gamma") {
112 pmanager->AddDiscreteProcess(
new G4PhotoElectricEffect);
113 pmanager->AddDiscreteProcess(
new G4ComptonScattering);
114 pmanager->AddDiscreteProcess(
new G4GammaConversion);
116 }
else if (particleName ==
"e-") {
118 G4eIonisation* eioni =
new G4eIonisation();
119 eioni->SetStepFunction(0.8, 1.0*mm);
120 G4eMultipleScattering* msc =
new G4eMultipleScattering;
121 msc->SetStepLimitType(fMinimal);
122 G4UrbanMscModel93* msc93 =
new G4UrbanMscModel93();
123 G4WentzelVIModel* wvi =
new G4WentzelVIModel();
124 msc93->SetHighEnergyLimit(mscEnergyLimit);
125 wvi->SetLowEnergyLimit(mscEnergyLimit);
126 msc->AddEmModel(0, msc93);
127 msc->AddEmModel(0, wvi);
128 pmanager->AddProcess(msc, -1, 1, 1);
129 pmanager->AddProcess(eioni, -1, 2, 2);
130 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
131 G4CoulombScattering* sc =
new G4CoulombScattering();
132 G4eCoulombScatteringModel*
mod =
new G4eCoulombScatteringModel();
133 mod->SetActivationLowEnergyLimit(mscEnergyLimit);
134 sc->AddEmModel(0, mod);
135 pmanager->AddDiscreteProcess(sc);
137 }
else if (particleName ==
"e+") {
139 G4eIonisation* eioni =
new G4eIonisation();
140 eioni->SetStepFunction(0.8, 1.0*mm);
141 G4eMultipleScattering* msc =
new G4eMultipleScattering;
142 msc->SetStepLimitType(fMinimal);
143 G4UrbanMscModel93* msc93 =
new G4UrbanMscModel93();
144 G4WentzelVIModel* wvi =
new G4WentzelVIModel();
145 msc93->SetHighEnergyLimit(mscEnergyLimit);
146 wvi->SetLowEnergyLimit(mscEnergyLimit);
147 msc->AddEmModel(0, msc93);
148 msc->AddEmModel(0, wvi);
149 pmanager->AddProcess(msc, -1, 1, 1);
150 pmanager->AddProcess(eioni, -1, 2, 2);
151 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
152 pmanager->AddProcess(
new G4eplusAnnihilation, 0,-1, 4);
153 G4CoulombScattering* sc =
new G4CoulombScattering();
154 G4eCoulombScatteringModel* mod =
new G4eCoulombScatteringModel();
155 mod->SetActivationLowEnergyLimit(mscEnergyLimit);
156 sc->AddEmModel(0, mod);
157 pmanager->AddDiscreteProcess(sc);
159 }
else if (particleName ==
"mu+" ||
160 particleName ==
"mu-" ) {
162 G4MuMultipleScattering* msc =
new G4MuMultipleScattering();
163 msc->AddEmModel(0,
new G4WentzelVIModel());
164 pmanager->AddProcess(msc, -1, 1, 1);
165 pmanager->AddProcess(
new G4MuIonisation, -1, 2, 2);
166 pmanager->AddProcess(
new G4MuBremsstrahlung, -1,-3, 3);
167 pmanager->AddProcess(
new G4MuPairProduction, -1,-4, 4);
168 pmanager->AddDiscreteProcess(
new G4CoulombScattering());
170 }
else if (particleName ==
"alpha" ||
171 particleName ==
"He3") {
173 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
174 pmanager->AddProcess(
new G4ionIonisation, -1, 2, 2);
176 }
else if (particleName ==
"GenericIon") {
178 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
179 pmanager->AddProcess(
new G4ionIonisation, -1, 2, 2);
181 }
else if (particleName ==
"pi+" ||
182 particleName ==
"pi-" ||
183 particleName ==
"kaon+" ||
184 particleName ==
"kaon-" ||
185 particleName ==
"proton" ) {
187 G4MuMultipleScattering* msc =
new G4MuMultipleScattering();
188 msc->AddEmModel(0,
new G4WentzelVIModel());
189 pmanager->AddProcess(msc, -1, 1, 1);
190 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
191 pmanager->AddProcess(
new G4hBremsstrahlung, -1,-3, 3);
192 pmanager->AddProcess(
new G4hPairProduction, -1,-4, 4);
194 }
else if (particleName ==
"B+" ||
195 particleName ==
"B-" ||
196 particleName ==
"D+" ||
197 particleName ==
"D-" ||
198 particleName ==
"Ds+" ||
199 particleName ==
"Ds-" ||
200 particleName ==
"anti_He3" ||
201 particleName ==
"anti_alpha" ||
202 particleName ==
"anti_deuteron" ||
203 particleName ==
"anti_lambda_c+" ||
204 particleName ==
"anti_omega-" ||
205 particleName ==
"anti_proton" ||
206 particleName ==
"anti_sigma_c+" ||
207 particleName ==
"anti_sigma_c++" ||
208 particleName ==
"anti_sigma+" ||
209 particleName ==
"anti_sigma-" ||
210 particleName ==
"anti_triton" ||
211 particleName ==
"anti_xi_c+" ||
212 particleName ==
"anti_xi-" ||
213 particleName ==
"deuteron" ||
214 particleName ==
"lambda_c+" ||
215 particleName ==
"omega-" ||
216 particleName ==
"sigma_c+" ||
217 particleName ==
"sigma_c++" ||
218 particleName ==
"sigma+" ||
219 particleName ==
"sigma-" ||
220 particleName ==
"tau+" ||
221 particleName ==
"tau-" ||
222 particleName ==
"triton" ||
223 particleName ==
"xi_c+" ||
224 particleName ==
"xi-" ) {
226 G4MuMultipleScattering* msc =
new G4MuMultipleScattering();
227 msc->AddEmModel(0,
new G4WentzelVIModel());
228 pmanager->AddProcess(msc, -1, 1, 1);
229 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
232 G4EmProcessOptions opt;
235 opt.SetApplyCuts(
true);
list mod
Load physics model.