CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CMSEmStandardPhysics95msc93.cc
Go to the documentation of this file.
3 
4 #include "G4ParticleDefinition.hh"
5 #include "G4ProcessManager.hh"
6 #include "G4LossTableManager.hh"
7 #include "G4EmProcessOptions.hh"
8 #include "G4RegionStore.hh"
9 
10 #include "G4ComptonScattering.hh"
11 #include "G4GammaConversion.hh"
12 #include "G4PhotoElectricEffect.hh"
13 #include "G4PairProductionRelModel.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 "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 "G4SystemOfUnits.hh"
68 
70  G4int ver, std::string reg)
71 : G4VPhysicsConstructor(name), verbose(ver), region(reg) {
72  G4LossTableManager::Instance();
73 }
74 
76 
78  // gamma
80 
81  // leptons
82  G4Electron::Electron();
83  G4Positron::Positron();
84  G4MuonPlus::MuonPlus();
85  G4MuonMinus::MuonMinus();
86  G4TauMinus::TauMinusDefinition();
87  G4TauPlus::TauPlusDefinition();
88 
89  // mesons
90  G4PionPlus::PionPlusDefinition();
91  G4PionMinus::PionMinusDefinition();
92  G4KaonPlus::KaonPlusDefinition();
93  G4KaonMinus::KaonMinusDefinition();
94  G4DMesonMinus::DMesonMinusDefinition();
95  G4DMesonPlus::DMesonPlusDefinition();
96  G4BMesonMinus::BMesonMinusDefinition();
97  G4BMesonPlus::BMesonPlusDefinition();
98 
99  // barions
100  G4Proton::Proton();
101  G4AntiProton::AntiProton();
102  G4SigmaMinus::SigmaMinusDefinition();
103  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
104  G4SigmaPlus::SigmaPlusDefinition();
105  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
106  G4XiMinus::XiMinusDefinition();
107  G4AntiXiMinus::AntiXiMinusDefinition();
108  G4OmegaMinus::OmegaMinusDefinition();
109  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
110  G4LambdacPlus::LambdacPlusDefinition();
111  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
112  G4XicPlus::XicPlusDefinition();
113  G4AntiXicPlus::AntiXicPlusDefinition();
114 
115  // ions
116  G4Deuteron::Deuteron();
117  G4Triton::Triton();
118  G4He3::He3();
119  G4Alpha::Alpha();
120  G4GenericIon::GenericIonDefinition();
121 }
122 
124 {
125  // Add standard EM Processes
126 
127  // muon & hadron bremsstrahlung and pair production
128  G4MuBremsstrahlung* mub = new G4MuBremsstrahlung();
129  G4MuPairProduction* mup = new G4MuPairProduction();
130  G4hBremsstrahlung* pib = new G4hBremsstrahlung();
131  G4hPairProduction* pip = new G4hPairProduction();
132  G4hBremsstrahlung* kb = new G4hBremsstrahlung();
133  G4hPairProduction* kp = new G4hPairProduction();
134  G4hBremsstrahlung* pb = new G4hBremsstrahlung();
135  G4hPairProduction* pp = new G4hPairProduction();
136 
137  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
138 
139  // This EM builder takes default models of Geant4 10 EMV.
140  // Multiple scattering by Urban for all particles
141  // except e+e- for which the Urban93 model is used
142 
143  aParticleIterator->reset();
144  while( (*aParticleIterator)() ){
145  G4ParticleDefinition* particle = aParticleIterator->value();
146  G4ProcessManager* pmanager = particle->GetProcessManager();
147  G4String particleName = particle->GetParticleName();
148  if(verbose > 1)
149  G4cout << "### " << GetPhysicsName() << " instantiates for "
150  << particleName << " at " << particle << G4endl;
151 
152  if (particleName == "gamma") {
153 
154  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
155  pmanager->AddDiscreteProcess(new G4ComptonScattering);
156  pmanager->AddDiscreteProcess(new G4GammaConversion());
157 
158  } else if (particleName == "e-") {
159 
160  G4eIonisation* eioni = new G4eIonisation();
161  eioni->SetStepFunction(0.8, 1.0*mm);
162  G4eMultipleScattering* msc = new G4eMultipleScattering;
163  msc->SetStepLimitType(fMinimal);
164  msc->AddEmModel(0,new UrbanMscModel93());
165 
166  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
167 
168  pmanager->AddProcess(msc, -1, 1, 1);
169  pmanager->AddProcess(eioni, -1, 2, 2);
170  pmanager->AddProcess(ebrem, -1,-3, 3);
171 
172  } else if (particleName == "e+") {
173 
174  G4eIonisation* eioni = new G4eIonisation();
175  eioni->SetStepFunction(0.8, 1.0*mm);
176 
177  G4eMultipleScattering* msc = new G4eMultipleScattering;
178  msc->SetStepLimitType(fMinimal);
179  msc->AddEmModel(0,new UrbanMscModel93());
180 
181  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
182 
183  pmanager->AddProcess(msc, -1, 1, 1);
184  pmanager->AddProcess(eioni, -1, 2, 2);
185  pmanager->AddProcess(ebrem, -1,-3, 3);
186  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
187 
188  } else if (particleName == "mu+" ||
189  particleName == "mu-" ) {
190 
191  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
192  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
193  pmanager->AddProcess(mub, -1,-3, 3);
194  pmanager->AddProcess(mup, -1,-4, 4);
195 
196  } else if (particleName == "alpha" ||
197  particleName == "He3" ||
198  particleName == "GenericIon") {
199 
200  pmanager->AddProcess(hmsc, -1, 1, 1);
201  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
202 
203  } else if (particleName == "pi+" ||
204  particleName == "pi-" ) {
205 
206  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
207  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
208  pmanager->AddProcess(pib, -1,-3, 3);
209  pmanager->AddProcess(pip, -1,-4, 4);
210 
211  } else if (particleName == "kaon+" ||
212  particleName == "kaon-" ) {
213 
214  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
215  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
216  pmanager->AddProcess(kb, -1,-3, 3);
217  pmanager->AddProcess(kp, -1,-4, 4);
218 
219  } else if (particleName == "proton" ||
220  particleName == "anti_proton" ) {
221 
222  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
223  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
224  pmanager->AddProcess(pb, -1,-3, 3);
225  pmanager->AddProcess(pp, -1,-4, 4);
226 
227  } else if (particleName == "B+" ||
228  particleName == "B-" ||
229  particleName == "D+" ||
230  particleName == "D-" ||
231  particleName == "Ds+" ||
232  particleName == "Ds-" ||
233  particleName == "anti_lambda_c+" ||
234  particleName == "anti_omega-" ||
235  particleName == "anti_proton" ||
236  particleName == "anti_sigma_c+" ||
237  particleName == "anti_sigma_c++" ||
238  particleName == "anti_sigma+" ||
239  particleName == "anti_sigma-" ||
240  particleName == "anti_xi_c+" ||
241  particleName == "anti_xi-" ||
242  particleName == "deuteron" ||
243  particleName == "lambda_c+" ||
244  particleName == "omega-" ||
245  particleName == "sigma_c+" ||
246  particleName == "sigma_c++" ||
247  particleName == "sigma+" ||
248  particleName == "sigma-" ||
249  particleName == "tau+" ||
250  particleName == "tau-" ||
251  particleName == "triton" ||
252  particleName == "xi_c+" ||
253  particleName == "xi-" ) {
254 
255  pmanager->AddProcess(hmsc, -1, 1, 1);
256  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
257  }
258  }
259 
260  // Setup options
261  //
262  G4EmProcessOptions opt;
263  opt.SetVerbose(verbose);
264  // opt.SetPolarAngleLimit(CLHEP::pi);
265  // ApplyCuts
266  //
267  opt.SetApplyCuts(true);
268 }
tuple pp
Definition: createTree.py:15
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
CMSEmStandardPhysics95msc93(const G4String &name, G4int ver, std::string reg)
dbl * Gamma
Definition: mlp_gen.cc:38