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

Definition at line 86 of file CMSEmStandardPhysics.cc.

86 {}

Member Function Documentation

void CMSEmStandardPhysics::ConstructParticle ( )
override

Definition at line 88 of file CMSEmStandardPhysics.cc.

References nanoDQM_cff::Electron, and Gamma.

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

Definition at line 134 of file CMSEmStandardPhysics.cc.

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

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  G4hMultipleScattering* pimsc = nullptr;
158  G4hMultipleScattering* kmsc = nullptr;
159  G4hMultipleScattering* hmsc = nullptr;
160 
161  // muon and hadron single scattering
162  G4CoulombScattering* muss = nullptr;
163  G4CoulombScattering* piss = nullptr;
164  G4CoulombScattering* kss = nullptr;
165 
166  // high energy limit for e+- scattering models and bremsstrahlung
167  G4double highEnergyLimit = 100 * MeV;
168 
169  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
170  EmParticleList emList;
171  for (const auto& particleName : emList.PartNames()) {
172  G4ParticleDefinition* particle = table->FindParticle(particleName);
173 
174  if (particleName == "gamma") {
175  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
176  ph->RegisterProcess(new G4ComptonScattering(), particle);
177  ph->RegisterProcess(new G4GammaConversion(), particle);
178 
179  } else if (particleName == "e-") {
180  G4eIonisation* eioni = new G4eIonisation();
181 
182  G4eMultipleScattering* msc = new G4eMultipleScattering;
183  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
184  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
185  msc1->SetHighEnergyLimit(highEnergyLimit);
186  msc2->SetLowEnergyLimit(highEnergyLimit);
187  msc->SetEmModel(msc1);
188  msc->SetEmModel(msc2);
189 
190  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
191  G4CoulombScattering* ss = new G4CoulombScattering();
192  ss->SetEmModel(ssm);
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  G4eIonisation* eioni = new G4eIonisation();
204 
205  G4eMultipleScattering* msc = new G4eMultipleScattering;
206  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
207  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
208  msc1->SetHighEnergyLimit(highEnergyLimit);
209  msc2->SetLowEnergyLimit(highEnergyLimit);
210  msc->SetEmModel(msc1);
211  msc->SetEmModel(msc2);
212 
213  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
214  G4CoulombScattering* ss = new G4CoulombScattering();
215  ss->SetEmModel(ssm);
216  ss->SetMinKinEnergy(highEnergyLimit);
217  ssm->SetLowEnergyLimit(highEnergyLimit);
218  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
219 
220  ph->RegisterProcess(msc, particle);
221  ph->RegisterProcess(eioni, particle);
222  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
223  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
224  ph->RegisterProcess(ss, particle);
225 
226  } else if (particleName == "mu+" || particleName == "mu-") {
227  if (nullptr == mub) {
228  mub = new G4MuBremsstrahlung();
229  mup = new G4MuPairProduction();
230  mumsc = new G4MuMultipleScattering();
231  mumsc->SetEmModel(new G4WentzelVIModel());
232  muss = new G4CoulombScattering();
233  }
234  ph->RegisterProcess(mumsc, particle);
235  ph->RegisterProcess(new G4MuIonisation(), particle);
236  ph->RegisterProcess(mub, particle);
237  ph->RegisterProcess(mup, particle);
238  ph->RegisterProcess(muss, particle);
239 
240  } else if (particleName == "alpha" || particleName == "He3") {
241  ph->RegisterProcess(new G4hMultipleScattering(), particle);
242  ph->RegisterProcess(new G4ionIonisation(), particle);
243 
244  } else if (particleName == "GenericIon") {
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+" || particleName == "pi-") {
252  if (nullptr == pib) {
253  pib = new G4hBremsstrahlung();
254  pip = new G4hPairProduction();
255  pimsc = new G4hMultipleScattering();
256  pimsc->SetEmModel(new G4WentzelVIModel());
257  piss = new G4CoulombScattering();
258  }
259  ph->RegisterProcess(pimsc, particle);
260  ph->RegisterProcess(new G4hIonisation(), particle);
261  ph->RegisterProcess(pib, particle);
262  ph->RegisterProcess(pip, particle);
263  ph->RegisterProcess(piss, particle);
264 
265  } else if (particleName == "kaon+" || particleName == "kaon-") {
266  if (nullptr == kb) {
267  kb = new G4hBremsstrahlung();
268  kp = new G4hPairProduction();
269  kmsc = new G4hMultipleScattering();
270  kmsc->SetEmModel(new G4WentzelVIModel());
271  kss = new G4CoulombScattering();
272  }
273  ph->RegisterProcess(kmsc, particle);
274  ph->RegisterProcess(new G4hIonisation(), particle);
275  ph->RegisterProcess(kb, particle);
276  ph->RegisterProcess(kp, particle);
277  ph->RegisterProcess(kss, particle);
278 
279  } else if (particleName == "proton" || particleName == "anti_proton") {
280  if (nullptr == pb) {
281  pb = new G4hBremsstrahlung();
282  pp = new G4hPairProduction();
283  }
284  G4hMultipleScattering* pmsc = new G4hMultipleScattering();
285  pmsc->SetEmModel(new G4WentzelVIModel());
286  G4CoulombScattering* pss = new G4CoulombScattering();
287 
288  ph->RegisterProcess(pmsc, particle);
289  ph->RegisterProcess(new G4hIonisation(), particle);
290  ph->RegisterProcess(pb, particle);
291  ph->RegisterProcess(pp, particle);
292  ph->RegisterProcess(pss, particle);
293 
294  } else if (particleName == "B+" || particleName == "B-" || particleName == "D+" || particleName == "D-" ||
295  particleName == "Ds+" || particleName == "Ds-" || particleName == "anti_He3" ||
296  particleName == "anti_alpha" || particleName == "anti_deuteron" || particleName == "anti_lambda_c+" ||
297  particleName == "anti_omega-" || particleName == "anti_sigma_c+" || particleName == "anti_sigma_c++" ||
298  particleName == "anti_sigma+" || particleName == "anti_sigma-" || particleName == "anti_triton" ||
299  particleName == "anti_xi_c+" || particleName == "anti_xi-" || particleName == "deuteron" ||
300  particleName == "lambda_c+" || particleName == "omega-" || particleName == "sigma_c+" ||
301  particleName == "sigma_c++" || particleName == "sigma+" || particleName == "sigma-" ||
302  particleName == "tau+" || particleName == "tau-" || particleName == "triton" ||
303  particleName == "xi_c+" || particleName == "xi-") {
304  if (nullptr == hmsc) {
305  hmsc = new G4hMultipleScattering("ionmsc");
306  }
307  ph->RegisterProcess(hmsc, particle);
308  ph->RegisterProcess(new G4hIonisation(), particle);
309  }
310  }
311 }
const std::vector< G4String > & PartNames() const
std::pair< ALIstring, ALIstring > pss
Definition: Fit.h:27
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
const double MeV

Member Data Documentation

G4int CMSEmStandardPhysics::verbose
private

Definition at line 16 of file CMSEmStandardPhysics.h.