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

#include <PhysListEmStandard_option0.hh>

Inheritance diagram for PhysListEmStandard_option0:
Collaboration diagram for PhysListEmStandard_option0:

Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 63 of file PhysListEmStandard_option0.cc.

65 : G4VPhysicsConstructor(name), fDetector(det)
66 {
68  param->SetDefaults();
69  param->SetVerbose(1);
70  param->SetMinEnergy(100*eV);
71  param->SetMaxEnergy(10*GeV);
72  param->SetLowestElectronEnergy(10*eV);
73  param->SetBuildCSDARange(true);
74  param->SetMaxEnergyForCSDARange(10*GeV);
76 }
void SetVerbose(G4int val)
void SetLowestElectronEnergy(G4double val)
void SetMaxEnergyForCSDARange(G4double val)
void SetMaxEnergy(G4double 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_option0::~PhysListEmStandard_option0 ( )

Definition at line 80 of file PhysListEmStandard_option0.cc.

81 {}
PhysListEmStandard_option0::PhysListEmStandard_option0 ( const G4String name)

Definition at line 61 of file PhysListEmStandard_option0.cc.

64 {
66  param->SetDefaults();
67  param->SetVerbose(1);
68  param->SetMinEnergy(100*eV);
69  param->SetMaxEnergy(10*GeV);
70  param->SetLowestElectronEnergy(10*eV);
71  param->SetBuildCSDARange(true);
72  param->SetMaxEnergyForCSDARange(10*GeV);
74 }
void SetVerbose(G4int val)
void SetLowestElectronEnergy(G4double val)
void SetMaxEnergyForCSDARange(G4double val)
void SetMaxEnergy(G4double 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_option0::~PhysListEmStandard_option0 ( )

Member Function Documentation

virtual void PhysListEmStandard_option0::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 50 of file PhysListEmStandard_option0.hh.

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

Implements G4VPhysicsConstructor.

Definition at line 53 of file PhysListEmStandard_option0.hh.

53 {};
virtual void PhysListEmStandard_option0::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

void PhysListEmStandard_option0::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 85 of file PhysListEmStandard_option0.cc.

86 {
87  // Add standard EM Processes
88  //
89 
91  particleIterator->reset();
92  while( (*particleIterator)() ){
93  G4ParticleDefinition* particle = particleIterator->value();
94  G4ProcessManager* pmanager = particle->GetProcessManager();
95  G4String particleName = particle->GetParticleName();
96 
97  if (particleName == "gamma") {
98  // gamma
99 
100  G4ComptonScattering* compton = new G4ComptonScattering();
101  MyKleinNishinaCompton* comptonModel =
102  new MyKleinNishinaCompton(fDetector);
103  comptonModel->SetCSFactor(1000.);
104  compton->SetEmModel(comptonModel );
105 
107  pmanager->AddDiscreteProcess(compton);
108  pmanager->AddDiscreteProcess(new G4GammaConversion);
109 
110  } else if (particleName == "e-") {
111  //electron
112 
113  G4eIonisation* eIoni = new G4eIonisation();
114  eIoni->SetEmModel(new MyMollerBhabhaModel);
115 
116  pmanager->AddProcess(new G4eMultipleScattering, -1, 1, 1);
117  pmanager->AddProcess(eIoni, -1, 2, 2);
118 
119  } else if (particleName == "e+") {
120  //positron
121 
122  G4eIonisation* pIoni = new G4eIonisation();
123  pIoni->SetEmModel(new MyMollerBhabhaModel);
124 
125  pmanager->AddProcess(new G4eMultipleScattering, -1, 1, 1);
126  pmanager->AddProcess(pIoni, -1, 2, 2);
127  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 3);
128 
129  } else if( particleName == "proton" ) {
130  //proton
131  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
132  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
133  }
134  }
135 }
void SetCSFactor(G4double factor)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const G4String & GetParticleName() const
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
G4ProcessManager * GetProcessManager() const
void SetEmModel(G4VEmModel *, G4int index=1)
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: