test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CMSEmStandardPhysics95 Class Reference

#include <CMSEmStandardPhysics95.h>

Inheritance diagram for CMSEmStandardPhysics95:

Public Member Functions

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

Private Attributes

std::string region
 
G4int verbose
 

Detailed Description

Definition at line 9 of file CMSEmStandardPhysics95.h.

Constructor & Destructor Documentation

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

Definition at line 71 of file CMSEmStandardPhysics95.cc.

71  :
72  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
73  G4LossTableManager::Instance();
74  SetPhysicsType(bElectromagnetic);
75 }
CMSEmStandardPhysics95::~CMSEmStandardPhysics95 ( )
virtual

Definition at line 77 of file CMSEmStandardPhysics95.cc.

77 {}

Member Function Documentation

void CMSEmStandardPhysics95::ConstructParticle ( )
virtual

Definition at line 79 of file CMSEmStandardPhysics95.cc.

References configurableAnalysis::Electron, and Gamma.

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

Definition at line 125 of file CMSEmStandardPhysics95.cc.

References kp, AnalysisDataFormats_SUSYBSMObjects::msc, and createTree::pp.

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

Member Data Documentation

std::string CMSEmStandardPhysics95::region
private

Definition at line 20 of file CMSEmStandardPhysics95.h.

G4int CMSEmStandardPhysics95::verbose
private

Definition at line 19 of file CMSEmStandardPhysics95.h.