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

#include <G4IonBinaryCascadePhysics.hh>

+ Inheritance diagram for G4IonBinaryCascadePhysics:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4IonBinaryCascadePhysics() [1/2]

G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics ( G4int  ver = 0)

Definition at line 69 of file G4IonBinaryCascadePhysics.cc.

70 : G4VPhysicsConstructor("IonBinaryCascade"), verbose(ver), wasActivated(false)
71{
72 fLEDModel = 0;
73 fLETModel = 0;
74 fLEAModel = 0;
75 fTripathi = 0;
76 fTripathiLight = 0;
77 fShen = 0;
78 fIonH = 0;
79 emax = 20.*GeV;
80 emaxLHEP = 1.*TeV;
81 eminBIC = 0.*MeV;
83 if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl;
84}
@ bIons
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ G4IonBinaryCascadePhysics() [2/2]

G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics ( const G4String name,
G4int  ver = 0 
)

Definition at line 86 of file G4IonBinaryCascadePhysics.cc.

88 : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false)
89{
90 fLEDModel = 0;
91 fLETModel = 0;
92 fLEAModel = 0;
93 fTripathi = 0;
94 fTripathiLight = 0;
95 fShen = 0;
96 fIonH = 0;
97 emax = 20.*GeV;
98 emaxLHEP = 1.*TeV;
99 eminBIC = 0.*MeV;
101 if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl;
102}

◆ ~G4IonBinaryCascadePhysics()

G4IonBinaryCascadePhysics::~G4IonBinaryCascadePhysics ( )
virtual

Definition at line 104 of file G4IonBinaryCascadePhysics.cc.

105{
106 if(wasActivated) {
107 delete fTripathi;
108 delete fTripathiLight;
109 delete fShen;
110 delete fIonH;
111 delete fLEDModel;
112 delete fLETModel;
113 delete fLEAModel;
114 G4int i;
115 G4int n = p_list.size();
116 for(i=0; i<n; i++) {delete p_list[i];}
117 n = model_list.size();
118 for(i=0; i<n; i++) {delete model_list[i];}
119 }
120}
int G4int
Definition: G4Types.hh:66

Member Function Documentation

◆ ConstructParticle()

void G4IonBinaryCascadePhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 178 of file G4IonBinaryCascadePhysics.cc.

179{
180 // Construct light ions
181 G4IonConstructor pConstructor;
182 pConstructor.ConstructParticle();
183}
static void ConstructParticle()

◆ ConstructProcess()

void G4IonBinaryCascadePhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 122 of file G4IonBinaryCascadePhysics.cc.

123{
124 if(wasActivated) { return; }
125 wasActivated = true;
126
128 model_list.push_back(fBC);
129 fShen = new G4IonsShenCrossSection;
130 //fTripathi = new G4TripathiCrossSection;
131 //fTripathiLight = new G4TripathiLightCrossSection;
132 fIonH = new G4IonProtonCrossSection;
133
134 fLEDModel = new G4LEDeuteronInelastic();
135 fLETModel = new G4LETritonInelastic();
136 fLEAModel = new G4LEAlphaInelastic();
137
138 AddProcess("dInelastic", G4Deuteron::Deuteron(), fBC, fLEDModel);
139 AddProcess("tInelastic",G4Triton::Triton(), fBC, fLETModel);
140 AddProcess("He3Inelastic",G4He3::He3(), fBC, 0);
141 AddProcess("alphaInelastic", G4Alpha::Alpha(), fBC, fLEAModel);
142 AddProcess("ionInelastic",G4GenericIon::GenericIon(), fBC, 0);
143
144}
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:92
static G4He3 * He3()
Definition: G4He3.cc:94
static G4Triton * Triton()
Definition: G4Triton.cc:95

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