CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
G4EmStandardPhysics_option1LHCB.cc
Go to the documentation of this file.
1 #include "SimG4Core/PhysicsLists/interface/G4EmStandardPhysics_option1LHCB.hh"
2 #include "G4ParticleDefinition.hh"
3 #include "G4ProcessManager.hh"
4 #include "G4LossTableManager.hh"
5 #include "G4EmProcessOptions.hh"
6 
7 #include "G4ComptonScattering.hh"
8 #include "G4GammaConversion.hh"
9 #include "G4PhotoElectricEffect.hh"
10 
11 #include "G4eMultipleScattering.hh"
12 #include "G4MuMultipleScattering.hh"
13 #include "G4hMultipleScattering.hh"
14 #include "G4CoulombScattering.hh"
15 #include "G4WentzelVIModel.hh"
16 #include "G4UrbanMscModel93.hh"
17 #include "G4eCoulombScatteringModel.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 #include "G4hBremsstrahlung.hh"
27 #include "G4hPairProduction.hh"
28 
29 #include "G4hIonisation.hh"
30 #include "G4ionIonisation.hh"
31 #include "G4alphaIonisation.hh"
32 
33 #include "G4Gamma.hh"
34 #include "G4Electron.hh"
35 #include "G4Positron.hh"
36 #include "G4MuonPlus.hh"
37 #include "G4MuonMinus.hh"
38 #include "G4PionPlus.hh"
39 #include "G4PionMinus.hh"
40 #include "G4KaonPlus.hh"
41 #include "G4KaonMinus.hh"
42 #include "G4Proton.hh"
43 #include "G4AntiProton.hh"
44 #include "G4Deuteron.hh"
45 #include "G4Triton.hh"
46 #include "G4He3.hh"
47 #include "G4Alpha.hh"
48 #include "G4GenericIon.hh"
49 
50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51 
52 G4EmStandardPhysics_option1LHCB::G4EmStandardPhysics_option1LHCB(G4int ver)
53  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
54 {
55  G4LossTableManager::Instance();
56 }
57 
58 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
59 
60 G4EmStandardPhysics_option1LHCB::~G4EmStandardPhysics_option1LHCB()
61 {}
62 
63 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
64 
65 void G4EmStandardPhysics_option1LHCB::ConstructParticle()
66 {
67 // gamma
69 
70 // leptons
71  G4Electron::Electron();
72  G4Positron::Positron();
73  G4MuonPlus::MuonPlus();
74  G4MuonMinus::MuonMinus();
75 
76 // mesons
77  G4PionPlus::PionPlusDefinition();
78  G4PionMinus::PionMinusDefinition();
79  G4KaonPlus::KaonPlusDefinition();
80  G4KaonMinus::KaonMinusDefinition();
81 
82 // barions
83  G4Proton::Proton();
84  G4AntiProton::AntiProton();
85 
86 // ions
87  G4Deuteron::Deuteron();
88  G4Triton::Triton();
89  G4He3::He3();
90  G4Alpha::Alpha();
91  G4GenericIon::GenericIonDefinition();
92 }
93 
94 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
95 
96 void G4EmStandardPhysics_option1LHCB::ConstructProcess()
97 {
98  // Add standard EM Processes
99  G4double mscEnergyLimit = 1.05*GeV;
100 
101  theParticleIterator->reset();
102  while( (*theParticleIterator)() ){
103  G4ParticleDefinition* particle = theParticleIterator->value();
104  G4ProcessManager* pmanager = particle->GetProcessManager();
105  G4String particleName = particle->GetParticleName();
106  if(verbose > 1)
107  G4cout << "### " << GetPhysicsName() << " instantiates for "
108  << particleName << G4endl;
109 
110  if (particleName == "gamma") {
111 
112  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
113  pmanager->AddDiscreteProcess(new G4ComptonScattering);
114  pmanager->AddDiscreteProcess(new G4GammaConversion);
115 
116  } else if (particleName == "e-") {
117 
118  G4eIonisation* eioni = new G4eIonisation();
119  eioni->SetStepFunction(0.8, 1.0*mm);
120  G4eMultipleScattering* msc = new G4eMultipleScattering;
121  msc->SetStepLimitType(fMinimal);
122  G4UrbanMscModel93* msc93 = new G4UrbanMscModel93();
123  G4WentzelVIModel* wvi = new G4WentzelVIModel();
124  msc93->SetHighEnergyLimit(mscEnergyLimit);
125  wvi->SetLowEnergyLimit(mscEnergyLimit);
126  msc->AddEmModel(0, msc93);
127  msc->AddEmModel(0, wvi);
128  pmanager->AddProcess(msc, -1, 1, 1);
129  pmanager->AddProcess(eioni, -1, 2, 2);
130  pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
131  G4CoulombScattering* sc = new G4CoulombScattering();
132  G4eCoulombScatteringModel* mod = new G4eCoulombScatteringModel();
133  mod->SetActivationLowEnergyLimit(mscEnergyLimit);
134  sc->AddEmModel(0, mod);
135  pmanager->AddDiscreteProcess(sc);
136 
137  } else if (particleName == "e+") {
138 
139  G4eIonisation* eioni = new G4eIonisation();
140  eioni->SetStepFunction(0.8, 1.0*mm);
141  G4eMultipleScattering* msc = new G4eMultipleScattering;
142  msc->SetStepLimitType(fMinimal);
143  G4UrbanMscModel93* msc93 = new G4UrbanMscModel93();
144  G4WentzelVIModel* wvi = new G4WentzelVIModel();
145  msc93->SetHighEnergyLimit(mscEnergyLimit);
146  wvi->SetLowEnergyLimit(mscEnergyLimit);
147  msc->AddEmModel(0, msc93);
148  msc->AddEmModel(0, wvi);
149  pmanager->AddProcess(msc, -1, 1, 1);
150  pmanager->AddProcess(eioni, -1, 2, 2);
151  pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
152  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
153  G4CoulombScattering* sc = new G4CoulombScattering();
154  G4eCoulombScatteringModel* mod = new G4eCoulombScatteringModel();
155  mod->SetActivationLowEnergyLimit(mscEnergyLimit);
156  sc->AddEmModel(0, mod);
157  pmanager->AddDiscreteProcess(sc);
158 
159  } else if (particleName == "mu+" ||
160  particleName == "mu-" ) {
161 
162  G4MuMultipleScattering* msc = new G4MuMultipleScattering();
163  msc->AddEmModel(0, new G4WentzelVIModel());
164  pmanager->AddProcess(msc, -1, 1, 1);
165  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
166  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
167  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
168  pmanager->AddDiscreteProcess(new G4CoulombScattering());
169 
170  } else if (particleName == "alpha" ||
171  particleName == "He3") {
172 
173  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
174  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
175 
176  } else if (particleName == "GenericIon") {
177 
178  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
179  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
180 
181  } else if (particleName == "pi+" ||
182  particleName == "pi-" ||
183  particleName == "kaon+" ||
184  particleName == "kaon-" ||
185  particleName == "proton" ) {
186 
187  G4MuMultipleScattering* msc = new G4MuMultipleScattering();
188  msc->AddEmModel(0, new G4WentzelVIModel());
189  pmanager->AddProcess(msc, -1, 1, 1);
190  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
191  pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
192  pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
193 
194  } else if (particleName == "B+" ||
195  particleName == "B-" ||
196  particleName == "D+" ||
197  particleName == "D-" ||
198  particleName == "Ds+" ||
199  particleName == "Ds-" ||
200  particleName == "anti_He3" ||
201  particleName == "anti_alpha" ||
202  particleName == "anti_deuteron" ||
203  particleName == "anti_lambda_c+" ||
204  particleName == "anti_omega-" ||
205  particleName == "anti_proton" ||
206  particleName == "anti_sigma_c+" ||
207  particleName == "anti_sigma_c++" ||
208  particleName == "anti_sigma+" ||
209  particleName == "anti_sigma-" ||
210  particleName == "anti_triton" ||
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  G4MuMultipleScattering* msc = new G4MuMultipleScattering();
227  msc->AddEmModel(0, new G4WentzelVIModel());
228  pmanager->AddProcess(msc, -1, 1, 1);
229  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
230  }
231  }
232  G4EmProcessOptions opt;
233  opt.SetVerbose(verbose);
234  opt.SetPolarAngleLimit(CLHEP::pi);
235  opt.SetApplyCuts(true);
236 }
237 
238 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
list mod
Load physics model.
dbl * Gamma
Definition: mlp_gen.cc:38
double pi