CMS 3D CMS Logo

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)
 
void ConstructParticle () override
 
void ConstructProcess () override
 
 ~CMSEmStandardPhysics () override
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 7 of file CMSEmStandardPhysics.h.

Constructor & Destructor Documentation

CMSEmStandardPhysics::CMSEmStandardPhysics ( G4int  ver)

Definition at line 75 of file CMSEmStandardPhysics.cc.

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

Definition at line 87 of file CMSEmStandardPhysics.cc.

87 {}

Member Function Documentation

void CMSEmStandardPhysics::ConstructParticle ( )
override

Definition at line 89 of file CMSEmStandardPhysics.cc.

References nanoDQM_cfi::Electron, and Gamma.

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

Definition at line 135 of file CMSEmStandardPhysics.cc.

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

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

Member Data Documentation

G4int CMSEmStandardPhysics::verbose
private

Definition at line 17 of file CMSEmStandardPhysics.h.