CMS 3D CMS Logo

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