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::CMSEmStandardPhysics ( G4int  ver)

Definition at line 78 of file CMSEmStandardPhysics.cc.

78  : G4VPhysicsConstructor("CMSEmStandard_eml"), 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 }

References verbose.

◆ ~CMSEmStandardPhysics()

CMSEmStandardPhysics::~CMSEmStandardPhysics ( )
override

Definition at line 89 of file CMSEmStandardPhysics.cc.

89 {}

Member Function Documentation

◆ ConstructParticle()

void CMSEmStandardPhysics::ConstructParticle ( )
override

Definition at line 91 of file CMSEmStandardPhysics.cc.

91  {
92  // gamma
93  G4Gamma::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 }

References VtxSmearedParameters_cfi::Alpha, and nanoDQM_cff::Electron.

◆ ConstructProcess()

void CMSEmStandardPhysics::ConstructProcess ( )
override

Definition at line 137 of file CMSEmStandardPhysics.cc.

137  {
138  if (verbose > 0) {
139  edm::LogVerbatim("PhysicsList") << "### " << GetPhysicsName() << " Construct Processes ";
140  }
141 
142  // This EM builder takes default models of Geant4 10 EMV.
143  // Multiple scattering by Urban for all particles
144  // except e+e- below 100 MeV for which the Urban93 model is used
145 
146  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
147 
148  // muon & hadron bremsstrahlung and pair production
149  G4MuBremsstrahlung* mub = nullptr;
150  G4MuPairProduction* mup = nullptr;
151  G4hBremsstrahlung* pib = nullptr;
152  G4hPairProduction* pip = nullptr;
153  G4hBremsstrahlung* kb = nullptr;
154  G4hPairProduction* kp = nullptr;
155  G4hBremsstrahlung* pb = nullptr;
156  G4hPairProduction* pp = nullptr;
157 
158  // muon & hadron multiple scattering
159  G4MuMultipleScattering* mumsc = nullptr;
160  G4hMultipleScattering* pimsc = nullptr;
161  G4hMultipleScattering* kmsc = 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 
169  // high energy limit for e+- scattering models and bremsstrahlung
170  G4double highEnergyLimit = 100 * MeV;
171 
172  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
173  EmParticleList emList;
174  for (const auto& particleName : emList.PartNames()) {
175  G4ParticleDefinition* particle = table->FindParticle(particleName);
176 
177  if (particleName == "gamma") {
178  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
179  ph->RegisterProcess(new G4ComptonScattering(), particle);
180  ph->RegisterProcess(new G4GammaConversion(), particle);
181 
182  } else if (particleName == "e-") {
183  G4eIonisation* eioni = new G4eIonisation();
184 
185  G4eMultipleScattering* msc = new G4eMultipleScattering;
186  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
187  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
188  msc1->SetHighEnergyLimit(highEnergyLimit);
189  msc2->SetLowEnergyLimit(highEnergyLimit);
190  msc->SetEmModel(msc1);
191  msc->SetEmModel(msc2);
192 
193  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
194  G4CoulombScattering* ss = new G4CoulombScattering();
195  ss->SetEmModel(ssm);
196  ss->SetMinKinEnergy(highEnergyLimit);
197  ssm->SetLowEnergyLimit(highEnergyLimit);
198  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
199 
200  ph->RegisterProcess(msc, particle);
201  ph->RegisterProcess(eioni, particle);
202  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
203  ph->RegisterProcess(ss, particle);
204 
205  } else if (particleName == "e+") {
206  G4eIonisation* eioni = new G4eIonisation();
207 
208  G4eMultipleScattering* msc = new G4eMultipleScattering;
209  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
210  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
211  msc1->SetHighEnergyLimit(highEnergyLimit);
212  msc2->SetLowEnergyLimit(highEnergyLimit);
213  msc->SetEmModel(msc1);
214  msc->SetEmModel(msc2);
215 
216  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
217  G4CoulombScattering* ss = new G4CoulombScattering();
218  ss->SetEmModel(ssm);
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+" || particleName == "mu-") {
230  if (nullptr == mub) {
231  mub = new G4MuBremsstrahlung();
232  mup = new G4MuPairProduction();
233  mumsc = new G4MuMultipleScattering();
234  mumsc->SetEmModel(new G4WentzelVIModel());
235  muss = new G4CoulombScattering();
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(muss, particle);
242 
243  } else if (particleName == "alpha" || particleName == "He3") {
244  ph->RegisterProcess(new G4hMultipleScattering(), particle);
245  ph->RegisterProcess(new G4ionIonisation(), particle);
246 
247  } else if (particleName == "GenericIon") {
248  if (nullptr == hmsc) {
249  hmsc = new G4hMultipleScattering("ionmsc");
250  }
251  ph->RegisterProcess(hmsc, particle);
252  ph->RegisterProcess(new G4ionIonisation(), particle);
253 
254  } else if (particleName == "pi+" || particleName == "pi-") {
255  if (nullptr == pib) {
256  pib = new G4hBremsstrahlung();
257  pip = new G4hPairProduction();
258  pimsc = new G4hMultipleScattering();
259  pimsc->SetEmModel(new G4WentzelVIModel());
260  piss = new G4CoulombScattering();
261  }
262  ph->RegisterProcess(pimsc, particle);
263  ph->RegisterProcess(new G4hIonisation(), particle);
264  ph->RegisterProcess(pib, particle);
265  ph->RegisterProcess(pip, particle);
266  ph->RegisterProcess(piss, particle);
267 
268  } else if (particleName == "kaon+" || particleName == "kaon-") {
269  if (nullptr == kb) {
270  kb = new G4hBremsstrahlung();
271  kp = new G4hPairProduction();
272  kmsc = new G4hMultipleScattering();
273  kmsc->SetEmModel(new G4WentzelVIModel());
274  kss = new G4CoulombScattering();
275  }
276  ph->RegisterProcess(kmsc, particle);
277  ph->RegisterProcess(new G4hIonisation(), particle);
278  ph->RegisterProcess(kb, particle);
279  ph->RegisterProcess(kp, particle);
280  ph->RegisterProcess(kss, particle);
281 
282  } else if (particleName == "proton" || particleName == "anti_proton") {
283  if (nullptr == pb) {
284  pb = new G4hBremsstrahlung();
285  pp = new G4hPairProduction();
286  }
287  G4hMultipleScattering* pmsc = new G4hMultipleScattering();
288  pmsc->SetEmModel(new G4WentzelVIModel());
289  G4CoulombScattering* pss = new G4CoulombScattering();
290 
291  ph->RegisterProcess(pmsc, particle);
292  ph->RegisterProcess(new G4hIonisation(), particle);
293  ph->RegisterProcess(pb, particle);
294  ph->RegisterProcess(pp, particle);
295  ph->RegisterProcess(pss, particle);
296 
297  } else if (particle->GetPDGCharge() != 0.0) {
298  if (nullptr == hmsc) {
299  hmsc = new G4hMultipleScattering("ionmsc");
300  }
301  ph->RegisterProcess(hmsc, particle);
302  ph->RegisterProcess(new G4hIonisation(), particle);
303  }
304  }
305 }

References kp, MeV, HiggsValidation_cfi::particleName, EmParticleList::PartNames(), createTree::pp, contentValuesCheck::ss, TableParser::table, and verbose.

Member Data Documentation

◆ verbose

G4int CMSEmStandardPhysics::verbose
private

Definition at line 16 of file CMSEmStandardPhysics.h.

Referenced by CMSEmStandardPhysics(), and ConstructProcess().

VtxSmearedParameters_cfi.Alpha
Alpha
Definition: VtxSmearedParameters_cfi.py:115
pss
std::pair< ALIstring, ALIstring > pss
Definition: Fit.h:25
MeV
const double MeV
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
HiggsValidation_cfi.particleName
particleName
Definition: HiggsValidation_cfi.py:7
edm::LogVerbatim
Definition: MessageLogger.h:297
nanoDQM_cff.Electron
Electron
Definition: nanoDQM_cff.py:62
EmParticleList
Definition: EmParticleList.h:10
CMSEmStandardPhysics::verbose
G4int verbose
Definition: CMSEmStandardPhysics.h:16
EmParticleList::PartNames
const std::vector< G4String > & PartNames() const
Definition: EmParticleList.cc:52
createTree.pp
pp
Definition: createTree.py:17
TableParser.table
table
Definition: TableParser.py:111
kp
int kp
Definition: CascadeWrapper.h:13