CMS 3D CMS Logo

CMSEmStandardPhysics95.cc
Go to the documentation of this file.
3 #include "G4EmParameters.hh"
4 #include "G4ParticleTable.hh"
5 
6 #include "G4ParticleDefinition.hh"
7 #include "G4ProcessManager.hh"
8 #include "G4LossTableManager.hh"
9 #include "G4RegionStore.hh"
10 
11 #include "G4ComptonScattering.hh"
12 #include "G4GammaConversion.hh"
13 #include "G4GammaConversion.hh"
14 #include "G4PairProductionRelModel.hh"
15 #include "G4PhotoElectricEffect.hh"
16 
17 #include "G4hMultipleScattering.hh"
18 #include "G4eMultipleScattering.hh"
19 #include "G4MscStepLimitType.hh"
20 
21 #include "G4eIonisation.hh"
22 #include "G4eBremsstrahlung.hh"
23 #include "G4eplusAnnihilation.hh"
24 
25 #include "G4MuMultipleScattering.hh"
26 #include "G4MuIonisation.hh"
27 #include "G4MuBremsstrahlung.hh"
28 #include "G4MuPairProduction.hh"
29 
30 #include "G4hIonisation.hh"
31 #include "G4ionIonisation.hh"
32 #include "G4hBremsstrahlung.hh"
33 #include "G4hPairProduction.hh"
34 
35 #include "G4Gamma.hh"
36 #include "G4Electron.hh"
37 #include "G4Positron.hh"
38 #include "G4MuonPlus.hh"
39 #include "G4MuonMinus.hh"
40 #include "G4TauMinus.hh"
41 #include "G4TauPlus.hh"
42 #include "G4PionPlus.hh"
43 #include "G4PionMinus.hh"
44 #include "G4KaonPlus.hh"
45 #include "G4KaonMinus.hh"
46 #include "G4BMesonMinus.hh"
47 #include "G4BMesonPlus.hh"
48 #include "G4DMesonMinus.hh"
49 #include "G4DMesonPlus.hh"
50 #include "G4Proton.hh"
51 #include "G4AntiProton.hh"
52 #include "G4SigmaMinus.hh"
53 #include "G4AntiSigmaMinus.hh"
54 #include "G4SigmaPlus.hh"
55 #include "G4AntiSigmaPlus.hh"
56 #include "G4XiMinus.hh"
57 #include "G4AntiXiMinus.hh"
58 #include "G4OmegaMinus.hh"
59 #include "G4AntiOmegaMinus.hh"
60 #include "G4LambdacPlus.hh"
61 #include "G4AntiLambdacPlus.hh"
62 #include "G4XicPlus.hh"
63 #include "G4AntiXicPlus.hh"
64 #include "G4Deuteron.hh"
65 #include "G4Triton.hh"
66 #include "G4He3.hh"
67 #include "G4Alpha.hh"
68 #include "G4GenericIon.hh"
69 #include "G4BuilderType.hh"
70 
71 #include "G4SystemOfUnits.hh"
72 
73 CMSEmStandardPhysics95::CMSEmStandardPhysics95(const G4String& name, G4int ver, const std::string& reg)
74  : G4VPhysicsConstructor(name), verbose(ver), region(reg) {
75  G4EmParameters* param = G4EmParameters::Instance();
76  param->SetDefaults();
77  param->SetVerbose(verbose);
78  param->SetApplyCuts(true);
79  param->SetStepFunction(0.8, 1 * CLHEP::mm);
80  param->SetMscRangeFactor(0.2);
81  param->SetMscStepLimitType(fMinimal);
82  SetPhysicsType(bElectromagnetic);
83 }
84 
86 
88  // gamma
90 
91  // leptons
93  G4Positron::Positron();
94  G4MuonPlus::MuonPlus();
95  G4MuonMinus::MuonMinus();
96  G4TauMinus::TauMinusDefinition();
97  G4TauPlus::TauPlusDefinition();
98 
99  // mesons
100  G4PionPlus::PionPlusDefinition();
101  G4PionMinus::PionMinusDefinition();
102  G4KaonPlus::KaonPlusDefinition();
103  G4KaonMinus::KaonMinusDefinition();
104  G4DMesonMinus::DMesonMinusDefinition();
105  G4DMesonPlus::DMesonPlusDefinition();
106  G4BMesonMinus::BMesonMinusDefinition();
107  G4BMesonPlus::BMesonPlusDefinition();
108 
109  // barions
110  G4Proton::Proton();
111  G4AntiProton::AntiProton();
112  G4SigmaMinus::SigmaMinusDefinition();
113  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
114  G4SigmaPlus::SigmaPlusDefinition();
115  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
116  G4XiMinus::XiMinusDefinition();
117  G4AntiXiMinus::AntiXiMinusDefinition();
118  G4OmegaMinus::OmegaMinusDefinition();
119  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
120  G4LambdacPlus::LambdacPlusDefinition();
121  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
122  G4XicPlus::XicPlusDefinition();
123  G4AntiXicPlus::AntiXicPlusDefinition();
124 
125  // ions
126  G4Deuteron::Deuteron();
127  G4Triton::Triton();
128  G4He3::He3();
129  G4Alpha::Alpha();
130  G4GenericIon::GenericIonDefinition();
131 }
132 
134  // This EM builder takes default models of Geant4 EMV.
135  // Multiple scattering by Urban for all particles
136 
137  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
138 
139  // muon & hadron bremsstrahlung and pair production
140  G4MuBremsstrahlung* mub = nullptr;
141  G4MuPairProduction* mup = nullptr;
142  G4hBremsstrahlung* pib = nullptr;
143  G4hPairProduction* pip = nullptr;
144  G4hBremsstrahlung* kb = nullptr;
145  G4hPairProduction* kp = nullptr;
146  G4hBremsstrahlung* pb = nullptr;
147  G4hPairProduction* pp = nullptr;
148 
149  // muon & hadron multiple scattering
150  G4MuMultipleScattering* mumsc = nullptr;
151  G4hMultipleScattering* pimsc = nullptr;
152  G4hMultipleScattering* kmsc = nullptr;
153  G4hMultipleScattering* pmsc = nullptr;
154  G4hMultipleScattering* hmsc = nullptr;
155 
156  // Add standard EM Processes
157  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
158  EmParticleList emList;
159  for (const auto& particleName : emList.PartNames()) {
160  G4ParticleDefinition* particle = table->FindParticle(particleName);
161  if (verbose > 1)
162  G4cout << "### " << GetPhysicsName() << " instantiates for " << particleName << G4endl;
163 
164  if (particleName == "gamma") {
165  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
166  ph->RegisterProcess(new G4ComptonScattering(), particle);
167  ph->RegisterProcess(new G4GammaConversion(), particle);
168 
169  } else if (particleName == "e-") {
170  G4eIonisation* eioni = new G4eIonisation();
171  G4eMultipleScattering* msc = new G4eMultipleScattering();
172  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
173 
174  ph->RegisterProcess(msc, particle);
175  ph->RegisterProcess(eioni, particle);
176  ph->RegisterProcess(ebrem, particle);
177 
178  } else if (particleName == "e+") {
179  G4eIonisation* eioni = new G4eIonisation();
180  G4eMultipleScattering* msc = new G4eMultipleScattering();
181  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
182 
183  ph->RegisterProcess(msc, particle);
184  ph->RegisterProcess(eioni, particle);
185  ph->RegisterProcess(ebrem, particle);
186  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
187 
188  } else if (particleName == "mu+" || particleName == "mu-") {
189  if (nullptr == mub) {
190  mub = new G4MuBremsstrahlung();
191  mup = new G4MuPairProduction();
192  mumsc = new G4MuMultipleScattering();
193  }
194  ph->RegisterProcess(mumsc, particle);
195  ph->RegisterProcess(new G4MuIonisation(), particle);
196  ph->RegisterProcess(mub, particle);
197  ph->RegisterProcess(mup, particle);
198 
199  } else if (particleName == "alpha" || particleName == "He3") {
200  ph->RegisterProcess(new G4hMultipleScattering(), particle);
201  ph->RegisterProcess(new G4ionIonisation(), particle);
202 
203  } else if (particleName == "GenericIon") {
204  if (nullptr == hmsc) {
205  hmsc = new G4hMultipleScattering("ionmsc");
206  }
207  ph->RegisterProcess(hmsc, particle);
208  ph->RegisterProcess(new G4ionIonisation(), particle);
209 
210  } else if (particleName == "pi+" || particleName == "pi-") {
211  if (nullptr == pib) {
212  pib = new G4hBremsstrahlung();
213  pip = new G4hPairProduction();
214  pimsc = new G4hMultipleScattering();
215  }
216  ph->RegisterProcess(pimsc, particle);
217  ph->RegisterProcess(new G4hIonisation(), particle);
218  ph->RegisterProcess(pib, particle);
219  ph->RegisterProcess(pip, particle);
220 
221  } else if (particleName == "kaon+" || particleName == "kaon-") {
222  if (nullptr == kb) {
223  kb = new G4hBremsstrahlung();
224  kp = new G4hPairProduction();
225  kmsc = new G4hMultipleScattering();
226  }
227  ph->RegisterProcess(kmsc, particle);
228  ph->RegisterProcess(new G4hIonisation(), particle);
229  ph->RegisterProcess(kb, particle);
230  ph->RegisterProcess(kp, particle);
231 
232  } else if (particleName == "proton" || particleName == "anti_proton") {
233  if (nullptr == pb) {
234  pb = new G4hBremsstrahlung();
235  pp = new G4hPairProduction();
236  }
237  pmsc = new G4hMultipleScattering();
238  ph->RegisterProcess(pmsc, particle);
239  ph->RegisterProcess(new G4hIonisation(), particle);
240  ph->RegisterProcess(pb, particle);
241  ph->RegisterProcess(pp, particle);
242 
243  } else if (particleName == "B+" || particleName == "B-" || particleName == "D+" || particleName == "D-" ||
244  particleName == "Ds+" || particleName == "Ds-" || particleName == "anti_He3" ||
245  particleName == "anti_alpha" || particleName == "anti_deuteron" || particleName == "anti_lambda_c+" ||
246  particleName == "anti_omega-" || particleName == "anti_sigma_c+" || particleName == "anti_sigma_c++" ||
247  particleName == "anti_sigma+" || particleName == "anti_sigma-" || particleName == "anti_triton" ||
248  particleName == "anti_xi_c+" || particleName == "anti_xi-" || particleName == "deuteron" ||
249  particleName == "lambda_c+" || particleName == "omega-" || particleName == "sigma_c+" ||
250  particleName == "sigma_c++" || particleName == "sigma+" || particleName == "sigma-" ||
251  particleName == "tau+" || particleName == "tau-" || particleName == "triton" ||
252  particleName == "xi_c+" || particleName == "xi-") {
253  if (nullptr == hmsc) {
254  hmsc = new G4hMultipleScattering("ionmsc");
255  }
256  ph->RegisterProcess(hmsc, particle);
257  ph->RegisterProcess(new G4hIonisation(), particle);
258  }
259  }
260 }
const std::vector< G4String > & PartNames() const
CMSEmStandardPhysics95(const G4String &name, G4int ver, const std::string &reg)
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
dbl * Gamma
Definition: mlp_gen.cc:38