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 "G4MscStepLimitType.hh"
17 #include "CMSUrbanMscModel93.hh"
18 
19 #include "G4eIonisation.hh"
20 #include "G4eBremsstrahlung.hh"
21 #include "G4eplusAnnihilation.hh"
22 
23 #include "G4SeltzerBergerModel95.hh"
24 #include "G4eBremsstrahlungRelModel95.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(100*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 CMSUrbanMscModel93());
153 
154  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
155  ebrem->SetEmModel(new G4SeltzerBergerModel95(), 1);
156  ebrem->SetEmModel(new G4eBremsstrahlungRelModel95(), 2);
157  ebrem->EmModel(2)->SetLowEnergyLimit(GeV);
158 
159  pmanager->AddProcess(msc, -1, 1, 1);
160  pmanager->AddProcess(eioni, -1, 2, 2);
161  pmanager->AddProcess(ebrem, -1,-3, 3);
162 
163  } else if (particleName == "e+") {
164 
165  G4eIonisation* eioni = new G4eIonisation();
166  eioni->SetStepFunction(0.8, 1.0*mm);
167  G4eMultipleScattering* msc = new G4eMultipleScattering;
168  msc->SetStepLimitType(fMinimal);
169  msc->AddEmModel(0,new CMSUrbanMscModel93());
170 
171  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
172  ebrem->SetEmModel(new G4SeltzerBergerModel95(), 1);
173  ebrem->SetEmModel(new G4eBremsstrahlungRelModel95(), 2);
174  ebrem->EmModel(2)->SetLowEnergyLimit(GeV);
175 
176  pmanager->AddProcess(msc, -1, 1, 1);
177  pmanager->AddProcess(eioni, -1, 2, 2);
178  pmanager->AddProcess(ebrem, -1,-3, 3);
179  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
180 
181  } else if (particleName == "mu+" ||
182  particleName == "mu-" ) {
183 
184  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
185  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
186  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
187  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
188 
189  } else if (particleName == "alpha" ||
190  particleName == "He3" ||
191  particleName == "GenericIon") {
192 
193  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
194  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
195 
196  } else if (particleName == "pi+" ||
197  particleName == "kaon+" ||
198  particleName == "kaon-" ||
199  particleName == "proton" ||
200  particleName == "pi-" ) {
201 
202  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
203  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
204  pmanager->AddProcess(new G4hBremsstrahlung(), -1,-3, 3);
205  pmanager->AddProcess(new G4hPairProduction(), -1,-4, 4);
206 
207  } else if (particleName == "B+" ||
208  particleName == "B-" ||
209  particleName == "D+" ||
210  particleName == "D-" ||
211  particleName == "Ds+" ||
212  particleName == "Ds-" ||
213  particleName == "anti_lambda_c+" ||
214  particleName == "anti_omega-" ||
215  particleName == "anti_proton" ||
216  particleName == "anti_sigma_c+" ||
217  particleName == "anti_sigma_c++" ||
218  particleName == "anti_sigma+" ||
219  particleName == "anti_sigma-" ||
220  particleName == "anti_xi_c+" ||
221  particleName == "anti_xi-" ||
222  particleName == "deuteron" ||
223  particleName == "lambda_c+" ||
224  particleName == "omega-" ||
225  particleName == "sigma_c+" ||
226  particleName == "sigma_c++" ||
227  particleName == "sigma+" ||
228  particleName == "sigma-" ||
229  particleName == "tau+" ||
230  particleName == "tau-" ||
231  particleName == "triton" ||
232  particleName == "xi_c+" ||
233  particleName == "xi-" ) {
234 
235  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
236  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
237  }
238  }
239 
240  // Setup options
241  //
242  G4EmProcessOptions opt;
243  opt.SetVerbose(verbose);
244  // ApplyCuts
245  //
246  opt.SetApplyCuts(true);
247 
248  // Physics tables
249  //
250  opt.SetMinEnergy(100.*eV);
251  opt.SetMaxEnergy(10.*TeV);
252  opt.SetDEDXBinning(77);
253  opt.SetLambdaBinning(77);
254 
255 }
static HepMC::IO_HEPEVT conv
CMSEmStandardPhysicsLPM(const G4String &name, G4int ver)
list mod
Load physics model.
dbl * Gamma
Definition: mlp_gen.cc:38