CMS 3D CMS Logo

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

#include <CMSEmStandardPhysics95msc93.h>

Inheritance diagram for CMSEmStandardPhysics95msc93:

Public Member Functions

 CMSEmStandardPhysics95msc93 (const G4String &name, G4int ver, const std::string &reg)
 
void ConstructParticle () override
 
void ConstructProcess () override
 
 ~CMSEmStandardPhysics95msc93 () override
 

Private Attributes

std::string region
 
G4int verbose
 

Detailed Description

Definition at line 9 of file CMSEmStandardPhysics95msc93.h.

Constructor & Destructor Documentation

◆ CMSEmStandardPhysics95msc93()

CMSEmStandardPhysics95msc93::CMSEmStandardPhysics95msc93 ( const G4String &  name,
G4int  ver,
const std::string &  reg 
)

Definition at line 76 of file CMSEmStandardPhysics95msc93.cc.

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

References verbose.

◆ ~CMSEmStandardPhysics95msc93()

CMSEmStandardPhysics95msc93::~CMSEmStandardPhysics95msc93 ( )
override

Definition at line 88 of file CMSEmStandardPhysics95msc93.cc.

88 {}

Member Function Documentation

◆ ConstructParticle()

void CMSEmStandardPhysics95msc93::ConstructParticle ( )
override

Definition at line 90 of file CMSEmStandardPhysics95msc93.cc.

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

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

◆ ConstructProcess()

void CMSEmStandardPhysics95msc93::ConstructProcess ( )
override

Definition at line 136 of file CMSEmStandardPhysics95msc93.cc.

136  {
137  // Add standard EM Processes
138  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
139 
140  // muon & hadron bremsstrahlung and pair production
141  G4MuBremsstrahlung* mub = nullptr;
142  G4MuPairProduction* mup = nullptr;
143  G4hBremsstrahlung* pib = nullptr;
144  G4hPairProduction* pip = nullptr;
145  G4hBremsstrahlung* kb = nullptr;
146  G4hPairProduction* kp = nullptr;
147  G4hBremsstrahlung* pb = nullptr;
148  G4hPairProduction* pp = nullptr;
149 
150  // muon & hadron multiple scattering
151  G4MuMultipleScattering* mumsc = nullptr;
152  G4hMultipleScattering* pimsc = nullptr;
153  G4hMultipleScattering* kmsc = nullptr;
154  G4hMultipleScattering* pmsc = nullptr;
155  G4hMultipleScattering* hmsc = nullptr;
156 
157  // This EM builder takes default models of Geant4 10 EMV.
158  // Multiple scattering by Urban for all particles
159  // except e+e- for which the Urban93 model is used
160 
161  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
162  EmParticleList emList;
163  for (const auto& particleName : emList.PartNames()) {
164  G4ParticleDefinition* particle = table->FindParticle(particleName);
165  if (verbose > 1)
166  edm::LogVerbatim("PhysicsList") << "### " << GetPhysicsName() << " instantiates for " << particleName;
167 
168  if (particleName == "gamma") {
169  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
170  ph->RegisterProcess(new G4ComptonScattering(), particle);
171  ph->RegisterProcess(new G4GammaConversion(), particle);
172 
173  } else if (particleName == "e-") {
174  G4eIonisation* eioni = new G4eIonisation();
175  G4eMultipleScattering* msc = new G4eMultipleScattering;
176  msc->SetEmModel(new UrbanMscModel93());
177 
178  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
179 
180  ph->RegisterProcess(msc, particle);
181  ph->RegisterProcess(eioni, particle);
182  ph->RegisterProcess(ebrem, particle);
183 
184  } else if (particleName == "e+") {
185  G4eIonisation* eioni = new G4eIonisation();
186 
187  G4eMultipleScattering* msc = new G4eMultipleScattering;
188  msc->SetEmModel(new UrbanMscModel93());
189 
190  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
191 
192  ph->RegisterProcess(msc, particle);
193  ph->RegisterProcess(eioni, particle);
194  ph->RegisterProcess(ebrem, particle);
195  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
196 
197  } else if (particleName == "mu+" || particleName == "mu-") {
198  if (nullptr == mub) {
199  mub = new G4MuBremsstrahlung();
200  mup = new G4MuPairProduction();
201  mumsc = new G4MuMultipleScattering();
202  }
203  ph->RegisterProcess(mumsc, particle);
204  ph->RegisterProcess(new G4MuIonisation(), particle);
205  ph->RegisterProcess(mub, particle);
206  ph->RegisterProcess(mup, particle);
207 
208  } else if (particleName == "alpha" || particleName == "He3") {
209  ph->RegisterProcess(new G4hMultipleScattering(), particle);
210  ph->RegisterProcess(new G4ionIonisation(), particle);
211 
212  } else if (particleName == "GenericIon") {
213  if (nullptr == hmsc) {
214  hmsc = new G4hMultipleScattering("ionmsc");
215  }
216  ph->RegisterProcess(hmsc, particle);
217  ph->RegisterProcess(new G4ionIonisation(), particle);
218 
219  } else if (particleName == "pi+" || particleName == "pi-") {
220  if (nullptr == pib) {
221  pib = new G4hBremsstrahlung();
222  pip = new G4hPairProduction();
223  pimsc = new G4hMultipleScattering();
224  }
225  ph->RegisterProcess(pimsc, particle);
226  ph->RegisterProcess(new G4hIonisation(), particle);
227  ph->RegisterProcess(pib, particle);
228  ph->RegisterProcess(pip, particle);
229 
230  } else if (particleName == "kaon+" || particleName == "kaon-") {
231  if (nullptr == kb) {
232  kb = new G4hBremsstrahlung();
233  kp = new G4hPairProduction();
234  kmsc = new G4hMultipleScattering();
235  }
236  ph->RegisterProcess(kmsc, particle);
237  ph->RegisterProcess(new G4hIonisation(), particle);
238  ph->RegisterProcess(kb, particle);
239  ph->RegisterProcess(kp, particle);
240 
241  } else if (particleName == "proton" || particleName == "anti_proton") {
242  if (nullptr == pb) {
243  pb = new G4hBremsstrahlung();
244  pp = new G4hPairProduction();
245  }
246  pmsc = new G4hMultipleScattering();
247 
248  ph->RegisterProcess(pmsc, particle);
249  ph->RegisterProcess(new G4hIonisation(), particle);
250  ph->RegisterProcess(pb, particle);
251  ph->RegisterProcess(pp, particle);
252 
253  } else if (particle->GetPDGCharge() != 0.0) {
254  if (nullptr == hmsc) {
255  hmsc = new G4hMultipleScattering("ionmsc");
256  }
257  ph->RegisterProcess(hmsc, particle);
258  ph->RegisterProcess(new G4hIonisation(), particle);
259  }
260  }
261 }

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

Member Data Documentation

◆ region

std::string CMSEmStandardPhysics95msc93::region
private

Definition at line 19 of file CMSEmStandardPhysics95msc93.h.

◆ verbose

G4int CMSEmStandardPhysics95msc93::verbose
private

Definition at line 18 of file CMSEmStandardPhysics95msc93.h.

Referenced by CMSEmStandardPhysics95msc93(), and ConstructProcess().

VtxSmearedParameters_cfi.Alpha
Alpha
Definition: VtxSmearedParameters_cfi.py:115
UrbanMscModel93
Definition: UrbanMscModel93.h:59
CMSEmStandardPhysics95msc93::verbose
G4int verbose
Definition: CMSEmStandardPhysics95msc93.h:18
HiggsValidation_cfi.particleName
particleName
Definition: HiggsValidation_cfi.py:7
CMSEmStandardPhysics95msc93::region
std::string region
Definition: CMSEmStandardPhysics95msc93.h:19
edm::LogVerbatim
Definition: MessageLogger.h:297
nanoDQM_cff.Electron
Electron
Definition: nanoDQM_cff.py:62
EmParticleList
Definition: EmParticleList.h:10
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
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