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

#include <PhysListEmStandardGS.hh>

Inheritance diagram for PhysListEmStandardGS:
Collaboration diagram for PhysListEmStandardGS:

Public Member Functions

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

Constructor & Destructor Documentation

PhysListEmStandardGS::PhysListEmStandardGS ( const G4String name = "standardGS")

Definition at line 64 of file PhysListEmStandardGS.cc.

65  : G4VPhysicsConstructor(name)
66 {}
G4VPhysicsConstructor(const G4String &="")
PhysListEmStandardGS::~PhysListEmStandardGS ( )

Definition at line 70 of file PhysListEmStandardGS.cc.

71 {}

Member Function Documentation

virtual void PhysListEmStandardGS::ConstructParticle ( void  )
inlinevirtual

Implements G4VPhysicsConstructor.

Definition at line 50 of file PhysListEmStandardGS.hh.

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

Implements G4VPhysicsConstructor.

Definition at line 75 of file PhysListEmStandardGS.cc.

76 {
77  // Add standard EM Processes
78  //
79 
81  particleIterator->reset();
82  while( (*particleIterator)() ){
83  G4ParticleDefinition* particle = particleIterator->value();
84  G4ProcessManager* pmanager = particle->GetProcessManager();
85  G4String particleName = particle->GetParticleName();
86 
87  if (particleName == "gamma") {
88  // gamma
92 
93  } else if (particleName == "e-") {
94  //electron
97  pmanager->AddProcess(msc, -1, 1, 1);
98  pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
99  pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3);
100 
101  } else if (particleName == "e+") {
102  //positron
105  pmanager->AddProcess(msc, -1, 1, 1);
106  pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
107  pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3);
108  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
109 
110  } else if (particleName == "mu+" ||
111  particleName == "mu-" ) {
112  //muon
113  pmanager->AddProcess(new G4MuMultipleScattering, -1, 1, 1);
114  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
115  pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3);
116  pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4);
117 
118  } else if( particleName == "proton" ||
119  particleName == "pi-" ||
120  particleName == "pi+" ) {
121  //proton
122  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
123  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
124  pmanager->AddProcess(new G4hBremsstrahlung, -1, 3, 3);
125  pmanager->AddProcess(new G4hPairProduction, -1, 4, 4);
126 
127  } else if( particleName == "alpha" ||
128  particleName == "He3" ) {
129  //alpha
130  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
131  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
132  pmanager->AddProcess(new G4NuclearStopping, -1, 3,-1);
133 
134  } else if( particleName == "GenericIon" ) {
135  //Ions
136  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
137  G4ionIonisation* ionIoni = new G4ionIonisation();
138  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
139  pmanager->AddProcess(ionIoni, -1, 2, 2);
140  pmanager->AddProcess(new G4NuclearStopping, -1, 3,-1);
141 
142  } else if ((!particle->IsShortLived()) &&
143  (particle->GetPDGCharge() != 0.0) &&
144  (particle->GetParticleName() != "chargedgeantino")) {
145  //all others charged particles except geantino
146  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
147  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
148  }
149  }
150 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const G4String & GetParticleName() const
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
G4ProcessManager * GetProcessManager() const
void SetEmModel(G4VEmModel *, G4int index=1)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
G4double GetPDGCharge() const

Here is the call graph for this function:


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