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.
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 "G4UrbanMscModel93.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 
68  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
69  G4LossTableManager::Instance();
70 }
71 
73 
75  // gamma
77 
78  // leptons
79  G4Electron::Electron();
80  G4Positron::Positron();
81  G4MuonPlus::MuonPlus();
82  G4MuonMinus::MuonMinus();
83  G4TauMinus::TauMinusDefinition();
84  G4TauPlus::TauPlusDefinition();
85 
86  // mesons
87  G4PionPlus::PionPlusDefinition();
88  G4PionMinus::PionMinusDefinition();
89  G4KaonPlus::KaonPlusDefinition();
90  G4KaonMinus::KaonMinusDefinition();
91  G4DMesonMinus::DMesonMinusDefinition();
92  G4DMesonPlus::DMesonPlusDefinition();
93  G4BMesonMinus::BMesonMinusDefinition();
94  G4BMesonPlus::BMesonPlusDefinition();
95 
96  // barions
97  G4Proton::Proton();
98  G4AntiProton::AntiProton();
99  G4SigmaMinus::SigmaMinusDefinition();
100  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
101  G4SigmaPlus::SigmaPlusDefinition();
102  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
103  G4XiMinus::XiMinusDefinition();
104  G4AntiXiMinus::AntiXiMinusDefinition();
105  G4OmegaMinus::OmegaMinusDefinition();
106  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
107  G4LambdacPlus::LambdacPlusDefinition();
108  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
109  G4XicPlus::XicPlusDefinition();
110  G4AntiXicPlus::AntiXicPlusDefinition();
111 
112  // ions
113  G4Deuteron::Deuteron();
114  G4Triton::Triton();
115  G4He3::He3();
116  G4Alpha::Alpha();
117  G4GenericIon::GenericIonDefinition();
118 }
119 
121 {
122  // Add standard EM Processes
123 
124  theParticleIterator->reset();
125  while( (*theParticleIterator)() ){
126  G4ParticleDefinition* particle = theParticleIterator->value();
127  G4ProcessManager* pmanager = particle->GetProcessManager();
128  G4String particleName = particle->GetParticleName();
129  if(verbose > 1)
130  G4cout << "### " << GetPhysicsName() << " instantiates for "
131  << particleName << " at " << particle << G4endl;
132 
133  if (particleName == "gamma") {
134 
135  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
136  pmanager->AddDiscreteProcess(new G4ComptonScattering);
137  G4GammaConversion* conv = new G4GammaConversion();
138  G4PairProductionRelModel* mod = new G4PairProductionRelModel();
139  mod->SetLowEnergyLimit(80*GeV);
140  conv->AddEmModel(0, mod);
141  pmanager->AddDiscreteProcess(conv);
142 
143  } else if (particleName == "e-") {
144 
145  G4eIonisation* eioni = new G4eIonisation();
146  eioni->SetStepFunction(0.8, 1.0*mm);
147  G4eMultipleScattering* msc = new G4eMultipleScattering;
148  msc->SetStepLimitType(fMinimal);
149  msc->AddEmModel(0,new G4UrbanMscModel93());
150 
151  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
152 
153  pmanager->AddProcess(msc, -1, 1, 1);
154  pmanager->AddProcess(eioni, -1, 2, 2);
155  pmanager->AddProcess(ebrem, -1,-3, 3);
156 
157  } else if (particleName == "e+") {
158 
159  G4eIonisation* eioni = new G4eIonisation();
160  eioni->SetStepFunction(0.8, 1.0*mm);
161  G4eMultipleScattering* msc = new G4eMultipleScattering;
162  msc->SetStepLimitType(fMinimal);
163  msc->AddEmModel(0,new G4UrbanMscModel93());
164 
165  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
166 
167  pmanager->AddProcess(msc, -1, 1, 1);
168  pmanager->AddProcess(eioni, -1, 2, 2);
169  pmanager->AddProcess(ebrem, -1,-3, 3);
170  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
171 
172  } else if (particleName == "mu+" ||
173  particleName == "mu-" ) {
174 
175  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
176  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
177  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
178  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
179 
180  } else if (particleName == "alpha" ||
181  particleName == "He3" ||
182  particleName == "GenericIon") {
183 
184  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
185  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
186 
187  } else if (particleName == "pi+" ||
188  particleName == "kaon+" ||
189  particleName == "kaon-" ||
190  particleName == "proton" ||
191  particleName == "pi-" ) {
192 
193  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
194  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
195  pmanager->AddProcess(new G4hBremsstrahlung(), -1,-3, 3);
196  pmanager->AddProcess(new G4hPairProduction(), -1,-4, 4);
197 
198  } else if (particleName == "B+" ||
199  particleName == "B-" ||
200  particleName == "D+" ||
201  particleName == "D-" ||
202  particleName == "Ds+" ||
203  particleName == "Ds-" ||
204  particleName == "anti_lambda_c+" ||
205  particleName == "anti_omega-" ||
206  particleName == "anti_proton" ||
207  particleName == "anti_sigma_c+" ||
208  particleName == "anti_sigma_c++" ||
209  particleName == "anti_sigma+" ||
210  particleName == "anti_sigma-" ||
211  particleName == "anti_xi_c+" ||
212  particleName == "anti_xi-" ||
213  particleName == "deuteron" ||
214  particleName == "lambda_c+" ||
215  particleName == "omega-" ||
216  particleName == "sigma_c+" ||
217  particleName == "sigma_c++" ||
218  particleName == "sigma+" ||
219  particleName == "sigma-" ||
220  particleName == "tau+" ||
221  particleName == "tau-" ||
222  particleName == "triton" ||
223  particleName == "xi_c+" ||
224  particleName == "xi-" ) {
225 
226  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
227  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
228  }
229  }
230 
231  // Setup options
232  //
233  G4EmProcessOptions opt;
234  opt.SetVerbose(verbose);
235  // opt.SetPolarAngleLimit(CLHEP::pi);
236  // ApplyCuts
237  //
238  opt.SetApplyCuts(true);
239 
240  // Physics tables
241  //
242  opt.SetMinEnergy(100.*eV);
243  opt.SetMaxEnergy(10.*TeV);
244  opt.SetDEDXBinning(77);
245  opt.SetLambdaBinning(77);
246 
247 }
static HepMC::IO_HEPEVT conv
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
CMSEmStandardPhysics95msc93(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