CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CMSEmStandardPhysicsLPM.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 "G4MuMultipleScattering.hh"
18 #include "G4MscStepLimitType.hh"
19 #include "G4WentzelVIModel.hh"
20 #include "G4CoulombScattering.hh"
21 
22 #include "G4eIonisation.hh"
23 #include "G4eBremsstrahlung.hh"
24 #include "G4eplusAnnihilation.hh"
25 
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 
70 #include "G4SystemOfUnits.hh"
71 
73  G4VPhysicsConstructor(name), verbose(ver) {
74  G4LossTableManager::Instance();
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  // muon & hadron bremsstrahlung and pair production
130  G4MuBremsstrahlung* mub = new G4MuBremsstrahlung();
131  G4MuPairProduction* mup = new G4MuPairProduction();
132  G4hBremsstrahlung* pib = new G4hBremsstrahlung();
133  G4hPairProduction* pip = new G4hPairProduction();
134  G4hBremsstrahlung* kb = new G4hBremsstrahlung();
135  G4hPairProduction* kp = new G4hPairProduction();
136  G4hBremsstrahlung* pb = new G4hBremsstrahlung();
137  G4hPairProduction* pp = new G4hPairProduction();
138 
139  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
140 
141  // This EM builder takes default models of Geant4 10 EMV.
142  // Multiple scattering by Urban for all particles
143  // except e+e- for which the Urban93 model is used
144  // and WentzelVI+SingleScattering for muons
145 
146  aParticleIterator->reset();
147  while( (*aParticleIterator)() ){
148  G4ParticleDefinition* particle = aParticleIterator->value();
149  G4ProcessManager* pmanager = particle->GetProcessManager();
150  G4String particleName = particle->GetParticleName();
151  if(verbose > 1)
152  G4cout << "### " << GetPhysicsName() << " instantiates for "
153  << particleName << " at " << particle << G4endl;
154 
155  if (particleName == "gamma") {
156 
157  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
158  pmanager->AddDiscreteProcess(new G4ComptonScattering);
159  pmanager->AddDiscreteProcess(new G4GammaConversion());
160 
161  } else if (particleName == "e-") {
162 
163  G4eIonisation* eioni = new G4eIonisation();
164  eioni->SetStepFunction(0.8, 1.0*mm);
165  G4eMultipleScattering* msc = new G4eMultipleScattering;
166  msc->SetStepLimitType(fMinimal);
167  msc->AddEmModel(0,new UrbanMscModel93());
168 
169  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
170 
171  pmanager->AddProcess(msc, -1, 1, 1);
172  pmanager->AddProcess(eioni, -1, 2, 2);
173  pmanager->AddProcess(ebrem, -1,-3, 3);
174 
175  } else if (particleName == "e+") {
176 
177  G4eIonisation* eioni = new G4eIonisation();
178  eioni->SetStepFunction(0.8, 1.0*mm);
179  G4eMultipleScattering* msc = new G4eMultipleScattering;
180  msc->SetStepLimitType(fMinimal);
181  msc->AddEmModel(0,new UrbanMscModel93());
182 
183  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
184 
185  pmanager->AddProcess(msc, -1, 1, 1);
186  pmanager->AddProcess(eioni, -1, 2, 2);
187  pmanager->AddProcess(ebrem, -1,-3, 3);
188  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
189 
190  } else if (particleName == "mu+" ||
191  particleName == "mu-" ) {
192 
193  G4MuMultipleScattering* mumsc = new G4MuMultipleScattering();
194  mumsc->AddEmModel(0, new G4WentzelVIModel());
195  pmanager->AddProcess(mumsc, -1, 1, 1);
196  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
197  pmanager->AddProcess(mub, -1,-3, 3);
198  pmanager->AddProcess(mup, -1,-4, 4);
199  pmanager->AddProcess(new G4CoulombScattering, -1,-4, 5);
200 
201  } else if (particleName == "alpha" ||
202  particleName == "He3" ||
203  particleName == "GenericIon") {
204 
205  pmanager->AddProcess(hmsc, -1, 1, 1);
206  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
207 
208  } else if (particleName == "pi+" ||
209  particleName == "pi-" ) {
210 
211  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
212  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
213  pmanager->AddProcess(pib, -1,-3, 3);
214  pmanager->AddProcess(pip, -1,-4, 4);
215 
216  } else if (particleName == "kaon+" ||
217  particleName == "kaon-" ) {
218 
219  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
220  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
221  pmanager->AddProcess(kb, -1,-3, 3);
222  pmanager->AddProcess(kp, -1,-4, 4);
223 
224  } else if (particleName == "proton" ||
225  particleName == "anti_proton" ) {
226 
227  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
228  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
229  pmanager->AddProcess(pb, -1,-3, 3);
230  pmanager->AddProcess(pp, -1,-4, 4);
231 
232  } else if (particleName == "B+" ||
233  particleName == "B-" ||
234  particleName == "D+" ||
235  particleName == "D-" ||
236  particleName == "Ds+" ||
237  particleName == "Ds-" ||
238  particleName == "anti_lambda_c+" ||
239  particleName == "anti_omega-" ||
240  particleName == "anti_sigma_c+" ||
241  particleName == "anti_sigma_c++" ||
242  particleName == "anti_sigma+" ||
243  particleName == "anti_sigma-" ||
244  particleName == "anti_xi_c+" ||
245  particleName == "anti_xi-" ||
246  particleName == "deuteron" ||
247  particleName == "lambda_c+" ||
248  particleName == "omega-" ||
249  particleName == "sigma_c+" ||
250  particleName == "sigma_c++" ||
251  particleName == "sigma+" ||
252  particleName == "sigma-" ||
253  particleName == "tau+" ||
254  particleName == "tau-" ||
255  particleName == "triton" ||
256  particleName == "xi_c+" ||
257  particleName == "xi-" ) {
258 
259  pmanager->AddProcess(hmsc, -1, 1, 1);
260  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
261  }
262  }
263 
264  // Setup options
265  //
266  G4EmProcessOptions opt;
267  opt.SetVerbose(verbose);
268 
269  // muon scattering
270  opt.SetPolarAngleLimit(CLHEP::pi);
271 
272  // ApplyCuts
273  //
274  opt.SetApplyCuts(true);
275 }
tuple pp
Definition: createTree.py:15
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
CMSEmStandardPhysicsLPM(const G4String &name, G4int ver)
const Double_t pi
dbl * Gamma
Definition: mlp_gen.cc:38