CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CMSEmStandardPhysicsLPM Class Reference

#include <CMSEmStandardPhysicsLPM.h>

Inheritance diagram for CMSEmStandardPhysicsLPM:

Public Member Functions

 CMSEmStandardPhysicsLPM (G4int ver)
 
void ConstructParticle () override
 
void ConstructProcess () override
 
 ~CMSEmStandardPhysicsLPM () override
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 8 of file CMSEmStandardPhysicsLPM.h.

Constructor & Destructor Documentation

CMSEmStandardPhysicsLPM::CMSEmStandardPhysicsLPM ( G4int  ver)

Definition at line 77 of file CMSEmStandardPhysicsLPM.cc.

77  :
78  G4VPhysicsConstructor("CMSEmStandard_emm"), verbose(ver) {
79  G4EmParameters* param = G4EmParameters::Instance();
80  param->SetDefaults();
81  param->SetVerbose(verbose);
82  param->SetApplyCuts(true);
83  param->SetStepFunction(0.8, 1*CLHEP::mm);
84  param->SetMscRangeFactor(0.2);
85  param->SetMscStepLimitType(fMinimal);
86  SetPhysicsType(bElectromagnetic);
87 }
CMSEmStandardPhysicsLPM::~CMSEmStandardPhysicsLPM ( )
override

Definition at line 89 of file CMSEmStandardPhysicsLPM.cc.

89 {}

Member Function Documentation

void CMSEmStandardPhysicsLPM::ConstructParticle ( )
override

Definition at line 91 of file CMSEmStandardPhysicsLPM.cc.

References nanoDQM_cfi::Electron, and Gamma.

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

Definition at line 137 of file CMSEmStandardPhysicsLPM.cc.

References ecalTB2006H4_GenSimDigiReco_cfg::G4cout, MeV, AnalysisDataFormats_SUSYBSMObjects::msc, HiggsValidation_cfi::particleName, EmParticleList::PartNames(), and createTree::pp.

137  {
138 
139  if(verbose > 0) {
140  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
141  }
142 
143  // This EM builder takes default models of Geant4 10 EMV.
144  // Multiple scattering by Urban for all particles
145  // except e+e- below 100 MeV for which the Urban model is used
146 
147  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
148 
149  // muon & hadron bremsstrahlung and pair production
150  G4MuBremsstrahlung* mub = nullptr;
151  G4MuPairProduction* mup = nullptr;
152  G4hBremsstrahlung* pib = nullptr;
153  G4hPairProduction* pip = nullptr;
154  G4hBremsstrahlung* kb = nullptr;
155  G4hPairProduction* kp = nullptr;
156  G4hBremsstrahlung* pb = nullptr;
157  G4hPairProduction* pp = nullptr;
158 
159  // muon & hadron multiple scattering
160  G4MuMultipleScattering* mumsc = nullptr;
161  G4hMultipleScattering* pimsc = nullptr;
162  G4hMultipleScattering* kmsc = nullptr;
163  G4hMultipleScattering* pmsc = nullptr;
164  G4hMultipleScattering* hmsc = nullptr;
165 
166  // muon and hadron single scattering
167  G4CoulombScattering* muss = nullptr;
168  G4CoulombScattering* piss = nullptr;
169  G4CoulombScattering* kss = nullptr;
170 
171  // high energy limit for e+- scattering models and bremsstrahlung
172  G4double highEnergyLimit = 100*MeV;
173 
174  G4Region* aRegion =
175  G4RegionStore::GetInstance()->GetRegion("HcalRegion",false);
176  G4Region* bRegion =
177  G4RegionStore::GetInstance()->GetRegion("HGCalRegion",false);
178 
179  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
180  EmParticleList emList;
181  for(const auto& particleName : emList.PartNames()) {
182  G4ParticleDefinition* particle = table->FindParticle(particleName);
183 
184  if (particleName == "gamma") {
185 
186  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
187  ph->RegisterProcess(new G4ComptonScattering(), particle);
188  ph->RegisterProcess(new G4GammaConversion(), particle);
189 
190  } else if (particleName == "e-") {
191 
192  G4eIonisation* eioni = new G4eIonisation();
193 
194  G4eMultipleScattering* msc = new G4eMultipleScattering;
195  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
196  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
197  G4UrbanMscModel* msc3 = new G4UrbanMscModel();
198  msc3->SetLocked(true);
199  msc1->SetHighEnergyLimit(highEnergyLimit);
200  msc2->SetLowEnergyLimit(highEnergyLimit);
201  msc3->SetHighEnergyLimit(highEnergyLimit);
202  msc->SetEmModel(msc1);
203  msc->SetEmModel(msc2);
204  msc->AddEmModel(-1, msc3, aRegion);
205  if (bRegion) msc->AddEmModel(-1, msc3, bRegion);
206 
207  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
208  G4CoulombScattering* ss = new G4CoulombScattering();
209  ss->SetEmModel(ssm);
210  ss->SetMinKinEnergy(highEnergyLimit);
211  ssm->SetLowEnergyLimit(highEnergyLimit);
212  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
213 
214  ph->RegisterProcess(msc, particle);
215  ph->RegisterProcess(eioni, particle);
216  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
217  ph->RegisterProcess(ss, particle);
218 
219  } else if (particleName == "e+") {
220 
221  G4eIonisation* eioni = new G4eIonisation();
222 
223  G4eMultipleScattering* msc = new G4eMultipleScattering;
224  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
225  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
226  G4UrbanMscModel* msc3 = new G4UrbanMscModel();
227  msc1->SetHighEnergyLimit(highEnergyLimit);
228  msc2->SetLowEnergyLimit(highEnergyLimit);
229  msc3->SetHighEnergyLimit(highEnergyLimit);
230  msc3->SetLocked(true);
231  msc->SetEmModel(msc1);
232  msc->SetEmModel(msc2);
233  msc->AddEmModel(-1, msc3, aRegion);
234  if (bRegion) msc->AddEmModel(-1, msc3, bRegion);
235 
236  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
237  G4CoulombScattering* ss = new G4CoulombScattering();
238  ss->SetEmModel(ssm);
239  ss->SetMinKinEnergy(highEnergyLimit);
240  ssm->SetLowEnergyLimit(highEnergyLimit);
241  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
242 
243  ph->RegisterProcess(msc, particle);
244  ph->RegisterProcess(eioni, particle);
245  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
246  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
247  ph->RegisterProcess(ss, particle);
248 
249  } else if (particleName == "mu+" ||
250  particleName == "mu-" ) {
251 
252  if(nullptr == mub) {
253  mub = new G4MuBremsstrahlung();
254  mup = new G4MuPairProduction();
255  mumsc = new G4MuMultipleScattering();
256  mumsc->SetEmModel(new G4WentzelVIModel());
257  muss = new G4CoulombScattering();
258  }
259  ph->RegisterProcess(mumsc, particle);
260  ph->RegisterProcess(new G4MuIonisation(), particle);
261  ph->RegisterProcess(mub, particle);
262  ph->RegisterProcess(mup, particle);
263  ph->RegisterProcess(muss, particle);
264 
265  } else if (particleName == "alpha" ||
266  particleName == "He3" ) {
267 
268  ph->RegisterProcess(new G4hMultipleScattering(), particle);
269  ph->RegisterProcess(new G4ionIonisation(), particle);
270 
271  } else if (particleName == "GenericIon") {
272 
273  if(nullptr == hmsc) {
274  hmsc = new G4hMultipleScattering("ionmsc");
275  }
276  ph->RegisterProcess(hmsc, particle);
277  ph->RegisterProcess(new G4ionIonisation(), particle);
278 
279  } else if (particleName == "pi+" ||
280  particleName == "pi-" ) {
281 
282  if(nullptr == pib) {
283  pib = new G4hBremsstrahlung();
284  pip = new G4hPairProduction();
285  pimsc = new G4hMultipleScattering();
286  pimsc->SetEmModel(new G4WentzelVIModel());
287  piss = new G4CoulombScattering();
288  }
289  ph->RegisterProcess(pimsc, particle);
290  ph->RegisterProcess(new G4hIonisation(), particle);
291  ph->RegisterProcess(pib, particle);
292  ph->RegisterProcess(pip, particle);
293  ph->RegisterProcess(piss, particle);
294 
295  } else if (particleName == "kaon+" ||
296  particleName == "kaon-" ) {
297 
298  if(nullptr == kb) {
299  kb = new G4hBremsstrahlung();
300  kp = new G4hPairProduction();
301  kmsc = new G4hMultipleScattering();
302  kmsc->SetEmModel(new G4WentzelVIModel());
303  kss = new G4CoulombScattering();
304  }
305  ph->RegisterProcess(kmsc, particle);
306  ph->RegisterProcess(new G4hIonisation(), particle);
307  ph->RegisterProcess(kb, particle);
308  ph->RegisterProcess(kp, particle);
309  ph->RegisterProcess(kss, particle);
310 
311  } else if (particleName == "proton" ||
312  particleName == "anti_proton") {
313 
314  if(nullptr == pb) {
315  pb = new G4hBremsstrahlung();
316  pp = new G4hPairProduction();
317  //--- VI: these lines should be moved out of the brackets
318  pmsc = new G4hMultipleScattering();
319  pmsc->SetEmModel(new G4WentzelVIModel());
320  //---
321  }
322 
323  ph->RegisterProcess(pmsc, particle);
324  ph->RegisterProcess(new G4hIonisation(), particle);
325  ph->RegisterProcess(pb, particle);
326  ph->RegisterProcess(pp, particle);
327  ph->RegisterProcess(new G4CoulombScattering(), particle);
328 
329  } else if (particleName == "B+" ||
330  particleName == "B-" ||
331  particleName == "D+" ||
332  particleName == "D-" ||
333  particleName == "Ds+" ||
334  particleName == "Ds-" ||
335  particleName == "anti_He3" ||
336  particleName == "anti_alpha" ||
337  particleName == "anti_deuteron" ||
338  particleName == "anti_lambda_c+" ||
339  particleName == "anti_omega-" ||
340  particleName == "anti_sigma_c+" ||
341  particleName == "anti_sigma_c++" ||
342  particleName == "anti_sigma+" ||
343  particleName == "anti_sigma-" ||
344  particleName == "anti_triton" ||
345  particleName == "anti_xi_c+" ||
346  particleName == "anti_xi-" ||
347  particleName == "deuteron" ||
348  particleName == "lambda_c+" ||
349  particleName == "omega-" ||
350  particleName == "sigma_c+" ||
351  particleName == "sigma_c++" ||
352  particleName == "sigma+" ||
353  particleName == "sigma-" ||
354  particleName == "tau+" ||
355  particleName == "tau-" ||
356  particleName == "triton" ||
357  particleName == "xi_c+" ||
358  particleName == "xi-" ) {
359 
360  if(nullptr == hmsc) {
361  hmsc = new G4hMultipleScattering("ionmsc");
362  }
363  ph->RegisterProcess(hmsc, particle);
364  ph->RegisterProcess(new G4hIonisation(), particle);
365  }
366  }
367 }
const std::vector< G4String > & PartNames() const
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
const double MeV

Member Data Documentation

G4int CMSEmStandardPhysicsLPM::verbose
private

Definition at line 18 of file CMSEmStandardPhysicsLPM.h.