Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4EmStandardPhysics_option2 Class Reference

#include <G4EmStandardPhysics_option2.hh>

Inheritance diagram for G4EmStandardPhysics_option2:
Collaboration diagram for G4EmStandardPhysics_option2:

Public Member Functions

 G4EmStandardPhysics_option2 (G4int ver=1, const G4String &name="")
 
virtual ~G4EmStandardPhysics_option2 ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 55 of file G4EmStandardPhysics_option2.hh.

Constructor & Destructor Documentation

G4EmStandardPhysics_option2::G4EmStandardPhysics_option2 ( G4int  ver = 1,
const G4String name = "" 
)
explicit

Definition at line 121 of file G4EmStandardPhysics_option2.cc.

123  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
124 {
126  param->SetDefaults();
127  param->SetVerbose(verbose);
128  param->SetApplyCuts(false);
129  param->SetMscRangeFactor(0.2);
132 }
void SetApplyCuts(G4bool val)
void SetVerbose(G4int val)
void SetMscStepLimitType(G4MscStepLimitType val)
void SetMscRangeFactor(G4double val)
static G4EmParameters * Instance()
G4VPhysicsConstructor(const G4String &="")

Here is the call graph for this function:

G4EmStandardPhysics_option2::~G4EmStandardPhysics_option2 ( )
virtual

Definition at line 136 of file G4EmStandardPhysics_option2.cc.

137 {}

Member Function Documentation

void G4EmStandardPhysics_option2::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 141 of file G4EmStandardPhysics_option2.cc.

142 {
143  // gamma
144  G4Gamma::Gamma();
145 
146  // leptons
151 
152  // mesons
157 
158  // barions
161 
162  // ions
165  G4He3::He3();
166  G4Alpha::Alpha();
168 }
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4He3 * He3()
Definition: G4He3.cc:94

Here is the call graph for this function:

void G4EmStandardPhysics_option2::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 172 of file G4EmStandardPhysics_option2.cc.

173 {
174  if(verbose > 1) {
175  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
176  }
178 
179  // muon & hadron bremsstrahlung and pair production
188 
189  // muon & hadron multiple scattering
191  mumsc->AddEmModel(0, new G4WentzelVIModel());
193 
195  pimsc->AddEmModel(0, new G4WentzelVIModel());
197 
199  kmsc->AddEmModel(0, new G4WentzelVIModel());
201 
203  pmsc->AddEmModel(0, new G4WentzelVIModel());
205 
206  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
207 
208  // high energy limit for e+- scattering models and bremsstrahlung
209  G4double highEnergyLimit = 100*MeV;
210 
211  // Add standard EM Processes
212  auto myParticleIterator=GetParticleIterator();
213  myParticleIterator->reset();
214  while( (*myParticleIterator)() ){
215  G4ParticleDefinition* particle = myParticleIterator->value();
216  G4String particleName = particle->GetParticleName();
217 
218  if (particleName == "gamma") {
219 
220  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
221  ph->RegisterProcess(new G4ComptonScattering(), particle);
222  ph->RegisterProcess(new G4GammaConversion(), particle);
223  ph->RegisterProcess(new G4RayleighScattering(), particle);
224 
225  } else if (particleName == "e-") {
226 
227  G4eIonisation* eioni = new G4eIonisation();
228  eioni->SetStepFunction(0.8, 1.0*mm);
229 
231  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
232  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
233  msc1->SetNewDisplacementFlag(false);
234  msc1->SetHighEnergyLimit(highEnergyLimit);
235  msc2->SetLowEnergyLimit(highEnergyLimit);
236  msc->AddEmModel(0, msc1);
237  msc->AddEmModel(0, msc2);
238 
241  ss->SetEmModel(ssm, 1);
242  ss->SetMinKinEnergy(highEnergyLimit);
243  ssm->SetLowEnergyLimit(highEnergyLimit);
244  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
245 
246  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
251  brem->SetEmModel(br1,1);
252  brem->SetEmModel(br2,2);
253  br2->SetLowEnergyLimit(GeV);
254 
255  ph->RegisterProcess(msc, particle);
256  ph->RegisterProcess(eioni, particle);
257  ph->RegisterProcess(brem, particle);
258  ph->RegisterProcess(ss, particle);
259 
260  } else if (particleName == "e+") {
261 
262  G4eIonisation* eioni = new G4eIonisation();
263  eioni->SetStepFunction(0.8, 1.0*mm);
264 
266  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
267  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
268  msc1->SetNewDisplacementFlag(false);
269  msc1->SetHighEnergyLimit(highEnergyLimit);
270  msc2->SetLowEnergyLimit(highEnergyLimit);
271  msc->AddEmModel(0, msc1);
272  msc->AddEmModel(0, msc2);
273 
276  ss->SetEmModel(ssm, 1);
277  ss->SetMinKinEnergy(highEnergyLimit);
278  ssm->SetLowEnergyLimit(highEnergyLimit);
279  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
280 
281  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
286  brem->SetEmModel(br1,1);
287  brem->SetEmModel(br2,2);
288  br2->SetLowEnergyLimit(GeV);
289 
290  ph->RegisterProcess(msc, particle);
291  ph->RegisterProcess(eioni, particle);
292  ph->RegisterProcess(brem, particle);
293  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
294  ph->RegisterProcess(ss, particle);
295 
296  } else if (particleName == "mu+" ||
297  particleName == "mu-" ) {
298 
299  ph->RegisterProcess(mumsc, particle);
300  ph->RegisterProcess(new G4MuIonisation(), particle);
301  ph->RegisterProcess(mub, particle);
302  ph->RegisterProcess(mup, particle);
303  ph->RegisterProcess(muss, particle);
304 
305  } else if (particleName == "alpha" ||
306  particleName == "He3") {
307 
308  //ph->RegisterProcess(hmsc, particle);
309  ph->RegisterProcess(new G4hMultipleScattering(), particle);
310  ph->RegisterProcess(new G4ionIonisation(), particle);
311 
312  } else if (particleName == "GenericIon") {
313 
314  G4ionIonisation* ionIoni = new G4ionIonisation();
315  //ionIoni->SetEmModel(new G4IonParametrisedLossModel());
316  //ionIoni->SetStepFunction(0.1, 20*um);
317 
318  ph->RegisterProcess(hmsc, particle);
319  ph->RegisterProcess(ionIoni, particle);
320 
321  } else if (particleName == "pi+" ||
322  particleName == "pi-" ) {
323 
324  ph->RegisterProcess(pimsc, particle);
325  ph->RegisterProcess(new G4hIonisation(), particle);
326  ph->RegisterProcess(pib, particle);
327  ph->RegisterProcess(pip, particle);
328  ph->RegisterProcess(piss, particle);
329 
330  } else if (particleName == "kaon+" ||
331  particleName == "kaon-" ) {
332 
333  ph->RegisterProcess(kmsc, particle);
334  ph->RegisterProcess(new G4hIonisation(), particle);
335  ph->RegisterProcess(kb, particle);
336  ph->RegisterProcess(kp, particle);
337  ph->RegisterProcess(kss, particle);
338 
339  } else if (particleName == "proton" ||
340  particleName == "anti_proton") {
341 
342  ph->RegisterProcess(pmsc, particle);
343  ph->RegisterProcess(new G4hIonisation(), particle);
344  ph->RegisterProcess(pb, particle);
345  ph->RegisterProcess(pp, particle);
346  ph->RegisterProcess(pss, particle);
347 
348  } else if (particleName == "B+" ||
349  particleName == "B-" ||
350  particleName == "D+" ||
351  particleName == "D-" ||
352  particleName == "Ds+" ||
353  particleName == "Ds-" ||
354  particleName == "anti_He3" ||
355  particleName == "anti_alpha" ||
356  particleName == "anti_deuteron" ||
357  particleName == "anti_lambda_c+" ||
358  particleName == "anti_omega-" ||
359  particleName == "anti_sigma_c+" ||
360  particleName == "anti_sigma_c++" ||
361  particleName == "anti_sigma+" ||
362  particleName == "anti_sigma-" ||
363  particleName == "anti_triton" ||
364  particleName == "anti_xi_c+" ||
365  particleName == "anti_xi-" ||
366  particleName == "deuteron" ||
367  particleName == "lambda_c+" ||
368  particleName == "omega-" ||
369  particleName == "sigma_c+" ||
370  particleName == "sigma_c++" ||
371  particleName == "sigma+" ||
372  particleName == "sigma-" ||
373  particleName == "tau+" ||
374  particleName == "tau-" ||
375  particleName == "triton" ||
376  particleName == "xi_c+" ||
377  particleName == "xi-" ) {
378 
379  ph->RegisterProcess(hmsc, particle);
380  ph->RegisterProcess(new G4hIonisation(), particle);
381  }
382  }
383 
384  // Deexcitation
385  //
388 
390 }
static G4LossTableManager * Instance()
static constexpr double mm
Definition: G4SIunits.hh:115
void SetNewDisplacementFlag(G4bool)
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:724
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
const G4String & GetPhysicsName() const
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:745
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:623
static G4PhysicsListHelper * GetPhysicsListHelper()
void SetEmModel(G4VEmModel *, G4int index=1)
static constexpr double GeV
Definition: G4SIunits.hh:217
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:731
void SetAtomDeexcitation(G4VAtomDeexcitation *)

Here is the call graph for this function:


The documentation for this class was generated from the following files: