Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4IonBinaryCascadePhysics Class Reference

#include <G4IonBinaryCascadePhysics.hh>

Inheritance diagram for G4IonBinaryCascadePhysics:
Collaboration 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 ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 54 of file G4IonBinaryCascadePhysics.hh.

Constructor & Destructor Documentation

G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics ( G4int  ver = 0)

Definition at line 81 of file G4IonBinaryCascadePhysics.cc.

82  : G4VPhysicsConstructor("IonBinaryCascade"), verbose(ver)
83 {
84  theNuclNuclData = 0;
85  theGGNuclNuclXS = 0;
86  theIonBC = 0;
87  theFTFP = 0;
88  theBuilder = 0;
90  if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl;
91 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

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

Definition at line 94 of file G4IonBinaryCascadePhysics.cc.

96  : G4VPhysicsConstructor(name), verbose(ver)
97 {
98  theNuclNuclData = 0;
99  theGGNuclNuclXS = 0;
100  theIonBC = 0;
101  theFTFP = 0;
102  theBuilder = 0;
104  if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl;
105 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4IonBinaryCascadePhysics::~G4IonBinaryCascadePhysics ( )
virtual

Definition at line 108 of file G4IonBinaryCascadePhysics.cc.

109 {
110  //Explicitly setting pointers TLS to 0 is
111  //needed, in case I create a new thread
112  //this variable is static!
113  if(wasActivated) {
114  delete theBuilder; theBuilder = 0;
115  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
116  delete theNuclNuclData; theNuclNuclData = 0;
117  G4int i;
118  if ( G4MT_p_list ) {
119  G4int n = G4MT_p_list->size();
120  for(i=0; i<n; i++) {delete (*G4MT_p_list)[i];}
121  delete G4MT_p_list;
122  G4MT_p_list = 0;
123  }
124  if ( G4MT_model_list ) {
125  G4int n = G4MT_model_list->size();
126  for(i=0; i<n; i++) {delete (*G4MT_model_list)[i];}
127  delete G4MT_model_list;
128  G4MT_model_list = 0;
129  }
130  }
131 }
int G4int
Definition: G4Types.hh:78

Member Function Documentation

void G4IonBinaryCascadePhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 182 of file G4IonBinaryCascadePhysics.cc.

183 {
184  // Construct light ions
185  G4IonConstructor pConstructor;
186  pConstructor.ConstructParticle();
187 }
static void ConstructParticle()

Here is the call graph for this function:

void G4IonBinaryCascadePhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 134 of file G4IonBinaryCascadePhysics.cc.

135 {
136  if(wasActivated) { return; }
137  wasActivated = true;
138 
141  G4PreCompoundModel* thePreCompound = static_cast<G4PreCompoundModel*>(p);
142  if(!thePreCompound) { thePreCompound = new G4PreCompoundModel; }
143 
144  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
145  theIonBC->SetMinEnergy(0.0);
146  theIonBC->SetMaxEnergy(4.0*GeV);
147  if ( G4MT_model_list == 0 ) G4MT_model_list = new std::vector<G4HadronicInteraction*>;
148  G4MT_model_list->push_back(theIonBC);
149 
150  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
151  theFTFP = theBuilder->GetModel();
152  theFTFP->SetMinEnergy(2.0*GeV);
153  theFTFP->SetMaxEnergy(100.0*TeV);
154  G4MT_model_list->push_back(theFTFP);
155 
156  theNuclNuclData = new G4CrossSectionInelastic( theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc() );
157 
158  AddProcess("dInelastic", G4Deuteron::Deuteron());
159  AddProcess("tInelastic", G4Triton::Triton());
160  AddProcess("He3Inelastic", G4He3::He3());
161  AddProcess("alphaInelastic", G4Alpha::Alpha());
162  AddProcess("ionInelastic", G4GenericIon::GenericIon());
163 }
const char * p
Definition: xmltok.h:285
G4HadronicInteraction * GetModel()
static constexpr double TeV
Definition: G4SIunits.hh:218
void SetMinEnergy(G4double anEnergy)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
G4HadronicInteraction * FindModel(const G4String &name)
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4HadronicInteractionRegistry * Instance()
static constexpr double GeV
Definition: G4SIunits.hh:217
void SetMaxEnergy(const G4double anEnergy)
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4He3 * He3()
Definition: G4He3.cc:94

Here is the call graph for this function:


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