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.
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 "G4PhotoElectricEffect.hh"
12 #include "G4PairProductionRelModel.hh"
13 
14 #include "G4hMultipleScattering.hh"
15 #include "G4eMultipleScattering.hh"
16 #include "G4MuMultipleScattering.hh"
17 #include "G4MscStepLimitType.hh"
18 #include "G4UrbanMscModel93.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 
71  G4VPhysicsConstructor(name), verbose(ver) {
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  theParticleIterator->reset();
128  while( (*theParticleIterator)() ){
129  G4ParticleDefinition* particle = theParticleIterator->value();
130  G4ProcessManager* pmanager = particle->GetProcessManager();
131  G4String particleName = particle->GetParticleName();
132  if(verbose > 1)
133  G4cout << "### " << GetPhysicsName() << " instantiates for "
134  << particleName << " at " << particle << G4endl;
135 
136  if (particleName == "gamma") {
137 
138  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
139  pmanager->AddDiscreteProcess(new G4ComptonScattering);
140  G4GammaConversion* conv = new G4GammaConversion();
141  G4PairProductionRelModel* mod = new G4PairProductionRelModel();
142  mod->SetLowEnergyLimit(80*GeV);
143  conv->AddEmModel(0, mod);
144  pmanager->AddDiscreteProcess(conv);
145 
146  } else if (particleName == "e-") {
147 
148  G4eIonisation* eioni = new G4eIonisation();
149  eioni->SetStepFunction(0.8, 1.0*mm);
150  G4eMultipleScattering* msc = new G4eMultipleScattering;
151  msc->SetStepLimitType(fMinimal);
152  msc->AddEmModel(0,new G4UrbanMscModel93());
153 
154  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
155 
156  pmanager->AddProcess(msc, -1, 1, 1);
157  pmanager->AddProcess(eioni, -1, 2, 2);
158  pmanager->AddProcess(ebrem, -1,-3, 3);
159 
160  } else if (particleName == "e+") {
161 
162  G4eIonisation* eioni = new G4eIonisation();
163  eioni->SetStepFunction(0.8, 1.0*mm);
164  G4eMultipleScattering* msc = new G4eMultipleScattering;
165  msc->SetStepLimitType(fMinimal);
166  msc->AddEmModel(0,new G4UrbanMscModel93());
167 
168  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
169 
170  pmanager->AddProcess(msc, -1, 1, 1);
171  pmanager->AddProcess(eioni, -1, 2, 2);
172  pmanager->AddProcess(ebrem, -1,-3, 3);
173  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
174 
175  } else if (particleName == "mu+" ||
176  particleName == "mu-" ) {
177 
178  G4MuMultipleScattering* mumsc = new G4MuMultipleScattering();
179  mumsc->AddEmModel(0, new G4WentzelVIModel());
180  pmanager->AddProcess(mumsc, -1, 1, 1);
181  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
182  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
183  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
184  pmanager->AddProcess(new G4CoulombScattering, -1,-4, 5);
185 
186  } else if (particleName == "alpha" ||
187  particleName == "He3" ||
188  particleName == "GenericIon") {
189 
190  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
191  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
192 
193  } else if (particleName == "pi+" ||
194  particleName == "kaon+" ||
195  particleName == "kaon-" ||
196  particleName == "proton" ||
197  particleName == "pi-" ) {
198 
199  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
200  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
201  pmanager->AddProcess(new G4hBremsstrahlung(), -1,-3, 3);
202  pmanager->AddProcess(new G4hPairProduction(), -1,-4, 4);
203 
204  } else if (particleName == "B+" ||
205  particleName == "B-" ||
206  particleName == "D+" ||
207  particleName == "D-" ||
208  particleName == "Ds+" ||
209  particleName == "Ds-" ||
210  particleName == "anti_lambda_c+" ||
211  particleName == "anti_omega-" ||
212  particleName == "anti_proton" ||
213  particleName == "anti_sigma_c+" ||
214  particleName == "anti_sigma_c++" ||
215  particleName == "anti_sigma+" ||
216  particleName == "anti_sigma-" ||
217  particleName == "anti_xi_c+" ||
218  particleName == "anti_xi-" ||
219  particleName == "deuteron" ||
220  particleName == "lambda_c+" ||
221  particleName == "omega-" ||
222  particleName == "sigma_c+" ||
223  particleName == "sigma_c++" ||
224  particleName == "sigma+" ||
225  particleName == "sigma-" ||
226  particleName == "tau+" ||
227  particleName == "tau-" ||
228  particleName == "triton" ||
229  particleName == "xi_c+" ||
230  particleName == "xi-" ) {
231 
232  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
233  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
234  }
235  }
236 
237  // Setup options
238  //
239  G4EmProcessOptions opt;
240  opt.SetVerbose(verbose);
241 
242  // muon scattering
243  opt.SetPolarAngleLimit(CLHEP::pi);
244 
245  // ApplyCuts
246  //
247  opt.SetApplyCuts(true);
248 
249  // Physics tables
250  //
251  opt.SetMinEnergy(100.*eV);
252  opt.SetMaxEnergy(10.*TeV);
253  opt.SetDEDXBinning(77);
254  opt.SetLambdaBinning(77);
255 
256 }
static HepMC::IO_HEPEVT conv
CMSEmStandardPhysicsLPM(const G4String &name, G4int ver)
dbl * Gamma
Definition: mlp_gen.cc:38
double pi
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4