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

#include <ElectromagneticPhysics.hh>

Inheritance diagram for ElectromagneticPhysics:
Collaboration diagram for ElectromagneticPhysics:

Public Member Functions

 ElectromagneticPhysics (const G4String &name="standard")
 
 ~ElectromagneticPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
 ElectromagneticPhysics (const G4String &name="standard")
 
 ~ElectromagneticPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
 ElectromagneticPhysics (const G4String &name="standard")
 
 ~ElectromagneticPhysics ()
 
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 ElectromagneticPhysics.hh.

Constructor & Destructor Documentation

ElectromagneticPhysics::ElectromagneticPhysics ( const G4String name = "standard")

Definition at line 68 of file ElectromagneticPhysics.cc.

69  : G4VPhysicsConstructor(name)
70 {
72 
74  param->SetDefaults();
75  param->SetVerbose(0);
76  param->SetStepFunction(1., 1*mm); //default= 0.1, 100*um
77  param->SetStepFunctionMuHad(1., 1*mm);
78 }
void SetVerbose(G4int val)
static constexpr double mm
Definition: G4SIunits.hh:115
void SetStepFunctionMuHad(G4double v1, G4double v2)
static G4EmParameters * Instance()
G4VPhysicsConstructor(const G4String &="")
void SetStepFunction(G4double v1, G4double v2)

Here is the call graph for this function:

ElectromagneticPhysics::~ElectromagneticPhysics ( )

Definition at line 82 of file ElectromagneticPhysics.cc.

83 {}
ElectromagneticPhysics::ElectromagneticPhysics ( const G4String name = "standard")
ElectromagneticPhysics::~ElectromagneticPhysics ( )
ElectromagneticPhysics::ElectromagneticPhysics ( const G4String name = "standard")
ElectromagneticPhysics::~ElectromagneticPhysics ( )

Member Function Documentation

virtual void ElectromagneticPhysics::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 50 of file ElectromagneticPhysics.hh.

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

Implements G4VPhysicsConstructor.

Definition at line 50 of file ElectromagneticPhysics.hh.

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

Implements G4VPhysicsConstructor.

Definition at line 50 of file ElectromagneticPhysics.hh.

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

Implements G4VPhysicsConstructor.

void ElectromagneticPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 87 of file ElectromagneticPhysics.cc.

88 {
90 
91  // Add standard EM Processes
92  //
94  particleIterator->reset();
95  while( (*particleIterator)() ){
96  G4ParticleDefinition* particle = particleIterator->value();
97  G4String particleName = particle->GetParticleName();
98 
99  if (particleName == "gamma") {
100 
101  ph->RegisterProcess(new G4PhotoElectricEffect, particle);
102  ph->RegisterProcess(new G4ComptonScattering, particle);
103  ph->RegisterProcess(new G4GammaConversion, particle);
104 
105  } else if (particleName == "e-") {
106 
107  ph->RegisterProcess(new G4eMultipleScattering(), particle);
108  ph->RegisterProcess(new G4eIonisation, particle);
109  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
110 
111  } else if (particleName == "e+") {
112 
113  ph->RegisterProcess(new G4eMultipleScattering(), particle);
114  ph->RegisterProcess(new G4eIonisation, particle);
115  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
116  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
117 
118  } else if (particleName == "mu+" ||
119  particleName == "mu-" ) {
120 
121  ph->RegisterProcess(new G4MuMultipleScattering(), particle);
122  ph->RegisterProcess(new G4MuIonisation, particle);
123  ph->RegisterProcess(new G4MuBremsstrahlung(), particle);
124  ph->RegisterProcess(new G4MuPairProduction(), particle);
125 
126  } else if( particleName == "proton" ||
127  particleName == "pi-" ||
128  particleName == "pi+" ) {
129 
130  ph->RegisterProcess(new G4hMultipleScattering(), particle);
131  ph->RegisterProcess(new G4hIonisation, particle);
132 
133  } else if( particleName == "alpha" ||
134  particleName == "He3" ) {
135 
136  ph->RegisterProcess(new G4hMultipleScattering(), particle);
137  ph->RegisterProcess(new G4ionIonisation, particle);
138  ph->RegisterProcess(new G4NuclearStopping(), particle);
139 
140  } else if( particleName == "GenericIon" ) {
141 
142  ph->RegisterProcess(new G4hMultipleScattering(), particle);
143  G4ionIonisation* ionIoni = new G4ionIonisation();
144  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
145  ph->RegisterProcess(ionIoni, particle);
146  ph->RegisterProcess(new G4NuclearStopping(), particle);
147 
148  } else if ((!particle->IsShortLived()) &&
149  (particle->GetPDGCharge() != 0.0) &&
150  (particle->GetParticleName() != "chargedgeantino")) {
151 
152  //all others charged particles except geantino
153  ph->RegisterProcess(new G4hMultipleScattering(), particle);
154  ph->RegisterProcess(new G4hIonisation(), particle);
155  }
156  }
157 }
const G4String & GetParticleName() const
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
void SetEmModel(G4VEmModel *, G4int index=1)
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
G4double GetPDGCharge() const

Here is the call graph for this function:

virtual void ElectromagneticPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.


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