CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CMSEmStandardPhysics Class Reference

#include <CMSEmStandardPhysics.h>

Inheritance diagram for CMSEmStandardPhysics:

Public Member Functions

 CMSEmStandardPhysics (G4int ver)
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
virtual ~CMSEmStandardPhysics ()
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 7 of file CMSEmStandardPhysics.h.

Constructor & Destructor Documentation

CMSEmStandardPhysics::CMSEmStandardPhysics ( G4int  ver)

Definition at line 72 of file CMSEmStandardPhysics.cc.

72  :
73  G4VPhysicsConstructor("CMSEmStandard_opt1"), verbose(ver) {
74  G4LossTableManager::Instance();
75  SetPhysicsType(bElectromagnetic);
76 }
CMSEmStandardPhysics::~CMSEmStandardPhysics ( )
virtual

Definition at line 78 of file CMSEmStandardPhysics.cc.

78 {}

Member Function Documentation

void CMSEmStandardPhysics::ConstructParticle ( )
virtual

Definition at line 80 of file CMSEmStandardPhysics.cc.

References configurableAnalysis::Electron, and Gamma.

80  {
81  // gamma
83 
84  // leptons
86  G4Positron::Positron();
87  G4MuonPlus::MuonPlus();
88  G4MuonMinus::MuonMinus();
89  G4TauMinus::TauMinusDefinition();
90  G4TauPlus::TauPlusDefinition();
91 
92  // mesons
93  G4PionPlus::PionPlusDefinition();
94  G4PionMinus::PionMinusDefinition();
95  G4KaonPlus::KaonPlusDefinition();
96  G4KaonMinus::KaonMinusDefinition();
97  G4DMesonMinus::DMesonMinusDefinition();
98  G4DMesonPlus::DMesonPlusDefinition();
99  G4BMesonMinus::BMesonMinusDefinition();
100  G4BMesonPlus::BMesonPlusDefinition();
101 
102  // barions
103  G4Proton::Proton();
104  G4AntiProton::AntiProton();
105  G4SigmaMinus::SigmaMinusDefinition();
106  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
107  G4SigmaPlus::SigmaPlusDefinition();
108  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
109  G4XiMinus::XiMinusDefinition();
110  G4AntiXiMinus::AntiXiMinusDefinition();
111  G4OmegaMinus::OmegaMinusDefinition();
112  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
113  G4LambdacPlus::LambdacPlusDefinition();
114  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
115  G4XicPlus::XicPlusDefinition();
116  G4AntiXicPlus::AntiXicPlusDefinition();
117 
118  // ions
119  G4Deuteron::Deuteron();
120  G4Triton::Triton();
121  G4He3::He3();
122  G4Alpha::Alpha();
123  G4GenericIon::GenericIonDefinition();
124 }
dbl * Gamma
Definition: mlp_gen.cc:38
void CMSEmStandardPhysics::ConstructProcess ( )
virtual

Definition at line 126 of file CMSEmStandardPhysics.cc.

References kp, MeV, AnalysisDataFormats_SUSYBSMObjects::msc, pi, createTree::pp, and contentValuesCheck::ss.

126  {
127 
128  if(verbose > 0) {
129  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
130  }
131 
132  // This EM builder takes default models of Geant4 10 EMV.
133  // Multiple scattering by Urban for all particles
134  // except e+e- below 100 MeV for which the Urban93 model is used
135 
136  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
137 
138  // muon & hadron bremsstrahlung and pair production
139  G4MuBremsstrahlung* mub = nullptr;
140  G4MuPairProduction* mup = nullptr;
141  G4hBremsstrahlung* pib = nullptr;
142  G4hPairProduction* pip = nullptr;
143  G4hBremsstrahlung* kb = nullptr;
144  G4hPairProduction* kp = nullptr;
145  G4hBremsstrahlung* pb = nullptr;
146  G4hPairProduction* pp = nullptr;
147 
148  // muon & hadron multiple scattering
149  G4MuMultipleScattering* mumsc = nullptr;
150  G4MuMultipleScattering* pimsc = nullptr;
151  G4MuMultipleScattering* kmsc = nullptr;
152  G4MuMultipleScattering* pmsc = nullptr;
153  G4hMultipleScattering* hmsc = nullptr;
154 
155  // high energy limit for e+- scattering models and bremsstrahlung
156  G4double highEnergyLimit = 100*MeV;
157 
158  aParticleIterator->reset();
159  while( (*aParticleIterator)() ){
160  G4ParticleDefinition* particle = aParticleIterator->value();
161  G4String particleName = particle->GetParticleName();
162 
163  if (particleName == "gamma") {
164 
165  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
166  ph->RegisterProcess(new G4ComptonScattering(), particle);
167  ph->RegisterProcess(new G4GammaConversion(), particle);
168 
169  } else if (particleName == "e-") {
170 
171  G4eIonisation* eioni = new G4eIonisation();
172  eioni->SetStepFunction(0.8, 1.0*mm);
173 
174  G4eMultipleScattering* msc = new G4eMultipleScattering;
175  msc->SetStepLimitType(fMinimal);
176  UrbanMscModel93* msc1 = new UrbanMscModel93();
177  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
178  msc1->SetHighEnergyLimit(highEnergyLimit);
179  msc2->SetLowEnergyLimit(highEnergyLimit);
180  msc->AddEmModel(0, msc1);
181  msc->AddEmModel(0, msc2);
182 
183  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
184  G4CoulombScattering* ss = new G4CoulombScattering();
185  ss->SetEmModel(ssm, 1);
186  ss->SetMinKinEnergy(highEnergyLimit);
187  ssm->SetLowEnergyLimit(highEnergyLimit);
188  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
189 
190  ph->RegisterProcess(msc, particle);
191  ph->RegisterProcess(eioni, particle);
192  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
193  ph->RegisterProcess(ss, particle);
194 
195  } else if (particleName == "e+") {
196 
197  G4eIonisation* eioni = new G4eIonisation();
198  eioni->SetStepFunction(0.8, 1.0*mm);
199 
200  G4eMultipleScattering* msc = new G4eMultipleScattering;
201  msc->SetStepLimitType(fMinimal);
202  UrbanMscModel93* msc1 = new UrbanMscModel93();
203  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
204  msc1->SetHighEnergyLimit(highEnergyLimit);
205  msc2->SetLowEnergyLimit(highEnergyLimit);
206  msc->AddEmModel(0, msc1);
207  msc->AddEmModel(0, msc2);
208 
209  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
210  G4CoulombScattering* ss = new G4CoulombScattering();
211  ss->SetEmModel(ssm, 1);
212  ss->SetMinKinEnergy(highEnergyLimit);
213  ssm->SetLowEnergyLimit(highEnergyLimit);
214  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
215 
216  ph->RegisterProcess(msc, particle);
217  ph->RegisterProcess(eioni, particle);
218  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
219  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
220  ph->RegisterProcess(ss, particle);
221 
222  } else if (particleName == "mu+" ||
223  particleName == "mu-" ) {
224 
225  if(nullptr == mub) {
226  mub = new G4MuBremsstrahlung();
227  mup = new G4MuPairProduction();
228  mumsc = new G4MuMultipleScattering();
229  mumsc->AddEmModel(0, new G4WentzelVIModel());
230  }
231  ph->RegisterProcess(mumsc, particle);
232  ph->RegisterProcess(new G4MuIonisation(), particle);
233  ph->RegisterProcess(mub, particle);
234  ph->RegisterProcess(mup, particle);
235  ph->RegisterProcess(new G4CoulombScattering(), particle);
236 
237  } else if (particleName == "alpha" ||
238  particleName == "He3" ) {
239 
240  ph->RegisterProcess(new G4hMultipleScattering(), particle);
241  ph->RegisterProcess(new G4ionIonisation(), particle);
242 
243  } else if (particleName == "GenericIon") {
244 
245  if(nullptr == hmsc) {
246  hmsc = new G4hMultipleScattering("ionmsc");
247  }
248  ph->RegisterProcess(hmsc, particle);
249  ph->RegisterProcess(new G4ionIonisation(), particle);
250 
251  } else if (particleName == "pi+" ||
252  particleName == "pi-" ) {
253 
254  if(nullptr == pib) {
255  pib = new G4hBremsstrahlung();
256  pip = new G4hPairProduction();
257  pimsc = new G4MuMultipleScattering();
258  pimsc->AddEmModel(0, new G4WentzelVIModel());
259  }
260  ph->RegisterProcess(pimsc, particle);
261  ph->RegisterProcess(new G4hIonisation(), particle);
262  ph->RegisterProcess(pib, particle);
263  ph->RegisterProcess(pip, particle);
264  ph->RegisterProcess(new G4CoulombScattering(), particle);
265 
266  } else if (particleName == "kaon+" ||
267  particleName == "kaon-" ) {
268 
269  if(nullptr == kb) {
270  kb = new G4hBremsstrahlung();
271  kp = new G4hPairProduction();
272  kmsc = new G4MuMultipleScattering();
273  kmsc->AddEmModel(0, new G4WentzelVIModel());
274  }
275  ph->RegisterProcess(kmsc, particle);
276  ph->RegisterProcess(new G4hIonisation(), particle);
277  ph->RegisterProcess(kb, particle);
278  ph->RegisterProcess(kp, particle);
279  ph->RegisterProcess(new G4CoulombScattering(), particle);
280 
281  } else if (particleName == "proton" ||
282  particleName == "anti_proton") {
283 
284  if(nullptr == pb) {
285  pb = new G4hBremsstrahlung();
286  pp = new G4hPairProduction();
287  pmsc = new G4MuMultipleScattering();
288  pmsc->AddEmModel(0, new G4WentzelVIModel());
289  }
290  ph->RegisterProcess(pmsc, particle);
291  ph->RegisterProcess(new G4hIonisation(), particle);
292  ph->RegisterProcess(pb, particle);
293  ph->RegisterProcess(pp, particle);
294  ph->RegisterProcess(new G4CoulombScattering(), particle);
295 
296  } else if (particleName == "B+" ||
297  particleName == "B-" ||
298  particleName == "D+" ||
299  particleName == "D-" ||
300  particleName == "Ds+" ||
301  particleName == "Ds-" ||
302  particleName == "anti_He3" ||
303  particleName == "anti_alpha" ||
304  particleName == "anti_deuteron" ||
305  particleName == "anti_lambda_c+" ||
306  particleName == "anti_omega-" ||
307  particleName == "anti_sigma_c+" ||
308  particleName == "anti_sigma_c++" ||
309  particleName == "anti_sigma+" ||
310  particleName == "anti_sigma-" ||
311  particleName == "anti_triton" ||
312  particleName == "anti_xi_c+" ||
313  particleName == "anti_xi-" ||
314  particleName == "deuteron" ||
315  particleName == "lambda_c+" ||
316  particleName == "omega-" ||
317  particleName == "sigma_c+" ||
318  particleName == "sigma_c++" ||
319  particleName == "sigma+" ||
320  particleName == "sigma-" ||
321  particleName == "tau+" ||
322  particleName == "tau-" ||
323  particleName == "triton" ||
324  particleName == "xi_c+" ||
325  particleName == "xi-" ) {
326 
327  if(nullptr == hmsc) {
328  hmsc = new G4hMultipleScattering("ionmsc");
329  }
330  ph->RegisterProcess(hmsc, particle);
331  ph->RegisterProcess(new G4hIonisation(), particle);
332  }
333  }
334  G4EmProcessOptions opt;
335  opt.SetVerbose(verbose);
336  opt.SetPolarAngleLimit(CLHEP::pi);
337  opt.SetApplyCuts(true);
338 }
tuple pp
Definition: createTree.py:15
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
const Double_t pi
const double MeV

Member Data Documentation

G4int CMSEmStandardPhysics::verbose
private

Definition at line 17 of file CMSEmStandardPhysics.h.