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

#include <PhysListEmStandard_SS.hh>

Inheritance diagram for PhysListEmStandard_SS:
Collaboration diagram for PhysListEmStandard_SS:

Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 63 of file PhysListEmStandard_SS.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->SetNumberOfBinsPerDecade(20);
73  param->SetLowestElectronEnergy(1*eV);
74  param->SetBuildCSDARange(true);
75  param->SetMaxEnergyForCSDARange(10*GeV);
76  param->SetMscThetaLimit(0.0);
78 }
void SetVerbose(G4int val)
void SetLowestElectronEnergy(G4double 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
void SetMscThetaLimit(G4double val)

Here is the call graph for this function:

PhysListEmStandard_SS::~PhysListEmStandard_SS ( )

Definition at line 82 of file PhysListEmStandard_SS.cc.

83 {}
PhysListEmStandard_SS::PhysListEmStandard_SS ( const G4String name)

Definition at line 61 of file PhysListEmStandard_SS.cc.

63 {
65  param->SetDefaults();
66  param->SetVerbose(1);
67  param->SetMinEnergy(100*eV);
68  param->SetMaxEnergy(10*GeV);
69  param->SetNumberOfBinsPerDecade(20);
70  param->SetLowestElectronEnergy(1*eV);
71  param->SetBuildCSDARange(true);
72  param->SetMaxEnergyForCSDARange(10*GeV);
73  param->SetMscThetaLimit(0.0);
75 }
void SetVerbose(G4int val)
void SetLowestElectronEnergy(G4double 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
void SetMscThetaLimit(G4double val)

Here is the call graph for this function:

PhysListEmStandard_SS::~PhysListEmStandard_SS ( )

Member Function Documentation

virtual void PhysListEmStandard_SS::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 51 of file PhysListEmStandard_SS.hh.

51 {};
virtual void PhysListEmStandard_SS::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 53 of file PhysListEmStandard_SS.hh.

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

Implements G4VPhysicsConstructor.

void PhysListEmStandard_SS::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 87 of file PhysListEmStandard_SS.cc.

88 {
89  // Add standard EM Processes
90  //
91 
93  particleIterator->reset();
94  while( (*particleIterator)() ){
95  G4ParticleDefinition* particle = particleIterator->value();
96  G4ProcessManager* pmanager = particle->GetProcessManager();
97  G4String particleName = particle->GetParticleName();
98 
99  if (particleName == "gamma") {
100  // gamma
101 
102  G4ComptonScattering* compton = new G4ComptonScattering();
103  MyKleinNishinaCompton* comptonModel =
104  new MyKleinNishinaCompton(fDetector);
105  comptonModel->SetCSFactor(1000.);
106  compton->SetEmModel(comptonModel );
107 
109  pmanager->AddDiscreteProcess(compton);
110  pmanager->AddDiscreteProcess(new G4GammaConversion);
111 
112  } else if (particleName == "e-") {
113  //electron
114 
115  G4eIonisation* eIoni = new G4eIonisation();
116  eIoni->SetEmModel(new MyMollerBhabhaModel, 1);
117  eIoni->SetStepFunction(0.2, 10*um);
118 
121  cs->SetEmModel(csmod, 1);
122  pmanager->AddProcess(cs, -1, -1, 1);
123  pmanager->AddProcess(eIoni, -1, 1, 2);
124 
125  } else if (particleName == "e+") {
126  //positron
127 
128  G4eIonisation* pIoni = new G4eIonisation();
129  pIoni->SetEmModel(new MyMollerBhabhaModel);
130 
131  pmanager->AddProcess(new G4CoulombScattering, -1, -1, 1);
132  pmanager->AddProcess(pIoni, -1, 1, 2);
133  pmanager->AddProcess(new G4eplusAnnihilation, 0,- 1, 3);
134 
135  } else if( particleName == "proton" ) {
136  //proton
137  pmanager->AddProcess(new G4CoulombScattering, -1, -1, 1);
138  pmanager->AddProcess(new G4hIonisation, -1, 1, 2);
139  }
140  }
141 }
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)
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: