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

#include <G4QEmExtraPhysics.hh>

+ Inheritance diagram for G4QEmExtraPhysics:

Public Member Functions

 G4QEmExtraPhysics (G4int ver=1)
 
virtual ~G4QEmExtraPhysics ()
 
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 47 of file G4QEmExtraPhysics.hh.

Constructor & Destructor Documentation

◆ G4QEmExtraPhysics()

G4QEmExtraPhysics::G4QEmExtraPhysics ( G4int  ver = 1)

Definition at line 54 of file G4QEmExtraPhysics.cc.

55 : G4VPhysicsConstructor("QEmExtra"), hProcess(0), verbose(ver), wasActivated(false)
56{
57 G4HadronicDeprecate("G4QEmExtraPhysics");
58 if(verbose > 1) G4cout << "### G4QEmExtraPhysics" << G4endl;
59}
#define G4HadronicDeprecate(name)
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ ~G4QEmExtraPhysics()

G4QEmExtraPhysics::~G4QEmExtraPhysics ( )
virtual

Definition at line 61 of file G4QEmExtraPhysics.cc.

62{
63 delete hProcess;
64}

Member Function Documentation

◆ ConstructParticle()

void G4QEmExtraPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 66 of file G4QEmExtraPhysics.cc.

67{
68// G4cout << "G4QEmExtraPhysics::ConstructParticle" << G4endl;
69 G4LeptonConstructor pLeptonConstructor;
70 pLeptonConstructor.ConstructParticle();
71}
static void ConstructParticle()

◆ ConstructProcess()

void G4QEmExtraPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 73 of file G4QEmExtraPhysics.cc.

74{
75 if(verbose > 1) G4cout << "### G4QEmExtraPhysics::ConstructProcess "
76 << wasActivated << G4endl;
77 if(wasActivated) return;
78 wasActivated = true;
79
80 hProcess = new G4QInelastic();
81
83 G4ProcessManager* pmanager = particle->GetProcessManager();
84 pmanager->AddDiscreteProcess(hProcess);
85
86 particle = G4Electron::Electron();
87 pmanager = particle->GetProcessManager();
88 pmanager->AddDiscreteProcess(hProcess);
89
90 particle = G4Positron::Positron();
91 pmanager = particle->GetProcessManager();
92 pmanager->AddDiscreteProcess(hProcess);
93
94 particle = G4MuonMinus::MuonMinus();
95 pmanager = particle->GetProcessManager();
96 pmanager->AddDiscreteProcess(hProcess);
97
98 particle = G4MuonPlus::MuonPlus();
99 pmanager = particle->GetProcessManager();
100 pmanager->AddDiscreteProcess(hProcess);
101
102}
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
G4ProcessManager * GetProcessManager() const
static G4Positron * Positron()
Definition: G4Positron.cc:94
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

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