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

71 : G4VPhysicsConstructor(name), verbose(ver), region(reg) {
72  G4LossTableManager::Instance();
73 }
CMSEmStandardPhysics95msc93::~CMSEmStandardPhysics95msc93 ( )
virtual

Definition at line 75 of file CMSEmStandardPhysics95msc93.cc.

75 {}

Member Function Documentation

void CMSEmStandardPhysics95msc93::ConstructParticle ( )
virtual

Definition at line 77 of file CMSEmStandardPhysics95msc93.cc.

References configurableAnalysis::Electron, and Gamma.

77  {
78  // gamma
80 
81  // leptons
83  G4Positron::Positron();
84  G4MuonPlus::MuonPlus();
85  G4MuonMinus::MuonMinus();
86  G4TauMinus::TauMinusDefinition();
87  G4TauPlus::TauPlusDefinition();
88 
89  // mesons
90  G4PionPlus::PionPlusDefinition();
91  G4PionMinus::PionMinusDefinition();
92  G4KaonPlus::KaonPlusDefinition();
93  G4KaonMinus::KaonMinusDefinition();
94  G4DMesonMinus::DMesonMinusDefinition();
95  G4DMesonPlus::DMesonPlusDefinition();
96  G4BMesonMinus::BMesonMinusDefinition();
97  G4BMesonPlus::BMesonPlusDefinition();
98 
99  // barions
100  G4Proton::Proton();
101  G4AntiProton::AntiProton();
102  G4SigmaMinus::SigmaMinusDefinition();
103  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
104  G4SigmaPlus::SigmaPlusDefinition();
105  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
106  G4XiMinus::XiMinusDefinition();
107  G4AntiXiMinus::AntiXiMinusDefinition();
108  G4OmegaMinus::OmegaMinusDefinition();
109  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
110  G4LambdacPlus::LambdacPlusDefinition();
111  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
112  G4XicPlus::XicPlusDefinition();
113  G4AntiXicPlus::AntiXicPlusDefinition();
114 
115  // ions
116  G4Deuteron::Deuteron();
117  G4Triton::Triton();
118  G4He3::He3();
119  G4Alpha::Alpha();
120  G4GenericIon::GenericIonDefinition();
121 }
dbl * Gamma
Definition: mlp_gen.cc:38
void CMSEmStandardPhysics95msc93::ConstructProcess ( )
virtual

Definition at line 123 of file CMSEmStandardPhysics95msc93.cc.

References ecalTB2006H4_GenSimDigiReco_cfg::G4cout, kp, AnalysisDataFormats_SUSYBSMObjects::msc, HiggsValidation_cfi::particleName, and createTree::pp.

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