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 72 of file CMSEmStandardPhysics95msc93.cc.

75 : G4VPhysicsConstructor(name), verbose(ver), region(reg) {
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  G4LossTableManager::Instance();
84 }
CMSEmStandardPhysics95msc93::~CMSEmStandardPhysics95msc93 ( )
override

Definition at line 86 of file CMSEmStandardPhysics95msc93.cc.

86 {}

Member Function Documentation

void CMSEmStandardPhysics95msc93::ConstructParticle ( )
override

Definition at line 88 of file CMSEmStandardPhysics95msc93.cc.

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

Definition at line 134 of file CMSEmStandardPhysics95msc93.cc.

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

135 {
136  // Add standard EM Processes
137 
138  // muon & hadron bremsstrahlung and pair production
139  G4MuBremsstrahlung* mub = nullptr;
140  G4MuPairProduction* mup = nullptr;
141  G4hBremsstrahlung* pib = nullptr;
142  G4hPairProduction* pip = nullptr;
143  G4hBremsstrahlung* kb = nullptr;
144  G4hPairProduction* kp = nullptr;
145  G4hBremsstrahlung* pb = nullptr;
146  G4hPairProduction* pp = nullptr;
147 
148  G4hMultipleScattering* hmsc = nullptr;
149 
150  // This EM builder takes default models of Geant4 10 EMV.
151  // Multiple scattering by Urban for all particles
152  // except e+e- for which the Urban93 model is used
153 
154  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
155  EmParticleList emList;
156  for(const auto& particleName : emList.PartNames()) {
157  G4ParticleDefinition* particle = table->FindParticle(particleName);
158  G4ProcessManager* pmanager = particle->GetProcessManager();
159  if(verbose > 1)
160  G4cout << "### " << GetPhysicsName() << " instantiates for "
161  << particleName << " at " << particle << G4endl;
162 
163  if (particleName == "gamma") {
164 
165  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
166  pmanager->AddDiscreteProcess(new G4ComptonScattering);
167  pmanager->AddDiscreteProcess(new G4GammaConversion());
168 
169  } else if (particleName == "e-") {
170 
171  G4eIonisation* eioni = new G4eIonisation();
172  eioni->SetStepFunction(0.8, 1.0*mm);
173  G4eMultipleScattering* msc = new G4eMultipleScattering;
174  msc->SetStepLimitType(fMinimal);
175  msc->AddEmModel(0,new UrbanMscModel93());
176 
177  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
178 
179  pmanager->AddProcess(msc, -1, 1, 1);
180  pmanager->AddProcess(eioni, -1, 2, 2);
181  pmanager->AddProcess(ebrem, -1,-3, 3);
182 
183  } else if (particleName == "e+") {
184 
185  G4eIonisation* eioni = new G4eIonisation();
186  eioni->SetStepFunction(0.8, 1.0*mm);
187 
188  G4eMultipleScattering* msc = new G4eMultipleScattering;
189  msc->SetStepLimitType(fMinimal);
190  msc->AddEmModel(0,new UrbanMscModel93());
191 
192  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
193 
194  pmanager->AddProcess(msc, -1, 1, 1);
195  pmanager->AddProcess(eioni, -1, 2, 2);
196  pmanager->AddProcess(ebrem, -1,-3, 3);
197  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
198 
199  } else if (particleName == "mu+" ||
200  particleName == "mu-" ) {
201 
202  if(nullptr == mub) {
203  mub = new G4MuBremsstrahlung();
204  mup = new G4MuPairProduction();
205  }
206  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
207  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
208  pmanager->AddProcess(mub, -1,-3, 3);
209  pmanager->AddProcess(mup, -1,-4, 4);
210 
211  } else if (particleName == "alpha" ||
212  particleName == "He3" ||
213  particleName == "GenericIon") {
214 
215  if(nullptr == hmsc) {
216  hmsc = new G4hMultipleScattering("ionmsc");
217  }
218  pmanager->AddProcess(hmsc, -1, 1, 1);
219  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
220 
221  } else if (particleName == "pi+" ||
222  particleName == "pi-" ) {
223 
224  if(nullptr == pib) {
225  pib = new G4hBremsstrahlung();
226  pip = new G4hPairProduction();
227  }
228  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
229  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
230  pmanager->AddProcess(pib, -1,-3, 3);
231  pmanager->AddProcess(pip, -1,-4, 4);
232 
233  } else if (particleName == "kaon+" ||
234  particleName == "kaon-" ) {
235 
236  if(nullptr == kb) {
237  kb = new G4hBremsstrahlung();
238  kp = new G4hPairProduction();
239  }
240  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
241  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
242  pmanager->AddProcess(kb, -1,-3, 3);
243  pmanager->AddProcess(kp, -1,-4, 4);
244 
245  } else if (particleName == "proton" ||
246  particleName == "anti_proton" ) {
247  if(nullptr == pb) {
248  pb = new G4hBremsstrahlung();
249  pp = new G4hPairProduction();
250  }
251  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
252  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
253  pmanager->AddProcess(pb, -1,-3, 3);
254  pmanager->AddProcess(pp, -1,-4, 4);
255 
256  } else if (particleName == "B+" ||
257  particleName == "B-" ||
258  particleName == "D+" ||
259  particleName == "D-" ||
260  particleName == "Ds+" ||
261  particleName == "Ds-" ||
262  particleName == "anti_lambda_c+" ||
263  particleName == "anti_omega-" ||
264  particleName == "anti_proton" ||
265  particleName == "anti_sigma_c+" ||
266  particleName == "anti_sigma_c++" ||
267  particleName == "anti_sigma+" ||
268  particleName == "anti_sigma-" ||
269  particleName == "anti_xi_c+" ||
270  particleName == "anti_xi-" ||
271  particleName == "deuteron" ||
272  particleName == "lambda_c+" ||
273  particleName == "omega-" ||
274  particleName == "sigma_c+" ||
275  particleName == "sigma_c++" ||
276  particleName == "sigma+" ||
277  particleName == "sigma-" ||
278  particleName == "tau+" ||
279  particleName == "tau-" ||
280  particleName == "triton" ||
281  particleName == "xi_c+" ||
282  particleName == "xi-" ) {
283 
284  if(nullptr == hmsc) {
285  hmsc = new G4hMultipleScattering("ionmsc");
286  }
287  pmanager->AddProcess(hmsc, -1, 1, 1);
288  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
289  }
290  }
291 }
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 20 of file CMSEmStandardPhysics95msc93.h.

G4int CMSEmStandardPhysics95msc93::verbose
private

Definition at line 19 of file CMSEmStandardPhysics95msc93.h.