Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExExChIonPhysics Class Reference

#include <ExExChIonPhysics.hh>

Inheritance diagram for ExExChIonPhysics:
Collaboration diagram for ExExChIonPhysics:

Public Member Functions

 ExExChIonPhysics (G4int ver=0)
 
 ExExChIonPhysics (const G4String &nname)
 
virtual ~ExExChIonPhysics ()
 
void ConstructParticle ()
 
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 43 of file ExExChIonPhysics.hh.

Constructor & Destructor Documentation

ExExChIonPhysics::ExExChIonPhysics ( G4int  ver = 0)

Definition at line 74 of file ExExChIonPhysics.cc.

75 : G4VPhysicsConstructor("ionInelasticFTFP_BIC"),verbose(ver)
76 {
78  if(verbose > 1) { G4cout << "### ExExChIonPhysics" << G4endl; }
79 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

ExExChIonPhysics::ExExChIonPhysics ( const G4String nname)

Definition at line 83 of file ExExChIonPhysics.cc.

84 : G4VPhysicsConstructor(nname),verbose(1)
85 {
87  if(verbose > 1) { G4cout << "### ExExChIonPhysics" << G4endl; }
88 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

ExExChIonPhysics::~ExExChIonPhysics ( )
virtual

Definition at line 92 of file ExExChIonPhysics.cc.

93 {
94  //Explictly setting pointers to zero is actually needed.
95  //These are static variables, in case we restart threads
96  //we need to re-create objects
97  delete theBuilder; theBuilder = 0;
98  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
99  delete theNuclNuclData; theNuclNuclData = 0;
100  delete theIonBC; theIonBC = 0;
101  delete theFTFP; theFTFP = 0;
102 }

Member Function Documentation

void ExExChIonPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 106 of file ExExChIonPhysics.cc.

107 {
108  // Construct ions
109  G4IonConstructor pConstructor;
110  pConstructor.ConstructParticle();
111 }
static void ConstructParticle()

Here is the call graph for this function:

void ExExChIonPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 115 of file ExExChIonPhysics.cc.

116 {
117  if(wasActivated) { return; }
118  wasActivated = true;
119 
120  G4double emax = 100.*TeV;
121 
122  G4ExcitationHandler* handler = new G4ExcitationHandler();
123  G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(handler);
124 
125  // Binary Cascade
126  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
127  theIonBC->SetMinEnergy(0.0);
128  theIonBC->SetMaxEnergy(4*GeV);
129 
130  // FTFP
131  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
132  theFTFP = theBuilder->GetModel();
133  theFTFP->SetMinEnergy(2*GeV);
134  theFTFP->SetMaxEnergy(emax);
135 
136  theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc();
137  theNuclNuclData = new G4CrossSectionInelastic(theGGNuclNuclXS);
138 
139  AddProcess("dInelastic", G4Deuteron::Deuteron(),false);
140  AddProcess("tInelastic",G4Triton::Triton(),false);
141  AddProcess("He3Inelastic",G4He3::He3(),true);
142  AddProcess("alphaInelastic", G4Alpha::Alpha(),true);
143  AddProcess("ionInelastic",G4GenericIon::GenericIon(),true);
144 
145  if(verbose > 1) {
146  G4cout << "ExExChIonPhysics::ConstructProcess done! "
147  << G4endl;
148  }
149 }
G4HadronicInteraction * GetModel()
static constexpr double TeV
Definition: G4SIunits.hh:218
void SetMinEnergy(G4double anEnergy)
G4GLOB_DLL std::ostream G4cout
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static const G4double emax
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static constexpr double GeV
Definition: G4SIunits.hh:217
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
double G4double
Definition: G4Types.hh:76
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: