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, std::string reg)
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
virtual ~CMSEmStandardPhysics95msc93 ()
 

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,
std::string  reg 
)

Definition at line 72 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->SetMscRangeFactor(0.2);
80  param->SetMscStepLimitType(fMinimal);
81  SetPhysicsType(bElectromagnetic);
82  G4LossTableManager::Instance();
83 }
CMSEmStandardPhysics95msc93::~CMSEmStandardPhysics95msc93 ( )
virtual

Definition at line 85 of file CMSEmStandardPhysics95msc93.cc.

85 {}

Member Function Documentation

void CMSEmStandardPhysics95msc93::ConstructParticle ( )
virtual

Definition at line 87 of file CMSEmStandardPhysics95msc93.cc.

References configurableAnalysis::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 ( )
virtual

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.

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