CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CMSEmStandardPhysics.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 
8 #include "G4ComptonScattering.hh"
9 #include "G4GammaConversion.hh"
10 #include "G4PhotoElectricEffect.hh"
11 
12 #include "G4hMultipleScattering.hh"
13 #include "G4eMultipleScattering.hh"
14 
15 #include "G4eIonisation.hh"
16 #include "G4eBremsstrahlung.hh"
17 #include "G4eplusAnnihilation.hh"
18 
19 #include "G4MuIonisation.hh"
20 #include "G4MuBremsstrahlung.hh"
21 #include "G4MuPairProduction.hh"
22 
23 #include "G4hIonisation.hh"
24 #include "G4ionIonisation.hh"
25 #include "G4hBremsstrahlung.hh"
26 #include "G4hPairProduction.hh"
27 
28 #include "G4Gamma.hh"
29 #include "G4Electron.hh"
30 #include "G4Positron.hh"
31 #include "G4MuonPlus.hh"
32 #include "G4MuonMinus.hh"
33 #include "G4TauMinus.hh"
34 #include "G4TauPlus.hh"
35 #include "G4PionPlus.hh"
36 #include "G4PionMinus.hh"
37 #include "G4KaonPlus.hh"
38 #include "G4KaonMinus.hh"
39 #include "G4BMesonMinus.hh"
40 #include "G4BMesonPlus.hh"
41 #include "G4DMesonMinus.hh"
42 #include "G4DMesonPlus.hh"
43 #include "G4Proton.hh"
44 #include "G4AntiProton.hh"
45 #include "G4SigmaMinus.hh"
46 #include "G4AntiSigmaMinus.hh"
47 #include "G4SigmaPlus.hh"
48 #include "G4AntiSigmaPlus.hh"
49 #include "G4XiMinus.hh"
50 #include "G4AntiXiMinus.hh"
51 #include "G4OmegaMinus.hh"
52 #include "G4AntiOmegaMinus.hh"
53 #include "G4LambdacPlus.hh"
54 #include "G4AntiLambdacPlus.hh"
55 #include "G4XicPlus.hh"
56 #include "G4AntiXicPlus.hh"
57 #include "G4Deuteron.hh"
58 #include "G4Triton.hh"
59 #include "G4He3.hh"
60 #include "G4Alpha.hh"
61 #include "G4GenericIon.hh"
62 
63 CMSEmStandardPhysics::CMSEmStandardPhysics(const G4String& name, G4int ver) :
64  G4VPhysicsConstructor(name), verbose(ver) {
65  G4LossTableManager::Instance();
66 }
67 
69 
71  // gamma
73 
74  // leptons
75  G4Electron::Electron();
76  G4Positron::Positron();
77  G4MuonPlus::MuonPlus();
78  G4MuonMinus::MuonMinus();
79  G4TauMinus::TauMinusDefinition();
80  G4TauPlus::TauPlusDefinition();
81 
82  // mesons
83  G4PionPlus::PionPlusDefinition();
84  G4PionMinus::PionMinusDefinition();
85  G4KaonPlus::KaonPlusDefinition();
86  G4KaonMinus::KaonMinusDefinition();
87  G4DMesonMinus::DMesonMinusDefinition();
88  G4DMesonPlus::DMesonPlusDefinition();
89  G4BMesonMinus::BMesonMinusDefinition();
90  G4BMesonPlus::BMesonPlusDefinition();
91 
92  // barions
93  G4Proton::Proton();
94  G4AntiProton::AntiProton();
95  G4SigmaMinus::SigmaMinusDefinition();
96  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
97  G4SigmaPlus::SigmaPlusDefinition();
98  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
99  G4XiMinus::XiMinusDefinition();
100  G4AntiXiMinus::AntiXiMinusDefinition();
101  G4OmegaMinus::OmegaMinusDefinition();
102  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
103  G4LambdacPlus::LambdacPlusDefinition();
104  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
105  G4XicPlus::XicPlusDefinition();
106  G4AntiXicPlus::AntiXicPlusDefinition();
107 
108  // ions
109  G4Deuteron::Deuteron();
110  G4Triton::Triton();
111  G4He3::He3();
112  G4Alpha::Alpha();
113  G4GenericIon::GenericIonDefinition();
114 }
115 
117  // Add standard EM Processes
118 
119  theParticleIterator->reset();
120  while( (*theParticleIterator)() ){
121  G4ParticleDefinition* particle = theParticleIterator->value();
122  G4ProcessManager* pmanager = particle->GetProcessManager();
123  G4String particleName = particle->GetParticleName();
124  if(verbose > 1)
125  G4cout << "### " << GetPhysicsName() << " instantiates for "
126  << particleName << G4endl;
127 
128  if (particleName == "gamma") {
129 
130  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
131  pmanager->AddDiscreteProcess(new G4ComptonScattering);
132  pmanager->AddDiscreteProcess(new G4GammaConversion);
133 
134  } else if (particleName == "e-") {
135 
136  pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1);
137  pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
138  pmanager->AddProcess(new G4eBremsstrahlung(), -1,-3, 3);
139 
140  } else if (particleName == "e+") {
141 
142  pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1);
143  pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
144  pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
145  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
146 
147  } else if (particleName == "mu+" ||
148  particleName == "mu-" ) {
149 
150  pmanager->AddProcess(new G4hMultipleScattering,-1, 1, 1);
151  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
152  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
153  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
154 
155  } else if (particleName == "alpha" ||
156  particleName == "He3" ||
157  particleName == "GenericIon") {
158 
159  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
160  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
161 
162 
163  } else if (particleName == "B+" ||
164  particleName == "B-" ||
165  particleName == "D+" ||
166  particleName == "D-" ||
167  particleName == "Ds+" ||
168  particleName == "Ds-" ||
169  particleName == "anti_lambda_c+" ||
170  particleName == "anti_omega-" ||
171  particleName == "anti_proton" ||
172  particleName == "anti_sigma_c+" ||
173  particleName == "anti_sigma_c++" ||
174  particleName == "anti_sigma+" ||
175  particleName == "anti_sigma-" ||
176  particleName == "anti_xi_c+" ||
177  particleName == "anti_xi-" ||
178  particleName == "deuteron" ||
179  particleName == "kaon+" ||
180  particleName == "kaon-" ||
181  particleName == "lambda_c+" ||
182  particleName == "omega-" ||
183  particleName == "pi+" ||
184  particleName == "pi-" ||
185  particleName == "proton" ||
186  particleName == "sigma_c+" ||
187  particleName == "sigma_c++" ||
188  particleName == "sigma+" ||
189  particleName == "sigma-" ||
190  particleName == "tau+" ||
191  particleName == "tau-" ||
192  particleName == "triton" ||
193  particleName == "xi_c+" ||
194  particleName == "xi-" ) {
195 
196  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
197  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
198 
199  if (particleName == "pi+" ||
200  particleName == "kaon+" ||
201  particleName == "kaon-" ||
202  particleName == "proton" ||
203  particleName == "pi-" ) {
204  pmanager->AddProcess(new G4hBremsstrahlung(), -1,-3, 3);
205  pmanager->AddProcess(new G4hPairProduction(), -1,-4, 4);
206  }
207 
208  }
209  }
210 
211  G4EmProcessOptions opt;
212  opt.SetVerbose(verbose);
213 }
virtual void ConstructParticle()
CMSEmStandardPhysics(const G4String &name, G4int ver)
dbl * Gamma
Definition: mlp_gen.cc:38