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 74 of file CMSEmStandardPhysics.cc.

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

Definition at line 85 of file CMSEmStandardPhysics.cc.

85 {}

Member Function Documentation

void CMSEmStandardPhysics::ConstructParticle ( )
override

Definition at line 87 of file CMSEmStandardPhysics.cc.

References nanoDQM_cfi::Electron, and Gamma.

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

Definition at line 133 of file CMSEmStandardPhysics.cc.

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

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