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

#include <G4StoppingPhysics.hh>

+ Inheritance diagram for G4StoppingPhysics:

Public Member Functions

 G4StoppingPhysics (G4int ver=1)
 
 G4StoppingPhysics (const G4String &name, G4int ver=1, G4bool UseMuonMinusCapture=true)
 
virtual ~G4StoppingPhysics ()
 
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 63 of file G4StoppingPhysics.hh.

Constructor & Destructor Documentation

◆ G4StoppingPhysics() [1/2]

G4StoppingPhysics::G4StoppingPhysics ( G4int  ver = 1)

Definition at line 64 of file G4StoppingPhysics.cc.

65 :
66 G4VPhysicsConstructor( "stopping" ),
67 muProcess( 0 ), hBertiniProcess( 0 ), hFritiofProcess( 0 ),
68 verbose( ver ), wasActivated( false ) ,
69 useMuonMinusCapture( true )
70{
71 if ( verbose > 1 ) G4cout << "### G4StoppingPhysics" << G4endl;
72}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ G4StoppingPhysics() [2/2]

G4StoppingPhysics::G4StoppingPhysics ( const G4String name,
G4int  ver = 1,
G4bool  UseMuonMinusCapture = true 
)

Definition at line 75 of file G4StoppingPhysics.cc.

77 :
79 muProcess( 0 ), hBertiniProcess( 0 ), hFritiofProcess( 0 ),
80 verbose( ver ), wasActivated( false ) ,
81 useMuonMinusCapture( UseMuonMinusCapture )
82{
83 if ( verbose > 1 ) G4cout << "### G4StoppingPhysics" << G4endl;
84}

◆ ~G4StoppingPhysics()

G4StoppingPhysics::~G4StoppingPhysics ( )
virtual

Definition at line 87 of file G4StoppingPhysics.cc.

87{}

Member Function Documentation

◆ ConstructParticle()

void G4StoppingPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 90 of file G4StoppingPhysics.cc.

90 {
91 // G4cout << "G4StoppingPhysics::ConstructParticle" << G4endl;
92 G4LeptonConstructor pLeptonConstructor;
93 pLeptonConstructor.ConstructParticle();
94
95 G4MesonConstructor pMesonConstructor;
96 pMesonConstructor.ConstructParticle();
97
98 G4BaryonConstructor pBaryonConstructor;
99 pBaryonConstructor.ConstructParticle();
100}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void G4StoppingPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 103 of file G4StoppingPhysics.cc.

103 {
104 if ( verbose > 1 ) G4cout << "### G4StoppingPhysics::ConstructProcess "
105 << wasActivated << G4endl;
106 if ( wasActivated ) return;
107 wasActivated = true;
108
109 if ( useMuonMinusCapture ) {
110 muProcess = new G4MuonMinusCapture();
111 } else {
112 muProcess = 0;
113 }
114
115 hBertiniProcess = new G4HadronicAbsorptionBertini();
116 hFritiofProcess = new G4HadronicAbsorptionFritiof();
117
118 G4double mThreshold = 130.0*MeV;
119
120 // Add Stopping Process
121 G4ParticleDefinition* particle = 0;
122 G4ProcessManager* pmanager = 0;
123
125
126 while ( (*theParticleIterator)() ) {
127
128 particle = theParticleIterator->value();
129 pmanager = particle->GetProcessManager();
130
131 if ( particle == G4MuonMinus::MuonMinus() ) {
132 if ( useMuonMinusCapture ) {
133 pmanager->AddRestProcess( muProcess );
134 if ( verbose > 1 ) {
135 G4cout << "### G4StoppingPhysics added G4MuonMinusCapture for "
136 << particle->GetParticleName() << G4endl;
137 }
138 }
139 }
140
141 if ( particle->GetPDGCharge() < 0.0 &&
142 particle->GetPDGMass() > mThreshold &&
143 ! particle->IsShortLived() ) {
144
145 // Use Fritiof/Precompound for: anti-protons, anti-sigma+, and
146 // anti-nuclei.
147 if ( particle == G4AntiProton::AntiProton() ||
148 particle == G4AntiSigmaPlus::AntiSigmaPlus() ||
149 particle->GetBaryonNumber() < -1 ) { // Anti-nuclei
150 if ( hFritiofProcess->IsApplicable( *particle ) ) {
151 pmanager->AddRestProcess( hFritiofProcess );
152 if ( verbose > 1 ) {
153 G4cout << "### G4HadronicAbsorptionFritiof added for "
154 << particle->GetParticleName() << G4endl;
155 }
156 }
157
158 // Use Bertini/Precompound for pi-, K-, Sigma-, Xi-, and Omega-
159 } else if ( particle == G4PionMinus::PionMinus() ||
160 particle == G4KaonMinus::KaonMinus() ||
161 particle == G4SigmaMinus::SigmaMinus() ||
162 particle == G4XiMinus::XiMinus() ||
163 particle == G4OmegaMinus::OmegaMinus() ) {
164 if ( hBertiniProcess->IsApplicable( *particle ) ) {
165 pmanager->AddRestProcess( hBertiniProcess );
166 if ( verbose > 1 ) {
167 G4cout << "### G4HadronicAbsorptionBertini added for "
168 << particle->GetParticleName() << G4endl;
169 }
170 }
171
172 } else {
173 if ( verbose > 1 ) {
174 G4cout << "WARNING in G4StoppingPhysics::ConstructProcess: \
175 not able to deal with nuclear stopping of "
176 << particle->GetParticleName() << G4endl;
177 }
178 }
179 }
180
181 } // end of while loop
182}
double G4double
Definition: G4Types.hh:64
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4AntiSigmaPlus * AntiSigmaPlus()
G4bool IsApplicable(const G4ParticleDefinition &)
G4bool IsApplicable(const G4ParticleDefinition &)
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4OmegaMinus * OmegaMinus()
G4ProcessManager * GetProcessManager() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
G4int AddRestProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4SigmaMinus * SigmaMinus()
G4ParticleTable::G4PTblDicIterator * theParticleIterator
static G4XiMinus * XiMinus()
Definition: G4XiMinus.cc:106

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