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

#include <G4IonPhysics.hh>

Inheritance diagram for G4IonPhysics:
G4VPhysicsConstructor

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)
 
- 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 78 of file G4IonPhysics.cc.

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

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

Definition at line 87 of file G4IonPhysics.cc.

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

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

Definition at line 96 of file G4IonPhysics.cc.

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

Member Function Documentation

void G4IonPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 109 of file G4IonPhysics.cc.

References G4IonConstructor::ConstructParticle().

110 {
111  // Construct ions
112  G4IonConstructor pConstructor;
113  pConstructor.ConstructParticle();
114 }
static void ConstructParticle()
void G4IonPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 118 of file G4IonPhysics.cc.

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

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

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