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

#include <PhysListEmPenelope.hh>

Inheritance diagram for PhysListEmPenelope:
Collaboration diagram for PhysListEmPenelope:

Public Member Functions

 PhysListEmPenelope (const G4String &name="penelope")
 
 ~PhysListEmPenelope ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
 PhysListEmPenelope (const G4String &name="penelope")
 
 ~PhysListEmPenelope ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
 PhysListEmPenelope (const G4String &name="Penelope")
 
 ~PhysListEmPenelope ()
 
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 42 of file PhysListEmPenelope.hh.

Constructor & Destructor Documentation

PhysListEmPenelope::PhysListEmPenelope ( const G4String name = "penelope")

Definition at line 82 of file PhysListEmPenelope.cc.

83  : G4VPhysicsConstructor(name)
84 { }
G4VPhysicsConstructor(const G4String &="")
PhysListEmPenelope::~PhysListEmPenelope ( )

Definition at line 88 of file PhysListEmPenelope.cc.

89 { }
PhysListEmPenelope::PhysListEmPenelope ( const G4String name = "penelope")
PhysListEmPenelope::~PhysListEmPenelope ( )
PhysListEmPenelope::PhysListEmPenelope ( const G4String name = "Penelope")
PhysListEmPenelope::~PhysListEmPenelope ( )

Member Function Documentation

virtual void PhysListEmPenelope::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 46 of file PhysListEmPenelope.hh.

46 { };
virtual void PhysListEmPenelope::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 50 of file PhysListEmPenelope.hh.

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

Implements G4VPhysicsConstructor.

Definition at line 50 of file PhysListEmPenelope.hh.

50 {};
virtual void PhysListEmPenelope::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

void PhysListEmPenelope::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 93 of file PhysListEmPenelope.cc.

94 {
95  // Add standard EM Processes
96 
98  particleIterator->reset();
99  while( (*particleIterator)() ){
100  G4ParticleDefinition* particle = particleIterator->value();
101  G4ProcessManager* pmanager = particle->GetProcessManager();
102  G4String particleName = particle->GetParticleName();
103 
104  //Applicability range for Penelope models
105  //for higher energies, the Standard models are used
106  G4double highEnergyLimit = 1*GeV;
107 
108  if (particleName == "gamma") {
109  // gamma
110 
113  photModel = new G4PenelopePhotoElectricModel();
114  photModel->SetHighEnergyLimit(highEnergyLimit);
115  phot->AddEmModel(0, photModel);
116  pmanager->AddDiscreteProcess(phot);
117 
120  comptModel = new G4PenelopeComptonModel();
121  comptModel->SetHighEnergyLimit(highEnergyLimit);
122  compt->AddEmModel(0, comptModel);
123  pmanager->AddDiscreteProcess(compt);
124 
125  G4GammaConversion* conv = new G4GammaConversion();
127  convModel = new G4PenelopeGammaConversionModel();
128  convModel->SetHighEnergyLimit(highEnergyLimit);
129  conv->AddEmModel(0, convModel);
130  pmanager->AddDiscreteProcess(conv);
131 
134  raylModel = new G4PenelopeRayleighModel();
135  raylModel->SetHighEnergyLimit(highEnergyLimit);
136  rayl->AddEmModel(0, raylModel);
137  pmanager->AddDiscreteProcess(rayl);
138 
139  } else if (particleName == "e-") {
140  //electron
141 
142  G4eIonisation* eIoni = new G4eIonisation();
144  eIoniModel = new G4PenelopeIonisationModel();
145  eIoniModel->SetHighEnergyLimit(highEnergyLimit);
146  eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() );
147  pmanager->AddProcess(eIoni, -1,-1, 1);
148 
149  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
151  eBremModel = new G4PenelopeBremsstrahlungModel();
152  eBremModel->SetHighEnergyLimit(highEnergyLimit);
153  eBrem->AddEmModel(0, eBremModel);
154  pmanager->AddProcess(eBrem, -1,-1, 2);
155 
156  } else if (particleName == "e+") {
157  //positron
158  G4eIonisation* eIoni = new G4eIonisation();
160  eIoniModel = new G4PenelopeIonisationModel();
161  eIoniModel->SetHighEnergyLimit(highEnergyLimit);
162  eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() );
163  pmanager->AddProcess(eIoni, -1,-1, 1);
164 
165  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
167  eBremModel = new G4PenelopeBremsstrahlungModel();
168  eBremModel->SetHighEnergyLimit(highEnergyLimit);
169  eBrem->AddEmModel(0, eBremModel);
170  pmanager->AddProcess(eBrem, -1,-1, 2);
171 
174  eAnniModel = new G4PenelopeAnnihilationModel();
175  eAnniModel->SetHighEnergyLimit(highEnergyLimit);
176  eAnni->AddEmModel(0, eAnniModel);
177  pmanager->AddProcess(eAnni, 0,-1, 3);
178 
179  } else if( particleName == "mu+" ||
180  particleName == "mu-" ) {
181  //muon
182  pmanager->AddProcess(new G4MuIonisation, -1,-1, 1);
183  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1, 2);
184  pmanager->AddProcess(new G4MuPairProduction, -1,-1, 3);
185 
186  } else if( particleName == "alpha" || particleName == "GenericIon" ) {
187  pmanager->AddProcess(new G4ionIonisation, -1,-1, 1);
188 
189  } else if ((!particle->IsShortLived()) &&
190  (particle->GetPDGCharge() != 0.0) &&
191  (particle->GetParticleName() != "chargedgeantino")) {
192  //all others charged particles except geantino
193  pmanager->AddProcess(new G4hIonisation, -1,-1, 1);
194  }
195  }
196 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:732
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=nullptr)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
G4ProcessManager * GetProcessManager() const
static constexpr double GeV
Definition: G4SIunits.hh:217
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
double G4double
Definition: G4Types.hh:76
G4double GetPDGCharge() const

Here is the call graph for this function:

virtual void PhysListEmPenelope::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.


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