test
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
CMSEmStandardPhysicsXS Class Reference

#include <CMSEmStandardPhysicsXS.h>

Inheritance diagram for CMSEmStandardPhysicsXS:

Public Member Functions

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

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 7 of file CMSEmStandardPhysicsXS.h.

Constructor & Destructor Documentation

CMSEmStandardPhysicsXS::CMSEmStandardPhysicsXS ( G4int  ver)

Definition at line 74 of file CMSEmStandardPhysicsXS.cc.

74  :
75  G4VPhysicsConstructor("CMSEmStandardXS_opt1"), verbose(ver) {
76  G4LossTableManager::Instance();
77  SetPhysicsType(bElectromagnetic);
78 }
CMSEmStandardPhysicsXS::~CMSEmStandardPhysicsXS ( )
virtual

Definition at line 80 of file CMSEmStandardPhysicsXS.cc.

80 {}

Member Function Documentation

void CMSEmStandardPhysicsXS::ConstructParticle ( )
virtual

Definition at line 82 of file CMSEmStandardPhysicsXS.cc.

References configurableAnalysis::Electron, and Gamma.

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

Definition at line 128 of file CMSEmStandardPhysicsXS.cc.

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

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

Definition at line 17 of file CMSEmStandardPhysicsXS.h.