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 
70  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
71  G4LossTableManager::Instance();
72  SetPhysicsType(bElectromagnetic);
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  G4Region* reg = 0;
128  if (region != " ") {
129  G4RegionStore* regStore = G4RegionStore::GetInstance();
130  reg = regStore->GetRegion(region, true);
131  }
132  */
133 
134  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
135 
136  // Add standard EM Processes
137  theParticleIterator->reset();
138  while( (*theParticleIterator)() ){
139  G4ParticleDefinition* particle = theParticleIterator->value();
140  G4String particleName = particle->GetParticleName();
141  if(verbose > 1)
142  G4cout << "### " << GetPhysicsName() << " instantiates for "
143  << particleName << G4endl;
144 
145  if (particleName == "gamma") {
146 
147  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
148  ph->RegisterProcess(new G4ComptonScattering(), particle);
149  G4GammaConversion* conv = new G4GammaConversion();
150  G4PairProductionRelModel* mod = new G4PairProductionRelModel();
151  mod->SetLowEnergyLimit(80*GeV);
152  conv->AddEmModel(0, mod);
153  ph->RegisterProcess(conv, particle);
154 
155  } else if (particleName == "e-") {
156 
157  G4eIonisation* eioni = new G4eIonisation();
158  eioni->SetStepFunction(0.8, 1.0*mm);
159  G4eMultipleScattering* msc = new G4eMultipleScattering();
160  msc->SetStepLimitType(fMinimal);
161 
162  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
163 
164  ph->RegisterProcess(msc, particle);
165  ph->RegisterProcess(eioni, particle);
166  ph->RegisterProcess(ebrem, particle);
167 
168  } else if (particleName == "e+") {
169 
170  G4eIonisation* eioni = new G4eIonisation();
171  eioni->SetStepFunction(0.8, 1.0*mm);
172  G4eMultipleScattering* msc = new G4eMultipleScattering();
173  msc->SetStepLimitType(fMinimal);
174 
175  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
176 
177  ph->RegisterProcess(msc, particle);
178  ph->RegisterProcess(eioni, particle);
179  ph->RegisterProcess(ebrem, particle);
180  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
181 
182  } else if (particleName == "mu+" ||
183  particleName == "mu-" ) {
184 
185  G4MuMultipleScattering* msc = new G4MuMultipleScattering();
186  G4MuBremsstrahlung* mub = new G4MuBremsstrahlung();
187  G4MuPairProduction* mup = new G4MuPairProduction();
188 
189  ph->RegisterProcess(msc, particle);
190  ph->RegisterProcess(new G4MuIonisation(), particle);
191  ph->RegisterProcess(mub, particle);
192  ph->RegisterProcess(mup, particle);
193 
194  } else if (particleName == "alpha" ||
195  particleName == "He3" ) {
196 
197  ph->RegisterProcess(new G4hMultipleScattering(), particle);
198  ph->RegisterProcess(new G4ionIonisation(), particle);
199 
200  } else if (particleName == "GenericIon") {
201 
202  ph->RegisterProcess(new G4hMultipleScattering(), particle);
203  ph->RegisterProcess(new G4ionIonisation(), particle);
204 
205  } else if (particleName == "pi+" ||
206  particleName == "pi-" ) {
207 
208  G4hBremsstrahlung* pib = new G4hBremsstrahlung();
209  G4hPairProduction* pip = new G4hPairProduction();
210 
211  ph->RegisterProcess(new G4hMultipleScattering(), particle);
212  ph->RegisterProcess(new G4hIonisation(), particle);
213  ph->RegisterProcess(pib, particle);
214  ph->RegisterProcess(pip, particle);
215 
216  } else if (particleName == "kaon+" ||
217  particleName == "kaon-" ) {
218 
219  G4hBremsstrahlung* kb = new G4hBremsstrahlung();
220  G4hPairProduction* kp = new G4hPairProduction();
221 
222  ph->RegisterProcess(new G4hMultipleScattering(), particle);
223  ph->RegisterProcess(new G4hIonisation(), particle);
224  ph->RegisterProcess(kb, particle);
225  ph->RegisterProcess(kp, particle);
226 
227  } else if (particleName == "proton" ) {
228 
229  ph->RegisterProcess(new G4hMultipleScattering(), particle);
230  ph->RegisterProcess(new G4hIonisation(), particle);
231  ph->RegisterProcess(new G4hBremsstrahlung(), particle);
232  ph->RegisterProcess(new G4hPairProduction(), particle);
233 
234  } else if (particleName == "B+" ||
235  particleName == "B-" ||
236  particleName == "D+" ||
237  particleName == "D-" ||
238  particleName == "Ds+" ||
239  particleName == "Ds-" ||
240  particleName == "anti_He3" ||
241  particleName == "anti_alpha" ||
242  particleName == "anti_deuteron" ||
243  particleName == "anti_lambda_c+" ||
244  particleName == "anti_omega-" ||
245  particleName == "anti_proton" ||
246  particleName == "anti_sigma_c+" ||
247  particleName == "anti_sigma_c++" ||
248  particleName == "anti_sigma+" ||
249  particleName == "anti_sigma-" ||
250  particleName == "anti_triton" ||
251  particleName == "anti_xi_c+" ||
252  particleName == "anti_xi-" ||
253  particleName == "deuteron" ||
254  particleName == "lambda_c+" ||
255  particleName == "omega-" ||
256  particleName == "sigma_c+" ||
257  particleName == "sigma_c++" ||
258  particleName == "sigma+" ||
259  particleName == "sigma-" ||
260  particleName == "tau+" ||
261  particleName == "tau-" ||
262  particleName == "triton" ||
263  particleName == "xi_c+" ||
264  particleName == "xi-" ) {
265 
266  ph->RegisterProcess(new G4hMultipleScattering(), particle);
267  ph->RegisterProcess(new G4hIonisation(), particle);
268  }
269  }
270 
271  // Setup options
272  //
273  G4EmProcessOptions opt;
274  opt.SetVerbose(verbose);
275  // opt.SetPolarAngleLimit(CLHEP::pi);
276  // ApplyCuts
277  //
278  opt.SetApplyCuts(true);
279 }
static HepMC::IO_HEPEVT conv
int kp
CMSEmStandardPhysics95(const G4String &name, G4int ver, std::string reg)
dbl * Gamma
Definition: mlp_gen.cc:38
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4