Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PhysListEmStandard_GS Class Reference

#include <PhysListEmStandard_GS.hh>

Inheritance diagram for PhysListEmStandard_GS:
Collaboration diagram for PhysListEmStandard_GS:

Public Member Functions

 PhysListEmStandard_GS (const G4String &name, DetectorConstruction *det)
 
 ~PhysListEmStandard_GS ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
 PhysListEmStandard_GS (const G4String &name)
 
 ~PhysListEmStandard_GS ()
 
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 44 of file PhysListEmStandard_GS.hh.

Constructor & Destructor Documentation

PhysListEmStandard_GS::PhysListEmStandard_GS ( const G4String name,
DetectorConstruction det 
)

Definition at line 64 of file PhysListEmStandard_GS.cc.

66 : G4VPhysicsConstructor(name), fDetector(det)
67 {
69  param->SetDefaults();
70  param->SetVerbose(1);
71  param->SetMinEnergy(100*eV);
72  param->SetMaxEnergy(10*GeV);
73  param->SetNumberOfBinsPerDecade(20);
74  param->SetLowestElectronEnergy(1*eV);
75  param->SetBuildCSDARange(true);
76  param->SetMaxEnergyForCSDARange(10*GeV);
79 }
void SetVerbose(G4int val)
void SetLowestElectronEnergy(G4double val)
void SetMscStepLimitType(G4MscStepLimitType val)
void SetMaxEnergyForCSDARange(G4double val)
void SetMaxEnergy(G4double val)
void SetNumberOfBinsPerDecade(G4int val)
static constexpr double eV
Definition: G4SIunits.hh:215
void SetBuildCSDARange(G4bool val)
void SetMinEnergy(G4double val)
static G4EmParameters * Instance()
G4VPhysicsConstructor(const G4String &="")
static constexpr double GeV
Definition: G4SIunits.hh:217

Here is the call graph for this function:

PhysListEmStandard_GS::~PhysListEmStandard_GS ( )

Definition at line 83 of file PhysListEmStandard_GS.cc.

84 {}
PhysListEmStandard_GS::PhysListEmStandard_GS ( const G4String name)

Definition at line 62 of file PhysListEmStandard_GS.cc.

64 {
66  param->SetDefaults();
67  param->SetVerbose(1);
68  param->SetMinEnergy(100*eV);
69  param->SetMaxEnergy(10*GeV);
70  param->SetNumberOfBinsPerDecade(20);
71  param->SetLowestElectronEnergy(1*eV);
72  param->SetBuildCSDARange(true);
73  param->SetMaxEnergyForCSDARange(10*GeV);
76 }
void SetVerbose(G4int val)
void SetLowestElectronEnergy(G4double val)
void SetMscStepLimitType(G4MscStepLimitType val)
void SetMaxEnergyForCSDARange(G4double val)
void SetMaxEnergy(G4double val)
void SetNumberOfBinsPerDecade(G4int val)
static constexpr double eV
Definition: G4SIunits.hh:215
void SetBuildCSDARange(G4bool val)
void SetMinEnergy(G4double val)
static G4EmParameters * Instance()
G4VPhysicsConstructor(const G4String &="")
static constexpr double GeV
Definition: G4SIunits.hh:217

Here is the call graph for this function:

PhysListEmStandard_GS::~PhysListEmStandard_GS ( )

Member Function Documentation

virtual void PhysListEmStandard_GS::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 50 of file PhysListEmStandard_GS.hh.

50 {};
virtual void PhysListEmStandard_GS::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 52 of file PhysListEmStandard_GS.hh.

52 {};
virtual void PhysListEmStandard_GS::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

void PhysListEmStandard_GS::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 88 of file PhysListEmStandard_GS.cc.

89 {
90  // Add standard EM Processes
91  //
92 
94  particleIterator->reset();
95  while( (*particleIterator)() ){
96  G4ParticleDefinition* particle = particleIterator->value();
97  G4ProcessManager* pmanager = particle->GetProcessManager();
98  G4String particleName = particle->GetParticleName();
99 
100  if (particleName == "gamma") {
101  // gamma
102 
103  G4ComptonScattering* compton = new G4ComptonScattering();
104  MyKleinNishinaCompton* comptonModel =
105  new MyKleinNishinaCompton(fDetector);
106  comptonModel->SetCSFactor(1000.);
107  compton->SetEmModel(comptonModel );
108 
110  pmanager->AddDiscreteProcess(compton);
111  pmanager->AddDiscreteProcess(new G4GammaConversion);
112 
113  } else if (particleName == "e-") {
114  //electron
115 
118 
119  G4eIonisation* eIoni = new G4eIonisation();
120  eIoni->SetEmModel(new MyMollerBhabhaModel);
121  eIoni->SetStepFunction(0.2, 10*um);
122 
123  pmanager->AddProcess(eMsc, -1, 1, 1);
124  pmanager->AddProcess(eIoni, -1, 2, 2);
125 
126  } else if (particleName == "e+") {
127  //positron
128 
131 
132  G4eIonisation* pIoni = new G4eIonisation();
133  pIoni->SetEmModel(new MyMollerBhabhaModel);
134 
135  pmanager->AddProcess(pMsc, -1, 1, 1);
136  pmanager->AddProcess(pIoni, -1, 2, 2);
137  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 3);
138 
139  } else if( particleName == "proton" ) {
140  //proton
141  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
142  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
143  }
144  }
145 }
void SetCSFactor(G4double factor)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
const G4String & GetParticleName() const
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
static constexpr double um
Definition: G4SIunits.hh:113
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
G4ProcessManager * GetProcessManager() const
void SetEmModel(G4VEmModel *, G4int index=1)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65

Here is the call graph for this function:


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