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

#include <G4IonPhysicsPHP.hh>

Inheritance diagram for G4IonPhysicsPHP:
Collaboration diagram for G4IonPhysicsPHP:

Public Member Functions

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

Constructor & Destructor Documentation

G4IonPhysicsPHP::G4IonPhysicsPHP ( G4int  ver = 0)

Definition at line 89 of file G4IonPhysicsPHP.cc.

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

Here is the call graph for this function:

G4IonPhysicsPHP::G4IonPhysicsPHP ( const G4String nname)

Definition at line 96 of file G4IonPhysicsPHP.cc.

97  : G4VPhysicsConstructor( nname ), verbose( 1 ) {
99  if ( verbose > 1 ) G4cout << "### G4IonPhysicsPHP" << G4endl;
100 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4IonPhysicsPHP::~G4IonPhysicsPHP ( )
virtual

Definition at line 103 of file G4IonPhysicsPHP.cc.

103  {
104  //Explictly setting pointers to zero is actually needed.
105  //These are static variables, in case we restart threads we need to re-create objects
106  delete modelAlphaPHP; modelAlphaPHP = 0;
107  delete modelHe3PHP; modelHe3PHP = 0;
108  delete modelTritonPHP; modelTritonPHP = 0;
109  delete modelDeuteronPHP; modelDeuteronPHP = 0;
110  delete theBuilder; theBuilder = 0;
111  delete theFTFP; theFTFP = 0;
112  delete theIonBC2; theIonBC2 = 0;
113  delete theIonBC1; theIonBC1 = 0;
114  delete theAlphaHPInelasticData; theAlphaHPInelasticData = 0;
115  delete theHe3HPInelasticData; theHe3HPInelasticData = 0;
116  delete theTritonHPInelasticData; theTritonHPInelasticData = 0;
117  delete theDeuteronHPInelasticData; theDeuteronHPInelasticData = 0;
118  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
119  delete theNuclNuclData; theNuclNuclData = 0;
120 }

Member Function Documentation

void G4IonPhysicsPHP::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 123 of file G4IonPhysicsPHP.cc.

123  {
124  // Construct ions
125  G4IonConstructor pConstructor;
126  pConstructor.ConstructParticle();
127 }
static void ConstructParticle()

Here is the call graph for this function:

void G4IonPhysicsPHP::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 130 of file G4IonPhysicsPHP.cc.

130  {
131  if ( wasActivated ) return;
132  wasActivated = true;
133 
134  const G4double maxPHP = 200.0*MeV;
135  const G4double overlapPHP_BIC = 10.0*MeV;
136  const G4double maxBIC = 4.0*GeV;
137  const G4double minFTF = 2.0* GeV;
138  const G4double maxFTF = 100.0*TeV;
139 
142  G4PreCompoundModel* thePreCompound = static_cast< G4PreCompoundModel* >(p);
143  if ( ! thePreCompound ) thePreCompound = new G4PreCompoundModel;
144 
145  // Binary Cascade
146  theIonBC1 = new G4BinaryLightIonReaction( thePreCompound );
147  theIonBC1->SetMinEnergy( 0.0 ); // Used for generic ions
148  theIonBC1->SetMaxEnergy( maxBIC );
149 
150  theIonBC2 = new G4BinaryLightIonReaction( thePreCompound );
151  theIonBC2->SetMinEnergy( maxPHP - overlapPHP_BIC ); // Used for d, t, He3, alpha
152  theIonBC2->SetMaxEnergy( maxBIC );
153 
154  // FTFP
155  theBuilder = new G4FTFBuilder( "FTFP", thePreCompound );
156  theFTFP = theBuilder->GetModel();
157  theFTFP->SetMinEnergy( minFTF );
158  theFTFP->SetMaxEnergy( maxFTF );
159 
160  theNuclNuclData =
161  new G4CrossSectionInelastic( theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc() );
162 
163  // ParticleHP : deuteron
164  modelDeuteronPHP = new G4ParticleHPInelastic( G4Deuteron::Deuteron(), "ParticleHPInelastic" );
165  modelDeuteronPHP->SetMinEnergy( 0.0 );
166  modelDeuteronPHP->SetMaxEnergy( maxPHP );
167  theDeuteronHPInelasticData = new G4ParticleHPInelasticData( G4Deuteron::Deuteron() );
168  theDeuteronHPInelasticData->SetMinKinEnergy( 0.0 );
169  theDeuteronHPInelasticData->SetMaxKinEnergy( maxPHP );
170 
171  // ParticleHP : triton
172  modelTritonPHP = new G4ParticleHPInelastic( G4Triton::Triton(), "ParticleHPInelastic" );
173  modelTritonPHP->SetMinEnergy( 0.0 );
174  modelTritonPHP->SetMaxEnergy( maxPHP );
175  theTritonHPInelasticData = new G4ParticleHPInelasticData( G4Triton::Triton() );
176  theTritonHPInelasticData->SetMinKinEnergy( 0.0 );
177  theTritonHPInelasticData->SetMaxKinEnergy( maxPHP );
178 
179  // ParticleHP : 3He
180  modelHe3PHP = new G4ParticleHPInelastic( G4He3::He3(), "ParticleHPInelastic" );
181  modelHe3PHP->SetMinEnergy( 0.0 );
182  modelHe3PHP->SetMaxEnergy( maxPHP );
183  theHe3HPInelasticData = new G4ParticleHPInelasticData( G4He3::He3() );
184  theHe3HPInelasticData->SetMinKinEnergy( 0.0 );
185  theHe3HPInelasticData->SetMaxKinEnergy( maxPHP );
186 
187  // ParticleHP : alpha
188  modelAlphaPHP = new G4ParticleHPInelastic( G4Alpha::Alpha(), "ParticleHPInelastic" );
189  modelAlphaPHP->SetMinEnergy( 0.0 );
190  modelAlphaPHP->SetMaxEnergy( maxPHP );
191  theAlphaHPInelasticData = new G4ParticleHPInelasticData( G4Alpha::Alpha() );
192  theAlphaHPInelasticData->SetMinKinEnergy( 0.0 );
193  theAlphaHPInelasticData->SetMaxKinEnergy( maxPHP );
194 
195  AddProcess( "dInelastic", G4Deuteron::Deuteron(), theDeuteronHPInelasticData, modelDeuteronPHP, theIonBC2, theFTFP );
196  AddProcess( "tInelastic", G4Triton::Triton(), theTritonHPInelasticData, modelTritonPHP, theIonBC2, theFTFP );
197  AddProcess( "He3Inelastic", G4He3::He3(), theHe3HPInelasticData, modelHe3PHP, theIonBC2, theFTFP );
198  AddProcess( "alphaInelastic", G4Alpha::Alpha(), theAlphaHPInelasticData, modelAlphaPHP, theIonBC2, theFTFP );
199  AddProcess( "ionInelastic", G4GenericIon::GenericIon(), 0, 0, theIonBC1, theFTFP );
200 
201  if ( verbose > 1 ) G4cout << "G4IonPhysicsPHP::ConstructProcess done! " << G4endl;
202 }
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
void SetMinKinEnergy(G4double value)
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
void SetMaxKinEnergy(G4double value)
static G4HadronicInteractionRegistry * Instance()
static constexpr double GeV
Definition: G4SIunits.hh:217
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
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: