Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4IonBinaryCascadePhysics Class Reference

#include <G4IonBinaryCascadePhysics.hh>

Inheritance diagram for G4IonBinaryCascadePhysics:
G4VPhysicsConstructor

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)
 
- 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 80 of file G4IonBinaryCascadePhysics.cc.

References bIons, G4cout, G4endl, and G4VPhysicsConstructor::SetPhysicsType().

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

Definition at line 93 of file G4IonBinaryCascadePhysics.cc.

References bIons, G4cout, G4endl, and G4VPhysicsConstructor::SetPhysicsType().

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

Definition at line 107 of file G4IonBinaryCascadePhysics.cc.

References n.

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

Member Function Documentation

void G4IonBinaryCascadePhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 179 of file G4IonBinaryCascadePhysics.cc.

References G4IonConstructor::ConstructParticle().

180 {
181  // Construct light ions
182  G4IonConstructor pConstructor;
183  pConstructor.ConstructParticle();
184 }
static void ConstructParticle()
void G4IonBinaryCascadePhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 133 of file G4IonBinaryCascadePhysics.cc.

References G4Alpha::Alpha(), G4Deuteron::Deuteron(), G4GenericIon::GenericIon(), G4VHadronModelBuilder::GetModel(), python.hepunit::GeV, G4He3::He3(), G4HadronicInteraction::SetMaxEnergy(), G4HadronicInteraction::SetMinEnergy(), python.hepunit::TeV, and G4Triton::Triton().

134 {
135  if(wasActivated) { return; }
136  wasActivated = true;
137 
138  G4ExcitationHandler* handler = new G4ExcitationHandler();
139  G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(handler);
140 
141  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
142  theIonBC->SetMinEnergy(0.0);
143  theIonBC->SetMaxEnergy(4.0*GeV);
144  if ( G4MT_model_list == 0 ) G4MT_model_list = new std::vector<G4HadronicInteraction*>;
145  G4MT_model_list->push_back(theIonBC);
146 
147  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
148  theFTFP = theBuilder->GetModel();
149  theFTFP->SetMinEnergy(2.0*GeV);
150  theFTFP->SetMaxEnergy(100.0*TeV);
151  G4MT_model_list->push_back(theFTFP);
152 
153  theNuclNuclData = new G4CrossSectionInelastic( theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc() );
154 
155  AddProcess("dInelastic", G4Deuteron::Deuteron());
156  AddProcess("tInelastic", G4Triton::Triton());
157  AddProcess("He3Inelastic", G4He3::He3());
158  AddProcess("alphaInelastic", G4Alpha::Alpha());
159  AddProcess("ionInelastic", G4GenericIon::GenericIon());
160 }
G4HadronicInteraction * GetModel()
void SetMinEnergy(G4double anEnergy)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
void SetMaxEnergy(const G4double anEnergy)
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4He3 * He3()
Definition: G4He3.cc:94

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