CMS 3D CMS Logo

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