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 ( const G4String &  name,
G4int  ver,
const std::string &  reg 
)

Definition at line 73 of file CMSEmStandardPhysics95msc93.cc.

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

Definition at line 85 of file CMSEmStandardPhysics95msc93.cc.

85 {}

Member Function Documentation

void CMSEmStandardPhysics95msc93::ConstructParticle ( )
override

Definition at line 87 of file CMSEmStandardPhysics95msc93.cc.

References nanoDQM_cff::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 CMSEmStandardPhysics95msc93::ConstructProcess ( )
override

Definition at line 133 of file CMSEmStandardPhysics95msc93.cc.

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

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

Member Data Documentation

std::string CMSEmStandardPhysics95msc93::region
private

Definition at line 19 of file CMSEmStandardPhysics95msc93.h.

G4int CMSEmStandardPhysics95msc93::verbose
private

Definition at line 18 of file CMSEmStandardPhysics95msc93.h.