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

#include <G4LHEPStoppingPhysics.hh>

+ Inheritance diagram for G4LHEPStoppingPhysics:

Public Member Functions

 G4LHEPStoppingPhysics (G4int ver=1)
 
 G4LHEPStoppingPhysics (const G4String &name, G4int ver=1)
 
virtual ~G4LHEPStoppingPhysics ()
 
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 50 of file G4LHEPStoppingPhysics.hh.

Constructor & Destructor Documentation

◆ G4LHEPStoppingPhysics() [1/2]

G4LHEPStoppingPhysics::G4LHEPStoppingPhysics ( G4int  ver = 1)

Definition at line 66 of file G4LHEPStoppingPhysics.cc.

67 : G4VPhysicsConstructor("LHEP Stopping")
68 , muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0)
69 , verbose(ver), wasActivated(false)
70{
71 G4HadronicDeprecate("G4LHEPStoppingPhysics");
72}
#define G4HadronicDeprecate(name)

◆ G4LHEPStoppingPhysics() [2/2]

G4LHEPStoppingPhysics::G4LHEPStoppingPhysics ( const G4String name,
G4int  ver = 1 
)

Definition at line 74 of file G4LHEPStoppingPhysics.cc.

75: G4VPhysicsConstructor(nam), muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0)
76, verbose(ver), wasActivated(false)
77{
78 G4HadronicDeprecate("G4LHEPStoppingPhysics");
79}

◆ ~G4LHEPStoppingPhysics()

G4LHEPStoppingPhysics::~G4LHEPStoppingPhysics ( )
virtual

Definition at line 81 of file G4LHEPStoppingPhysics.cc.

82{
83 if(wasActivated) {
84 delete muProcess;
85 delete piProcess;
86 delete kProcess;
87 delete apProcess;
88 delete anProcess;
89 }
90}

Member Function Documentation

◆ ConstructParticle()

void G4LHEPStoppingPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 92 of file G4LHEPStoppingPhysics.cc.

93{
94// G4cout << "G4QStoppingPhysics::ConstructParticle" << G4endl;
95 G4LeptonConstructor pLeptonConstructor;
96 pLeptonConstructor.ConstructParticle();
97
98 G4MesonConstructor pMesonConstructor;
99 pMesonConstructor.ConstructParticle();
100
101 G4BaryonConstructor pBaryonConstructor;
102 pBaryonConstructor.ConstructParticle();
103
104}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4LHEPStoppingPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 106 of file G4LHEPStoppingPhysics.cc.

107{
108 if(wasActivated) return;
109 G4ProcessManager * aProcMan = 0;
110 wasActivated=true;
111 //G4cout << " adding stopping hadron Physics" << G4endl;
112
113 // Muon Minus Physics
115 muProcess = new G4MuonMinusCaptureAtRest();
116 aProcMan->AddRestProcess(muProcess);
117
118 // PionMinus
120 piProcess = new G4PionMinusAbsorptionAtRest();
121 aProcMan->AddRestProcess(piProcess);
122
123 // KaonMinus
125 kProcess = new G4KaonMinusAbsorption();
126 aProcMan->AddRestProcess(kProcess);
127
128 // anti-Proton
130 apProcess = new G4AntiProtonAnnihilationAtRest();
131 aProcMan->AddRestProcess(apProcess);
132
133 // AntiNeutron
135 anProcess = new G4AntiNeutronAnnihilationAtRest();
136 aProcMan->AddRestProcess(anProcess);
137
138}
static G4AntiNeutron * AntiNeutron()
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
G4ProcessManager * GetProcessManager() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
G4int AddRestProcess(G4VProcess *aProcess, G4int ord=ordDefault)

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