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

#include <G4IonLHEPPhysics.hh>

+ Inheritance diagram for G4IonLHEPPhysics:

Public Member Functions

 G4IonLHEPPhysics (G4int verbose=1)
 
 G4IonLHEPPhysics (const G4String &name)
 
virtual ~G4IonLHEPPhysics ()
 
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 54 of file G4IonLHEPPhysics.hh.

Constructor & Destructor Documentation

◆ G4IonLHEPPhysics() [1/2]

G4IonLHEPPhysics::G4IonLHEPPhysics ( G4int  verbose = 1)

Definition at line 66 of file G4IonLHEPPhysics.cc.

67 : G4VPhysicsConstructor("IonPhysics")
68 , wasActivated(false)
69{
70 G4HadronicDeprecate("G4IonLHEPPhysics");
72 fDeuteronProcess = 0;
73 fDeuteronModel = 0;
74 fTritonProcess = 0;
75 fTritonModel = 0;
76 fAlphaProcess = 0;
77 fAlphaModel = 0;
78}
@ bIons
#define G4HadronicDeprecate(name)

◆ G4IonLHEPPhysics() [2/2]

G4IonLHEPPhysics::G4IonLHEPPhysics ( const G4String name)

Definition at line 80 of file G4IonLHEPPhysics.cc.

81 : G4VPhysicsConstructor(name), wasActivated(false)
82{
83 G4HadronicDeprecate("G4IonLHEPPhysics");
85 fDeuteronProcess = 0;
86 fDeuteronModel = 0;
87 fTritonProcess = 0;
88 fTritonModel = 0;
89 fAlphaProcess = 0;
90 fAlphaModel = 0;
91}

◆ ~G4IonLHEPPhysics()

G4IonLHEPPhysics::~G4IonLHEPPhysics ( )
virtual

Definition at line 93 of file G4IonLHEPPhysics.cc.

94{
95 if(wasActivated) {
96
97 delete fDeuteronProcess;
98 delete fDeuteronModel;
99 delete fTritonProcess;
100 delete fTritonModel;
101 delete fAlphaProcess;
102 delete fAlphaModel;
103
104 }
105 }

Member Function Documentation

◆ ConstructParticle()

void G4IonLHEPPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 138 of file G4IonLHEPPhysics.cc.

139 {
140 // Construct light ions
141 G4IonConstructor pConstructor;
142 pConstructor.ConstructParticle();
143 }
static void ConstructParticle()

◆ ConstructProcess()

void G4IonLHEPPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 107 of file G4IonLHEPPhysics.cc.

108{
109 G4ProcessManager * pManager = 0;
110
111 // Deuteron
113 // add process
114 fDeuteronModel = new G4LEDeuteronInelastic();
115 fDeuteronProcess = new G4DeuteronInelasticProcess();
116 fDeuteronProcess->RegisterMe(fDeuteronModel);
117 pManager->AddDiscreteProcess(fDeuteronProcess);
118
119 // Triton
120 pManager = G4Triton::Triton()->GetProcessManager();
121 // add process
122 fTritonModel = new G4LETritonInelastic();
123 fTritonProcess = new G4TritonInelasticProcess();
124 fTritonProcess->RegisterMe(fTritonModel);
125 pManager->AddDiscreteProcess(fTritonProcess);
126
127 // Alpha
128 pManager = G4Alpha::Alpha()->GetProcessManager();
129 // add process
130 fAlphaModel = new G4LEAlphaInelastic();
131 fAlphaProcess = new G4AlphaInelasticProcess();
132 fAlphaProcess->RegisterMe(fAlphaModel);
133 pManager->AddDiscreteProcess(fAlphaProcess);
134
135 wasActivated = true;
136}
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
void RegisterMe(G4HadronicInteraction *a)
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4Triton * Triton()
Definition: G4Triton.cc:95

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