Geant4  10.02.p03
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
 

Private Member Functions

void AddProcess (const G4String &, G4ParticleDefinition *, G4ParticleHPInelasticData *, G4HadronicInteraction *, G4BinaryLightIonReaction *, G4HadronicInteraction *)
 

Private Attributes

G4int verbose
 

Static Private Attributes

static G4ThreadLocal G4VCrossSectionDataSettheNuclNuclData = 0
 
static G4ThreadLocal G4VComponentCrossSectiontheGGNuclNuclXS = 0
 
static G4ThreadLocal G4ParticleHPInelasticDatatheDeuteronHPInelasticData = 0
 
static G4ThreadLocal G4ParticleHPInelasticDatatheTritonHPInelasticData = 0
 
static G4ThreadLocal G4ParticleHPInelasticDatatheHe3HPInelasticData = 0
 
static G4ThreadLocal G4ParticleHPInelasticDatatheAlphaHPInelasticData = 0
 
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC1 = 0
 
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC2 = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFP = 0
 
static G4ThreadLocal G4FTFBuildertheBuilder = 0
 
static G4ThreadLocal G4HadronicInteractionmodelDeuteronPHP = 0
 
static G4ThreadLocal G4HadronicInteractionmodelTritonPHP = 0
 
static G4ThreadLocal G4HadronicInteractionmodelHe3PHP = 0
 
static G4ThreadLocal G4HadronicInteractionmodelAlphaPHP = 0
 
static G4ThreadLocal G4bool wasActivated = false
 

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() [1/2]

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() [2/2]

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::~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;
110  delete theBuilder; theBuilder = 0;
111  delete theFTFP; theFTFP = 0;
112  delete theIonBC2; theIonBC2 = 0;
113  delete theIonBC1; theIonBC1 = 0;
118  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
119  delete theNuclNuclData; theNuclNuclData = 0;
120 }
static G4ThreadLocal G4HadronicInteraction * modelAlphaPHP
static G4ThreadLocal G4ParticleHPInelasticData * theAlphaHPInelasticData
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC1
static G4ThreadLocal G4ParticleHPInelasticData * theDeuteronHPInelasticData
static G4ThreadLocal G4HadronicInteraction * theFTFP
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal G4ParticleHPInelasticData * theTritonHPInelasticData
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC2
static G4ThreadLocal G4HadronicInteraction * modelTritonPHP
static G4ThreadLocal G4HadronicInteraction * modelHe3PHP
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static G4ThreadLocal G4FTFBuilder * theBuilder
static G4ThreadLocal G4ParticleHPInelasticData * theHe3HPInelasticData
static G4ThreadLocal G4HadronicInteraction * modelDeuteronPHP

Member Function Documentation

◆ AddProcess()

void G4IonPhysicsPHP::AddProcess ( const G4String name,
G4ParticleDefinition part,
G4ParticleHPInelasticData xsecPHP,
G4HadronicInteraction aPHP,
G4BinaryLightIonReaction *  aBIC,
G4HadronicInteraction aFTFP 
)
private

Definition at line 205 of file G4IonPhysicsPHP.cc.

208  {
209  G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess( name, part );
210  G4ProcessManager* pManager = part->GetProcessManager();
211  pManager->AddDiscreteProcess( hadi );
212  hadi->AddDataSet( theNuclNuclData );
213  if ( aPHP ) {
214  hadi->RegisterMe( aPHP );
215  if ( xsecPHP ) {
216  hadi->AddDataSet( xsecPHP );
217  }
218  }
219  hadi->RegisterMe( aBIC );
220  hadi->RegisterMe( aFTFP );
221 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
void RegisterMe(G4HadronicInteraction *a)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructParticle()

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:

◆ ConstructProcess()

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 );
157  theFTFP->SetMinEnergy( minFTF );
158  theFTFP->SetMaxEnergy( maxFTF );
159 
160  theNuclNuclData =
162 
163  // ParticleHP : deuteron
164  modelDeuteronPHP = new G4ParticleHPInelastic( G4Deuteron::Deuteron(), "ParticleHPInelastic" );
166  modelDeuteronPHP->SetMaxEnergy( maxPHP );
170 
171  // ParticleHP : triton
172  modelTritonPHP = new G4ParticleHPInelastic( G4Triton::Triton(), "ParticleHPInelastic" );
174  modelTritonPHP->SetMaxEnergy( maxPHP );
178 
179  // ParticleHP : 3He
180  modelHe3PHP = new G4ParticleHPInelastic( G4He3::He3(), "ParticleHPInelastic" );
181  modelHe3PHP->SetMinEnergy( 0.0 );
182  modelHe3PHP->SetMaxEnergy( maxPHP );
186 
187  // ParticleHP : alpha
188  modelAlphaPHP = new G4ParticleHPInelastic( G4Alpha::Alpha(), "ParticleHPInelastic" );
189  modelAlphaPHP->SetMinEnergy( 0.0 );
190  modelAlphaPHP->SetMaxEnergy( maxPHP );
194 
199  AddProcess( "ionInelastic", G4GenericIon::GenericIon(), 0, 0, theIonBC1, theFTFP );
200 
201  if ( verbose > 1 ) G4cout << "G4IonPhysicsPHP::ConstructProcess done! " << G4endl;
202 }
static const double MeV
Definition: G4SIunits.hh:211
static G4ThreadLocal G4HadronicInteraction * modelAlphaPHP
static G4ThreadLocal G4ParticleHPInelasticData * theAlphaHPInelasticData
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC1
static G4ThreadLocal G4ParticleHPInelasticData * theDeuteronHPInelasticData
static G4ThreadLocal G4HadronicInteraction * theFTFP
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
G4HadronicInteraction * GetModel()
static G4ThreadLocal G4ParticleHPInelasticData * theTritonHPInelasticData
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC2
void SetMinEnergy(G4double anEnergy)
static G4ThreadLocal G4HadronicInteraction * modelTritonPHP
G4GLOB_DLL std::ostream G4cout
void SetMinKinEnergy(G4double value)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static const double GeV
Definition: G4SIunits.hh:214
void AddProcess(const G4String &, G4ParticleDefinition *, G4ParticleHPInelasticData *, G4HadronicInteraction *, G4BinaryLightIonReaction *, G4HadronicInteraction *)
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4ThreadLocal G4HadronicInteraction * modelHe3PHP
G4HadronicInteraction * FindModel(const G4String &name)
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
void SetMaxKinEnergy(G4double value)
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static G4HadronicInteractionRegistry * Instance()
static G4ThreadLocal G4bool wasActivated
void SetMaxEnergy(const G4double anEnergy)
static G4ThreadLocal G4FTFBuilder * theBuilder
#define G4endl
Definition: G4ios.hh:61
static const double TeV
Definition: G4SIunits.hh:215
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
double G4double
Definition: G4Types.hh:76
static G4ThreadLocal G4ParticleHPInelasticData * theHe3HPInelasticData
static G4He3 * He3()
Definition: G4He3.cc:94
static G4ThreadLocal G4HadronicInteraction * modelDeuteronPHP
Here is the call graph for this function:

Member Data Documentation

◆ modelAlphaPHP

G4ThreadLocal G4HadronicInteraction * G4IonPhysicsPHP::modelAlphaPHP = 0
staticprivate

Definition at line 91 of file G4IonPhysicsPHP.hh.

◆ modelDeuteronPHP

G4ThreadLocal G4HadronicInteraction * G4IonPhysicsPHP::modelDeuteronPHP = 0
staticprivate

Definition at line 88 of file G4IonPhysicsPHP.hh.

◆ modelHe3PHP

G4ThreadLocal G4HadronicInteraction * G4IonPhysicsPHP::modelHe3PHP = 0
staticprivate

Definition at line 90 of file G4IonPhysicsPHP.hh.

◆ modelTritonPHP

G4ThreadLocal G4HadronicInteraction * G4IonPhysicsPHP::modelTritonPHP = 0
staticprivate

Definition at line 89 of file G4IonPhysicsPHP.hh.

◆ theAlphaHPInelasticData

G4ThreadLocal G4ParticleHPInelasticData * G4IonPhysicsPHP::theAlphaHPInelasticData = 0
staticprivate

Definition at line 82 of file G4IonPhysicsPHP.hh.

◆ theBuilder

G4ThreadLocal G4FTFBuilder * G4IonPhysicsPHP::theBuilder = 0
staticprivate

Definition at line 87 of file G4IonPhysicsPHP.hh.

◆ theDeuteronHPInelasticData

G4ThreadLocal G4ParticleHPInelasticData * G4IonPhysicsPHP::theDeuteronHPInelasticData = 0
staticprivate

Definition at line 79 of file G4IonPhysicsPHP.hh.

◆ theFTFP

G4ThreadLocal G4HadronicInteraction * G4IonPhysicsPHP::theFTFP = 0
staticprivate

Definition at line 86 of file G4IonPhysicsPHP.hh.

◆ theGGNuclNuclXS

G4ThreadLocal G4VComponentCrossSection * G4IonPhysicsPHP::theGGNuclNuclXS = 0
staticprivate

Definition at line 78 of file G4IonPhysicsPHP.hh.

◆ theHe3HPInelasticData

G4ThreadLocal G4ParticleHPInelasticData * G4IonPhysicsPHP::theHe3HPInelasticData = 0
staticprivate

Definition at line 81 of file G4IonPhysicsPHP.hh.

◆ theIonBC1

G4ThreadLocal G4BinaryLightIonReaction * G4IonPhysicsPHP::theIonBC1 = 0
staticprivate

Definition at line 84 of file G4IonPhysicsPHP.hh.

◆ theIonBC2

G4ThreadLocal G4BinaryLightIonReaction * G4IonPhysicsPHP::theIonBC2 = 0
staticprivate

Definition at line 85 of file G4IonPhysicsPHP.hh.

◆ theNuclNuclData

G4ThreadLocal G4VCrossSectionDataSet * G4IonPhysicsPHP::theNuclNuclData = 0
staticprivate

Definition at line 77 of file G4IonPhysicsPHP.hh.

◆ theTritonHPInelasticData

G4ThreadLocal G4ParticleHPInelasticData * G4IonPhysicsPHP::theTritonHPInelasticData = 0
staticprivate

Definition at line 80 of file G4IonPhysicsPHP.hh.

◆ verbose

G4int G4IonPhysicsPHP::verbose
private

Definition at line 93 of file G4IonPhysicsPHP.hh.

◆ wasActivated

G4ThreadLocal G4bool G4IonPhysicsPHP::wasActivated = false
staticprivate

Definition at line 94 of file G4IonPhysicsPHP.hh.


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