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

#include <EmStandardPhysics.hh>

Inheritance diagram for EmStandardPhysics:
Collaboration diagram for EmStandardPhysics:

Public Member Functions

 EmStandardPhysics (const G4String &name="standard")
 
 ~EmStandardPhysics ()
 
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 EmStandardPhysics.hh.

Constructor & Destructor Documentation

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

Definition at line 74 of file EmStandardPhysics.cc.

75  : G4VPhysicsConstructor(name)
76 {}
G4VPhysicsConstructor(const G4String &="")
EmStandardPhysics::~EmStandardPhysics ( )

Definition at line 80 of file EmStandardPhysics.cc.

81 {}

Member Function Documentation

virtual void EmStandardPhysics::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 50 of file EmStandardPhysics.hh.

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

Implements G4VPhysicsConstructor.

Definition at line 85 of file EmStandardPhysics.cc.

86 {
88 
89  // Add standard EM Processes
90  //
92  particleIterator->reset();
93  while( (*particleIterator)() ){
94  G4ParticleDefinition* particle = particleIterator->value();
95  G4String particleName = particle->GetParticleName();
96 
97  if (particleName == "gamma") {
98 
99  ph->RegisterProcess(new G4PhotoElectricEffect, particle);
100  ph->RegisterProcess(new G4ComptonScattering, particle);
101  ph->RegisterProcess(new G4GammaConversion, particle);
102 
103  } else if (particleName == "e-") {
104 
105  ph->RegisterProcess(new G4eMultipleScattering(), particle);
106  ph->RegisterProcess(new G4eIonisation, particle);
107  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
108 
109  } else if (particleName == "e+") {
110 
111  ph->RegisterProcess(new G4eMultipleScattering(), particle);
112  ph->RegisterProcess(new G4eIonisation, particle);
113  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
114  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
115 
116  } else if (particleName == "mu+" ||
117  particleName == "mu-" ) {
118 
119  ph->RegisterProcess(new G4MuMultipleScattering(), particle);
120  ph->RegisterProcess(new G4MuIonisation, particle);
121  ph->RegisterProcess(new G4MuBremsstrahlung(), particle);
122  ph->RegisterProcess(new G4MuPairProduction(), particle);
123 
124  } else if( particleName == "proton" ||
125  particleName == "pi-" ||
126  particleName == "pi+" ) {
127 
128  ph->RegisterProcess(new G4hMultipleScattering(), particle);
129  ph->RegisterProcess(new G4hIonisation, particle);
130 
131  } else if( particleName == "alpha" ||
132  particleName == "He3" ) {
133 
134  ph->RegisterProcess(new G4hMultipleScattering(), particle);
135  ph->RegisterProcess(new G4ionIonisation, particle);
136  ph->RegisterProcess(new G4NuclearStopping(), particle);
137 
138  } else if( particleName == "GenericIon" ) {
139 
140  ph->RegisterProcess(new G4hMultipleScattering(), particle);
141  G4ionIonisation* ionIoni = new G4ionIonisation();
142  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
143  ph->RegisterProcess(ionIoni, particle);
144  ph->RegisterProcess(new G4NuclearStopping(), particle);
145 
146  } else if ((!particle->IsShortLived()) &&
147  (particle->GetPDGCharge() != 0.0) &&
148  (particle->GetParticleName() != "chargedgeantino")) {
149 
150  //all others charged particles except geantino
151  ph->RegisterProcess(new G4hMultipleScattering(), particle);
152  ph->RegisterProcess(new G4hIonisation(), particle);
153  }
154  }
155 
156  // Em options
157  //
158  // Main options and setting parameters are shown here.
159  // Several of them have default values.
160  //
161  G4EmProcessOptions emOptions;
162 
163  //ionisation
164  //
165  emOptions.SetStepFunction(1., 1*mm); //default= 0.1, 100*um
166 
167  // Deexcitation
168  //
170  de->SetFluo(true);
171  de->SetAuger(true);
173 }
static G4LossTableManager * Instance()
static constexpr double mm
Definition: G4SIunits.hh:115
void SetStepFunction(G4double v1, G4double v2)
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
void SetAtomDeexcitation(G4VAtomDeexcitation *)

Here is the call graph for this function:


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