Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QAtomicPhysics Class Reference

#include <G4QAtomicPhysics.hh>

+ Inheritance diagram for G4QAtomicPhysics:

Public Member Functions

 G4QAtomicPhysics (G4int ver=0)
 
 G4QAtomicPhysics (G4int ver, const G4String &name)
 
virtual ~G4QAtomicPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 49 of file G4QAtomicPhysics.hh.

Constructor & Destructor Documentation

◆ G4QAtomicPhysics() [1/2]

G4QAtomicPhysics::G4QAtomicPhysics ( G4int  ver = 0)

Definition at line 92 of file G4QAtomicPhysics.cc.

93 : G4VPhysicsConstructor("CHIPS Atomic"), verbose(ver)
94{
97}
@ bElectromagnetic
static G4LossTableManager * Instance()

◆ G4QAtomicPhysics() [2/2]

G4QAtomicPhysics::G4QAtomicPhysics ( G4int  ver,
const G4String name 
)

Definition at line 99 of file G4QAtomicPhysics.cc.

100 : G4VPhysicsConstructor(name), verbose(ver)
101{
104}

◆ ~G4QAtomicPhysics()

G4QAtomicPhysics::~G4QAtomicPhysics ( )
virtual

Definition at line 106 of file G4QAtomicPhysics.cc.

107{}

Member Function Documentation

◆ ConstructParticle()

void G4QAtomicPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 109 of file G4QAtomicPhysics.cc.

110{
111// gamma
113
114// leptons
119
120// mesons
125
126// barions
137
138// ions
141 G4He3::He3();
144}
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4AntiOmegaMinus * AntiOmegaMinus()
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4AntiSigmaMinus * AntiSigmaMinus()
static G4AntiSigmaPlus * AntiSigmaPlus()
static G4AntiXiMinus * AntiXiMinus()
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:87
static G4He3 * He3()
Definition: G4He3.cc:94
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static G4OmegaMinus * OmegaMinus()
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4SigmaMinus * SigmaMinus()
static G4SigmaPlus * SigmaPlus()
Definition: G4SigmaPlus.cc:108
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4XiMinus * XiMinus()
Definition: G4XiMinus.cc:106

◆ ConstructProcess()

void G4QAtomicPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 146 of file G4QAtomicPhysics.cc.

147{
149 while( (*theParticleIterator)() )
150 {
151 G4ParticleDefinition* particlePointer = theParticleIterator->value();
152 G4ProcessManager* pmanager = particlePointer->GetProcessManager();
153 G4String particle = particlePointer->GetParticleName();
154 if(verbose > 1) G4cout<<"###G4QAtomicPhysics::ConstructProcesses: try "
155 <<GetPhysicsName()<<" builder for "<<particle<<G4endl;
156 if ( particle == "gamma")
157 {
158
162 }
163 else if( particle == "e-")
164 {
165 pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
166 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
167 pmanager->AddProcess(new G4eBremsstrahlung(), -1,-3, 3);
168 }
169 else if( particle == "e+")
170 {
171 pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
172 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
173 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
174 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
175 }
176 else if( particle == "mu+" || particle == "mu-" )
177 {
178 pmanager->AddProcess(new G4MuMultipleScattering, -1, 1, 1);
179 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
180 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
181 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
182 }
183 else if( particle == "pi-" || particle == "pi+" ||
184 particle == "kaon-" || particle == "kaon+" ||
185 particle == "proton" || particle == "anti_proton" ||
186 particle == "tau-" || particle == "tau+" ||
187 particle == "deuteron" || particle == "triton" ||
188 particle == "xi-" || particle == "anti_xi-" ||
189 particle == "sigma+" || particle == "anti_sigma+" ||
190 particle == "sigma-" || particle == "anti_sigma-" ||
191 particle == "omega-" || particle == "anti_omega-" )
192 {
193 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
194 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
195 pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
196 pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
197 }
198 else if(particle == "alpha" || particle == "He3" ||particle == "GenericIon")
199 {
200 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
201 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
202 }
203 else if (particle == "B+" || particle == "B-" ||
204 particle == "D+" || particle == "D-" ||
205 particle == "Ds+" || particle == "Ds-" ||
206 particle == "lambda_c+" || particle == "anti_lambda_c+" ||
207 particle == "sigma_c+" || particle == "anti_sigma_c+" ||
208 particle == "sigma_c++" || particle == "anti_sigma_c++" ||
209 particle == "xi_c+" || particle == "anti_xi_c+" )
210 {
211 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
212 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
213 }
214 }
216 opt.SetVerbose(verbose);
217}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void SetVerbose(G4int val, const G4String &name="all")
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
const G4String & GetPhysicsName() const
G4ParticleTable::G4PTblDicIterator * theParticleIterator

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