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

Private Member Functions

void AddProcess (const G4String &, G4ParticleDefinition *, G4bool isIon)
 

Private Attributes

G4int verbose
 

Static Private Attributes

static G4ThreadLocal G4VCrossSectionDataSettheNuclNuclData = 0
 
static G4ThreadLocal G4VComponentCrossSectiontheGGNuclNuclXS = 0
 
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFP = 0
 
static G4ThreadLocal G4FTFBuildertheBuilder
 
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 40 of file ExExChIonPhysics.hh.

Constructor & Destructor Documentation

◆ ExExChIonPhysics() [1/2]

ExExChIonPhysics::ExExChIonPhysics ( G4int  ver = 0)

Definition at line 71 of file ExExChIonPhysics.cc.

72 : G4VPhysicsConstructor("ionInelasticFTFP_BIC"),verbose(ver)
73 {
75  if(verbose > 1) { G4cout << "### ExExChIonPhysics" << G4endl; }
76 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:

◆ ExExChIonPhysics() [2/2]

ExExChIonPhysics::ExExChIonPhysics ( const G4String nname)

Definition at line 80 of file ExExChIonPhysics.cc.

82 {
84  if(verbose > 1) { G4cout << "### ExExChIonPhysics" << G4endl; }
85 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:

◆ ~ExExChIonPhysics()

ExExChIonPhysics::~ExExChIonPhysics ( )
virtual

Definition at line 89 of file ExExChIonPhysics.cc.

90 {
91  //Explictly setting pointers to zero is actually needed.
92  //These are static variables, in case we restart threads
93  //we need to re-create objects
94  delete theBuilder; theBuilder = 0;
95  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
96  delete theNuclNuclData; theNuclNuclData = 0;
97  delete theIonBC; theIonBC = 0;
98  delete theFTFP; theFTFP = 0;
99 }
static G4ThreadLocal G4FTFBuilder * theBuilder
static G4ThreadLocal G4HadronicInteraction * theFTFP
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC

Member Function Documentation

◆ AddProcess()

void ExExChIonPhysics::AddProcess ( const G4String name,
G4ParticleDefinition part,
G4bool  isIon 
)
private

Definition at line 150 of file ExExChIonPhysics.cc.

153 {
154  G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, part);
155  G4ProcessManager* pManager = part->GetProcessManager();
156 
157 
159 
160  hadi->RegisterMe(theIonBC);
161  hadi->RegisterMe(theFTFP);
162 
163  XWrapperDiscreteProcess* hadi_wrapper = new XWrapperDiscreteProcess();
164  hadi_wrapper->RegisterProcess(hadi,1);
165  pManager->AddDiscreteProcess(hadi_wrapper);
166 
167 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4HadronicInteraction *a)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4ThreadLocal G4HadronicInteraction * theFTFP
void RegisterProcess(G4VDiscreteProcess *)
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructParticle()

void ExExChIonPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 103 of file ExExChIonPhysics.cc.

104 {
105  // Construct ions
106  G4IonConstructor pConstructor;
107  pConstructor.ConstructParticle();
108 }
static void ConstructParticle()
Here is the call graph for this function:

◆ ConstructProcess()

void ExExChIonPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 112 of file ExExChIonPhysics.cc.

113 {
114  if(wasActivated) { return; }
115  wasActivated = true;
116 
117  G4double emax = 100.*TeV;
118 
119  G4ExcitationHandler* handler = new G4ExcitationHandler();
120  G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(handler);
121 
122  // Binary Cascade
123  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
124  theIonBC->SetMinEnergy(0.0);
125  theIonBC->SetMaxEnergy(4*GeV);
126 
127  // FTFP
128  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
131  theFTFP->SetMaxEnergy(emax);
132 
135 
136  AddProcess("dInelastic", G4Deuteron::Deuteron(),false);
137  AddProcess("tInelastic",G4Triton::Triton(),false);
138  AddProcess("He3Inelastic",G4He3::He3(),true);
139  AddProcess("alphaInelastic", G4Alpha::Alpha(),true);
140  AddProcess("ionInelastic",G4GenericIon::GenericIon(),true);
141 
142  if(verbose > 1) {
143  G4cout << "ExExChIonPhysics::ConstructProcess done! "
144  << G4endl;
145  }
146 }
static G4ThreadLocal G4FTFBuilder * theBuilder
G4HadronicInteraction * GetModel()
void SetMinEnergy(G4double anEnergy)
G4GLOB_DLL std::ostream G4cout
void AddProcess(const G4String &, G4ParticleDefinition *, G4bool isIon)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static const double GeV
Definition: G4SIunits.hh:214
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static const G4double emax
static G4ThreadLocal G4bool wasActivated
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4ThreadLocal G4HadronicInteraction * theFTFP
void SetMaxEnergy(const G4double anEnergy)
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
#define G4endl
Definition: G4ios.hh:61
static const double TeV
Definition: G4SIunits.hh:215
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
double G4double
Definition: G4Types.hh:76
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC
static G4He3 * He3()
Definition: G4He3.cc:94
Here is the call graph for this function:

Member Data Documentation

◆ theBuilder

G4ThreadLocal G4FTFBuilder * ExExChIonPhysics::theBuilder
staticprivate

Definition at line 63 of file ExExChIonPhysics.hh.

◆ theFTFP

G4ThreadLocal G4HadronicInteraction * ExExChIonPhysics::theFTFP = 0
staticprivate

Definition at line 62 of file ExExChIonPhysics.hh.

◆ theGGNuclNuclXS

G4ThreadLocal G4VComponentCrossSection * ExExChIonPhysics::theGGNuclNuclXS = 0
staticprivate

Definition at line 59 of file ExExChIonPhysics.hh.

◆ theIonBC

G4ThreadLocal G4BinaryLightIonReaction * ExExChIonPhysics::theIonBC = 0
staticprivate

Definition at line 61 of file ExExChIonPhysics.hh.

◆ theNuclNuclData

G4ThreadLocal G4VCrossSectionDataSet * ExExChIonPhysics::theNuclNuclData = 0
staticprivate

Definition at line 58 of file ExExChIonPhysics.hh.

◆ verbose

G4int ExExChIonPhysics::verbose
private

Definition at line 65 of file ExExChIonPhysics.hh.

◆ wasActivated

G4ThreadLocal G4bool ExExChIonPhysics::wasActivated = false
staticprivate

Definition at line 66 of file ExExChIonPhysics.hh.


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