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

#include <G4IonPhysics.hh>

Inheritance diagram for G4IonPhysics:
Collaboration diagram for G4IonPhysics:

Public Member Functions

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

Constructor & Destructor Documentation

G4IonPhysics::G4IonPhysics ( G4int  ver = 0)

Definition at line 79 of file G4IonPhysics.cc.

80  : G4VPhysicsConstructor("ionInelasticFTFP_BIC"),verbose(ver)
81 {
83  if(verbose > 1) { G4cout << "### G4IonPhysics" << G4endl; }
84 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4IonPhysics::G4IonPhysics ( const G4String nname)

Definition at line 88 of file G4IonPhysics.cc.

89  : G4VPhysicsConstructor(nname),verbose(1)
90 {
92  if(verbose > 1) { G4cout << "### G4IonPhysics" << G4endl; }
93 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4IonPhysics::~G4IonPhysics ( )
virtual

Definition at line 97 of file G4IonPhysics.cc.

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

Member Function Documentation

void G4IonPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 110 of file G4IonPhysics.cc.

111 {
112  // Construct ions
113  G4IonConstructor pConstructor;
114  pConstructor.ConstructParticle();
115 }
static void ConstructParticle()

Here is the call graph for this function:

void G4IonPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 119 of file G4IonPhysics.cc.

120 {
121  if(wasActivated) { return; }
122  wasActivated = true;
123 
124  G4double emax = 100.*TeV;
125 
128  G4PreCompoundModel* thePreCompound = static_cast<G4PreCompoundModel*>(p);
129  if(!thePreCompound) { thePreCompound = new G4PreCompoundModel; }
130 
131  // Binary Cascade
132  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
133  theIonBC->SetMinEnergy(0.0);
134  theIonBC->SetMaxEnergy(4*GeV);
135 
136  // FTFP
137  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
138  theFTFP = theBuilder->GetModel();
139  theFTFP->SetMinEnergy(2*GeV);
140  theFTFP->SetMaxEnergy(emax);
141 
142  theNuclNuclData =
143  new G4CrossSectionInelastic( theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc() );
144 
145  AddProcess("dInelastic", G4Deuteron::Deuteron(),false);
146  AddProcess("tInelastic",G4Triton::Triton(),false);
147  AddProcess("He3Inelastic",G4He3::He3(),true);
148  AddProcess("alphaInelastic", G4Alpha::Alpha(),true);
149  AddProcess("ionInelastic",G4GenericIon::GenericIon(),true);
150 
151  if(verbose > 1) {
152  G4cout << "G4IonPhysics::ConstructProcess done! "
153  << G4endl;
154  }
155 }
const char * p
Definition: xmltok.h:285
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
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)
#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: