CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CMSEmStandardPhysics.cc
Go to the documentation of this file.
3 
4 #include "G4ParticleDefinition.hh"
5 #include "G4LossTableManager.hh"
6 #include "G4EmProcessOptions.hh"
7 
8 #include "G4ComptonScattering.hh"
9 #include "G4GammaConversion.hh"
10 #include "G4PhotoElectricEffect.hh"
11 
12 #include "G4hMultipleScattering.hh"
13 #include "G4eMultipleScattering.hh"
14 #include "G4MuMultipleScattering.hh"
15 #include "G4CoulombScattering.hh"
16 #include "G4eCoulombScatteringModel.hh"
17 #include "G4WentzelVIModel.hh"
18 
19 #include "G4eIonisation.hh"
20 #include "G4eBremsstrahlung.hh"
21 #include "G4eplusAnnihilation.hh"
22 
23 #include "G4MuIonisation.hh"
24 #include "G4MuBremsstrahlung.hh"
25 #include "G4MuPairProduction.hh"
26 
27 #include "G4hIonisation.hh"
28 #include "G4ionIonisation.hh"
29 #include "G4hBremsstrahlung.hh"
30 #include "G4hPairProduction.hh"
31 
32 #include "G4Gamma.hh"
33 #include "G4Electron.hh"
34 #include "G4Positron.hh"
35 #include "G4MuonPlus.hh"
36 #include "G4MuonMinus.hh"
37 #include "G4TauMinus.hh"
38 #include "G4TauPlus.hh"
39 #include "G4PionPlus.hh"
40 #include "G4PionMinus.hh"
41 #include "G4KaonPlus.hh"
42 #include "G4KaonMinus.hh"
43 #include "G4BMesonMinus.hh"
44 #include "G4BMesonPlus.hh"
45 #include "G4DMesonMinus.hh"
46 #include "G4DMesonPlus.hh"
47 #include "G4Proton.hh"
48 #include "G4AntiProton.hh"
49 #include "G4SigmaMinus.hh"
50 #include "G4AntiSigmaMinus.hh"
51 #include "G4SigmaPlus.hh"
52 #include "G4AntiSigmaPlus.hh"
53 #include "G4XiMinus.hh"
54 #include "G4AntiXiMinus.hh"
55 #include "G4OmegaMinus.hh"
56 #include "G4AntiOmegaMinus.hh"
57 #include "G4LambdacPlus.hh"
58 #include "G4AntiLambdacPlus.hh"
59 #include "G4XicPlus.hh"
60 #include "G4AntiXicPlus.hh"
61 #include "G4Deuteron.hh"
62 #include "G4Triton.hh"
63 #include "G4He3.hh"
64 #include "G4Alpha.hh"
65 #include "G4GenericIon.hh"
66 
67 #include "G4PhysicsListHelper.hh"
68 #include "G4BuilderType.hh"
69 
70 #include "G4SystemOfUnits.hh"
71 
73  G4VPhysicsConstructor("CMSEmStandard_opt1"), verbose(ver) {
74  G4LossTableManager::Instance();
75  SetPhysicsType(bElectromagnetic);
76 }
77 
79 
81  // gamma
83 
84  // leptons
85  G4Electron::Electron();
86  G4Positron::Positron();
87  G4MuonPlus::MuonPlus();
88  G4MuonMinus::MuonMinus();
89  G4TauMinus::TauMinusDefinition();
90  G4TauPlus::TauPlusDefinition();
91 
92  // mesons
93  G4PionPlus::PionPlusDefinition();
94  G4PionMinus::PionMinusDefinition();
95  G4KaonPlus::KaonPlusDefinition();
96  G4KaonMinus::KaonMinusDefinition();
97  G4DMesonMinus::DMesonMinusDefinition();
98  G4DMesonPlus::DMesonPlusDefinition();
99  G4BMesonMinus::BMesonMinusDefinition();
100  G4BMesonPlus::BMesonPlusDefinition();
101 
102  // barions
103  G4Proton::Proton();
104  G4AntiProton::AntiProton();
105  G4SigmaMinus::SigmaMinusDefinition();
106  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
107  G4SigmaPlus::SigmaPlusDefinition();
108  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
109  G4XiMinus::XiMinusDefinition();
110  G4AntiXiMinus::AntiXiMinusDefinition();
111  G4OmegaMinus::OmegaMinusDefinition();
112  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
113  G4LambdacPlus::LambdacPlusDefinition();
114  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
115  G4XicPlus::XicPlusDefinition();
116  G4AntiXicPlus::AntiXicPlusDefinition();
117 
118  // ions
119  G4Deuteron::Deuteron();
120  G4Triton::Triton();
121  G4He3::He3();
122  G4Alpha::Alpha();
123  G4GenericIon::GenericIonDefinition();
124 }
125 
127 
128  if(verbose > 0) {
129  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
130  }
131 
132  // This EM builder takes default models of Geant4 10 EMV.
133  // Multiple scattering by Urban for all particles
134  // except e+e- below 100 MeV for which the Urban93 model is used
135 
136  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
137 
138  // muon & hadron bremsstrahlung and pair production
139  G4MuBremsstrahlung* mub = new G4MuBremsstrahlung();
140  G4MuPairProduction* mup = new G4MuPairProduction();
141  G4hBremsstrahlung* pib = new G4hBremsstrahlung();
142  G4hPairProduction* pip = new G4hPairProduction();
143  G4hBremsstrahlung* kb = new G4hBremsstrahlung();
144  G4hPairProduction* kp = new G4hPairProduction();
145  G4hBremsstrahlung* pb = new G4hBremsstrahlung();
146  G4hPairProduction* pp = new G4hPairProduction();
147 
148  // muon & hadron multiple scattering
149  G4MuMultipleScattering* mumsc = new G4MuMultipleScattering();
150  mumsc->AddEmModel(0, new G4WentzelVIModel());
151  G4MuMultipleScattering* pimsc = new G4MuMultipleScattering();
152  pimsc->AddEmModel(0, new G4WentzelVIModel());
153  G4MuMultipleScattering* kmsc = new G4MuMultipleScattering();
154  kmsc->AddEmModel(0, new G4WentzelVIModel());
155  G4MuMultipleScattering* pmsc = new G4MuMultipleScattering();
156  pmsc->AddEmModel(0, new G4WentzelVIModel());
157  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
158 
159  // high energy limit for e+- scattering models and bremsstrahlung
160  G4double highEnergyLimit = 100*MeV;
161 
162  aParticleIterator->reset();
163  while( (*aParticleIterator)() ){
164  G4ParticleDefinition* particle = aParticleIterator->value();
165  G4String particleName = particle->GetParticleName();
166 
167  if (particleName == "gamma") {
168 
169  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
170  ph->RegisterProcess(new G4ComptonScattering(), particle);
171  ph->RegisterProcess(new G4GammaConversion(), particle);
172 
173  } else if (particleName == "e-") {
174 
175  G4eIonisation* eioni = new G4eIonisation();
176  eioni->SetStepFunction(0.8, 1.0*mm);
177 
178  G4eMultipleScattering* msc = new G4eMultipleScattering;
179  msc->SetStepLimitType(fMinimal);
180  UrbanMscModel93* msc1 = new UrbanMscModel93();
181  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
182  msc1->SetHighEnergyLimit(highEnergyLimit);
183  msc2->SetLowEnergyLimit(highEnergyLimit);
184  msc->AddEmModel(0, msc1);
185  msc->AddEmModel(0, msc2);
186 
187  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
188  G4CoulombScattering* ss = new G4CoulombScattering();
189  ss->SetEmModel(ssm, 1);
190  ss->SetMinKinEnergy(highEnergyLimit);
191  ssm->SetLowEnergyLimit(highEnergyLimit);
192  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
193 
194  ph->RegisterProcess(msc, particle);
195  ph->RegisterProcess(eioni, particle);
196  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
197  ph->RegisterProcess(ss, particle);
198 
199  } else if (particleName == "e+") {
200 
201  G4eIonisation* eioni = new G4eIonisation();
202  eioni->SetStepFunction(0.8, 1.0*mm);
203 
204  G4eMultipleScattering* msc = new G4eMultipleScattering;
205  msc->SetStepLimitType(fMinimal);
206  UrbanMscModel93* msc1 = new UrbanMscModel93();
207  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
208  msc1->SetHighEnergyLimit(highEnergyLimit);
209  msc2->SetLowEnergyLimit(highEnergyLimit);
210  msc->AddEmModel(0, msc1);
211  msc->AddEmModel(0, msc2);
212 
213  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
214  G4CoulombScattering* ss = new G4CoulombScattering();
215  ss->SetEmModel(ssm, 1);
216  ss->SetMinKinEnergy(highEnergyLimit);
217  ssm->SetLowEnergyLimit(highEnergyLimit);
218  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
219 
220  ph->RegisterProcess(msc, particle);
221  ph->RegisterProcess(eioni, particle);
222  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
223  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
224  ph->RegisterProcess(ss, particle);
225 
226  } else if (particleName == "mu+" ||
227  particleName == "mu-" ) {
228 
229  ph->RegisterProcess(mumsc, particle);
230  ph->RegisterProcess(new G4MuIonisation(), particle);
231  ph->RegisterProcess(mub, particle);
232  ph->RegisterProcess(mup, particle);
233  ph->RegisterProcess(new G4CoulombScattering(), particle);
234 
235  } else if (particleName == "alpha" ||
236  particleName == "He3" ) {
237 
238  //ph->RegisterProcess(hmsc, particle);
239  ph->RegisterProcess(new G4hMultipleScattering(), particle);
240  ph->RegisterProcess(new G4ionIonisation(), particle);
241 
242  } else if (particleName == "GenericIon") {
243 
244  ph->RegisterProcess(hmsc, particle);
245  ph->RegisterProcess(new G4ionIonisation(), particle);
246 
247  } else if (particleName == "pi+" ||
248  particleName == "pi-" ) {
249 
250  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
251  ph->RegisterProcess(pimsc, particle);
252  ph->RegisterProcess(new G4hIonisation(), particle);
253  ph->RegisterProcess(pib, particle);
254  ph->RegisterProcess(pip, particle);
255  ph->RegisterProcess(new G4CoulombScattering(), particle);
256 
257  } else if (particleName == "kaon+" ||
258  particleName == "kaon-" ) {
259 
260  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
261  ph->RegisterProcess(kmsc, particle);
262  ph->RegisterProcess(new G4hIonisation(), particle);
263  ph->RegisterProcess(kb, particle);
264  ph->RegisterProcess(kp, particle);
265  ph->RegisterProcess(new G4CoulombScattering(), particle);
266 
267  // } else if (particleName == "proton" ) {
268  } else if (particleName == "proton" ||
269  particleName == "anti_proton") {
270 
271  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
272  ph->RegisterProcess(pmsc, particle);
273  ph->RegisterProcess(new G4hIonisation(), particle);
274  ph->RegisterProcess(pb, particle);
275  ph->RegisterProcess(pp, particle);
276  ph->RegisterProcess(new G4CoulombScattering(), particle);
277 
278  } else if (particleName == "B+" ||
279  particleName == "B-" ||
280  particleName == "D+" ||
281  particleName == "D-" ||
282  particleName == "Ds+" ||
283  particleName == "Ds-" ||
284  particleName == "anti_He3" ||
285  particleName == "anti_alpha" ||
286  particleName == "anti_deuteron" ||
287  particleName == "anti_lambda_c+" ||
288  particleName == "anti_omega-" ||
289  particleName == "anti_sigma_c+" ||
290  particleName == "anti_sigma_c++" ||
291  particleName == "anti_sigma+" ||
292  particleName == "anti_sigma-" ||
293  particleName == "anti_triton" ||
294  particleName == "anti_xi_c+" ||
295  particleName == "anti_xi-" ||
296  particleName == "deuteron" ||
297  particleName == "lambda_c+" ||
298  particleName == "omega-" ||
299  particleName == "sigma_c+" ||
300  particleName == "sigma_c++" ||
301  particleName == "sigma+" ||
302  particleName == "sigma-" ||
303  particleName == "tau+" ||
304  particleName == "tau-" ||
305  particleName == "triton" ||
306  particleName == "xi_c+" ||
307  particleName == "xi-" ) {
308 
309  ph->RegisterProcess(hmsc, particle);
310  ph->RegisterProcess(new G4hIonisation(), particle);
311  }
312  }
313  G4EmProcessOptions opt;
314  opt.SetVerbose(verbose);
315  opt.SetPolarAngleLimit(CLHEP::pi);
316  opt.SetApplyCuts(true);
317 }
tuple pp
Definition: createTree.py:15
int kp
virtual void ConstructParticle()
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
dbl * Gamma
Definition: mlp_gen.cc:38
double pi