Geant4  10.02.p03
G4IonINCLXXPhysics Class Reference

#include <G4IonINCLXXPhysics.hh>

Inheritance diagram for G4IonINCLXXPhysics:
Collaboration diagram for G4IonINCLXXPhysics:

Public Member Functions

 G4IonINCLXXPhysics (G4int ver=0)
 
 G4IonINCLXXPhysics (const G4String &name, G4int ver=0)
 
virtual ~G4IonINCLXXPhysics ()
 
virtual void ConstructParticle ()
 
virtual 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 *, G4HadronicInteraction *, G4HadronicInteraction *, const G4double)
 

Private Attributes

G4double emin
 
G4double emax_d
 
G4double emax_t
 
G4double emax_he3
 
G4double emax_alpha
 
G4double emax
 
G4double emaxFTFP
 
G4int verbose
 

Static Private Attributes

static G4ThreadLocal std::vector< G4HadronInelasticProcess * > * p_list = 0
 
static G4ThreadLocal std::vector< G4HadronicInteraction * > * model_list = 0
 
static G4ThreadLocal G4VCrossSectionDataSettheNuclNuclData = 0
 
static G4ThreadLocal G4VComponentCrossSectiontheGGNuclNuclXS = 0
 
static G4ThreadLocal G4INCLXXInterfacetheINCLXXDeuteron = 0
 
static G4ThreadLocal G4INCLXXInterfacetheINCLXXTriton = 0
 
static G4ThreadLocal G4INCLXXInterfacetheINCLXXHe3 = 0
 
static G4ThreadLocal G4INCLXXInterfacetheINCLXXAlpha = 0
 
static G4ThreadLocal G4INCLXXInterfacetheINCLXXIons = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFPDeuteron = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFPTriton = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFPHe3 = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFPAlpha = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFPIons = 0
 
static G4ThreadLocal G4FTFBuildertheFTFPBuilderDeuteron = 0
 
static G4ThreadLocal G4FTFBuildertheFTFPBuilderTriton = 0
 
static G4ThreadLocal G4FTFBuildertheFTFPBuilderHe3 = 0
 
static G4ThreadLocal G4FTFBuildertheFTFPBuilderAlpha = 0
 
static G4ThreadLocal G4FTFBuildertheFTFPBuilderIons = 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 54 of file G4IonINCLXXPhysics.hh.

Constructor & Destructor Documentation

◆ G4IonINCLXXPhysics() [1/2]

G4IonINCLXXPhysics::G4IonINCLXXPhysics ( G4int  ver = 0)

Definition at line 89 of file G4IonINCLXXPhysics.cc.

89  :
90  G4VPhysicsConstructor("IonINCLXX"),
91  verbose(ver)
92 {
93  // INCLXX light ion maximum energy is 3.0 GeV/nucleon
94  emax_d = 2 * 3.0 * GeV;
95  emax_t = 3 * 3.0 * GeV;
96  emax_he3 = 3 * 3.0 * GeV;
97  emax_alpha = 4 * 3.0 * GeV;
98  emax = 18 * 3.0 * GeV;
99  emaxFTFP = 1.*TeV;
100  emin = 0.*MeV;
102  if(verbose > 1) G4cout << "### G4IonINCLXXPhysics" << G4endl;
103 }
static const double MeV
Definition: G4SIunits.hh:211
G4GLOB_DLL std::ostream G4cout
static const double GeV
Definition: G4SIunits.hh:214
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
static const double TeV
Definition: G4SIunits.hh:215
Here is the call graph for this function:

◆ G4IonINCLXXPhysics() [2/2]

G4IonINCLXXPhysics::G4IonINCLXXPhysics ( const G4String name,
G4int  ver = 0 
)

Definition at line 105 of file G4IonINCLXXPhysics.cc.

107  : G4VPhysicsConstructor(name),
108  verbose(ver)
109 {
110  // INCLXX light ion maximum energy is 3.0 GeV/nucleon
111  emax_d = 2 * 3.0 * GeV;
112  emax_t = 3 * 3.0 * GeV;
113  emax_he3 = 3 * 3.0 * GeV;
114  emax_alpha = 4 * 3.0 * GeV;
115  emax = 18 * 3.0 * GeV;
116  emaxFTFP = 1.*TeV;
117  emin = 0.*MeV;
119  if(verbose > 1) G4cout << "### G4IonINCLXXPhysics" << G4endl;
120 }
static const double MeV
Definition: G4SIunits.hh:211
G4GLOB_DLL std::ostream G4cout
static const double GeV
Definition: G4SIunits.hh:214
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
static const double TeV
Definition: G4SIunits.hh:215
Here is the call graph for this function:

◆ ~G4IonINCLXXPhysics()

G4IonINCLXXPhysics::~G4IonINCLXXPhysics ( )
virtual

Definition at line 122 of file G4IonINCLXXPhysics.cc.

123 {
124  //For MT need to explicitly set back pointers to zero:
125  //variables are static and if new threads are created we can have problems
126  //since variable is still pointing old value
127  if(wasActivated) {
135  G4int i;
136  if ( p_list ) {
137  G4int n = p_list->size();
138  for(i=0; i<n; i++) {delete (*p_list)[i];}
139  delete p_list; p_list = 0;
140  }
141  if ( model_list) {
142  G4int n = model_list->size();
143  for(i=0; i<n; i++) { delete (*model_list)[i];}
144  delete model_list; model_list = 0;
145  }
146  }
147 }
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderAlpha
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal G4bool wasActivated
int G4int
Definition: G4Types.hh:78
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderIons
Char_t n[5]
static G4ThreadLocal std::vector< G4HadronicInteraction * > * model_list
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderDeuteron
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderHe3
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderTriton
static G4ThreadLocal std::vector< G4HadronInelasticProcess * > * p_list

Member Function Documentation

◆ AddProcess()

void G4IonINCLXXPhysics::AddProcess ( const G4String name,
G4ParticleDefinition p,
G4HadronicInteraction hmodel,
G4HadronicInteraction lmodel,
const G4double  inclxxEnergyUpperLimit = 3.0 * GeV 
)
private

Definition at line 196 of file G4IonINCLXXPhysics.cc.

201 {
203  if ( p_list == 0 ) p_list = new std::vector<G4HadronInelasticProcess*>;
204  p_list->push_back(hadi);
205  G4ProcessManager* pManager = p->GetProcessManager();
206  pManager->AddDiscreteProcess(hadi);
207  hadi->AddDataSet(theNuclNuclData);
208  hmodel->SetMinEnergy(emin);
209  hmodel->SetMaxEnergy(inclxxEnergyUpperLimit);
210  hadi->RegisterMe(hmodel);
211  if(lmodel) {
212  lmodel->SetMinEnergy(inclxxEnergyUpperLimit - 100*MeV);
213  lmodel->SetMaxEnergy(emaxFTFP);
214  hadi->RegisterMe(lmodel);
215  }
216  if(verbose > 1) {
217  G4cout << "Register " << hadi->GetProcessName()
218  << " for " << p->GetParticleName()
219  << " INCLXX/G4DeexcitationHandler for E(MeV)= " << emin << " - " << inclxxEnergyUpperLimit;
220  if(lmodel) {
221  G4cout << " FTFP for E(MeV)= " << inclxxEnergyUpperLimit-MeV << " - " << emaxFTFP;
222  }
223  G4cout << G4endl;
224  }
225 }
static const double MeV
Definition: G4SIunits.hh:211
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static G4ThreadLocal std::vector< G4HadronInelasticProcess * > * p_list
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructParticle()

void G4IonINCLXXPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 227 of file G4IonINCLXXPhysics.cc.

228 {
229  // Construct light ions
230  G4IonConstructor pConstructor;
231  pConstructor.ConstructParticle();
232 }
static void ConstructParticle()
Here is the call graph for this function:

◆ ConstructProcess()

void G4IonINCLXXPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 149 of file G4IonINCLXXPhysics.cc.

150 {
151  if(wasActivated) return;
152  wasActivated = true;
153 
159  if ( model_list == 0 ) model_list = new std::vector<G4HadronicInteraction*>;
160  model_list->push_back(theINCLXXDeuteron);
161  model_list->push_back(theINCLXXTriton);
162  model_list->push_back(theINCLXXHe3);
163  model_list->push_back(theINCLXXAlpha);
164  model_list->push_back(theINCLXXIons);
165 
168  G4PreCompoundModel* thePreCompound = static_cast<G4PreCompoundModel*>(p);
169  if(!thePreCompound) { thePreCompound = new G4PreCompoundModel; }
170 
171  theFTFPBuilderDeuteron = new G4FTFBuilder("FTFP",thePreCompound);
173  theFTFPBuilderTriton = new G4FTFBuilder("FTFP",thePreCompound);
175  theFTFPBuilderHe3 = new G4FTFBuilder("FTFP",thePreCompound);
177  theFTFPBuilderAlpha = new G4FTFBuilder("FTFP",thePreCompound);
179  theFTFPBuilderIons = new G4FTFBuilder("FTFP",thePreCompound);
181  model_list->push_back(theFTFPDeuteron);
182  model_list->push_back(theFTFPTriton);
183  model_list->push_back(theFTFPHe3);
184  model_list->push_back(theFTFPAlpha);
185  model_list->push_back(theFTFPIons);
186 
188 
191  AddProcess("He3Inelastic", G4He3::He3(), theINCLXXHe3, theFTFPHe3, emax_he3);
194 }
static G4ThreadLocal G4HadronicInteraction * theFTFPHe3
static G4ThreadLocal G4INCLXXInterface * theINCLXXIons
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderAlpha
static G4ThreadLocal G4INCLXXInterface * theINCLXXDeuteron
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static G4ThreadLocal G4INCLXXInterface * theINCLXXHe3
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal G4bool wasActivated
static G4ThreadLocal G4INCLXXInterface * theINCLXXTriton
INCL++ intra-nuclear cascade.
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderIons
G4HadronicInteraction * GetModel()
static G4ThreadLocal std::vector< G4HadronicInteraction * > * model_list
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4ThreadLocal G4HadronicInteraction * theFTFPIons
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
G4HadronicInteraction * FindModel(const G4String &name)
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderDeuteron
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4ThreadLocal G4INCLXXInterface * theINCLXXAlpha
static G4HadronicInteractionRegistry * Instance()
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderHe3
static G4ThreadLocal G4HadronicInteraction * theFTFPDeuteron
static G4ThreadLocal G4FTFBuilder * theFTFPBuilderTriton
static G4ThreadLocal G4HadronicInteraction * theFTFPTriton
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4ThreadLocal G4HadronicInteraction * theFTFPAlpha
static G4He3 * He3()
Definition: G4He3.cc:94
void AddProcess(const G4String &, G4ParticleDefinition *, G4HadronicInteraction *, G4HadronicInteraction *, const G4double)
Here is the call graph for this function:

Member Data Documentation

◆ emax

G4double G4IonINCLXXPhysics::emax
private

Definition at line 101 of file G4IonINCLXXPhysics.hh.

◆ emax_alpha

G4double G4IonINCLXXPhysics::emax_alpha
private

Definition at line 100 of file G4IonINCLXXPhysics.hh.

◆ emax_d

G4double G4IonINCLXXPhysics::emax_d
private

Definition at line 100 of file G4IonINCLXXPhysics.hh.

◆ emax_he3

G4double G4IonINCLXXPhysics::emax_he3
private

Definition at line 100 of file G4IonINCLXXPhysics.hh.

◆ emax_t

G4double G4IonINCLXXPhysics::emax_t
private

Definition at line 100 of file G4IonINCLXXPhysics.hh.

◆ emaxFTFP

G4double G4IonINCLXXPhysics::emaxFTFP
private

Definition at line 102 of file G4IonINCLXXPhysics.hh.

◆ emin

G4double G4IonINCLXXPhysics::emin
private

Definition at line 99 of file G4IonINCLXXPhysics.hh.

◆ model_list

G4ThreadLocal std::vector< G4HadronicInteraction * > * G4IonINCLXXPhysics::model_list = 0
staticprivate

Definition at line 78 of file G4IonINCLXXPhysics.hh.

◆ p_list

G4ThreadLocal std::vector< G4HadronInelasticProcess * > * G4IonINCLXXPhysics::p_list = 0
staticprivate

Definition at line 77 of file G4IonINCLXXPhysics.hh.

◆ theFTFPAlpha

G4ThreadLocal G4HadronicInteraction * G4IonINCLXXPhysics::theFTFPAlpha = 0
staticprivate

Definition at line 91 of file G4IonINCLXXPhysics.hh.

◆ theFTFPBuilderAlpha

G4ThreadLocal G4FTFBuilder * G4IonINCLXXPhysics::theFTFPBuilderAlpha = 0
staticprivate

Definition at line 96 of file G4IonINCLXXPhysics.hh.

◆ theFTFPBuilderDeuteron

G4ThreadLocal G4FTFBuilder * G4IonINCLXXPhysics::theFTFPBuilderDeuteron = 0
staticprivate

Definition at line 93 of file G4IonINCLXXPhysics.hh.

◆ theFTFPBuilderHe3

G4ThreadLocal G4FTFBuilder * G4IonINCLXXPhysics::theFTFPBuilderHe3 = 0
staticprivate

Definition at line 95 of file G4IonINCLXXPhysics.hh.

◆ theFTFPBuilderIons

G4ThreadLocal G4FTFBuilder * G4IonINCLXXPhysics::theFTFPBuilderIons = 0
staticprivate

Definition at line 97 of file G4IonINCLXXPhysics.hh.

◆ theFTFPBuilderTriton

G4ThreadLocal G4FTFBuilder * G4IonINCLXXPhysics::theFTFPBuilderTriton = 0
staticprivate

Definition at line 94 of file G4IonINCLXXPhysics.hh.

◆ theFTFPDeuteron

G4ThreadLocal G4HadronicInteraction * G4IonINCLXXPhysics::theFTFPDeuteron = 0
staticprivate

Definition at line 88 of file G4IonINCLXXPhysics.hh.

◆ theFTFPHe3

G4ThreadLocal G4HadronicInteraction * G4IonINCLXXPhysics::theFTFPHe3 = 0
staticprivate

Definition at line 90 of file G4IonINCLXXPhysics.hh.

◆ theFTFPIons

G4ThreadLocal G4HadronicInteraction * G4IonINCLXXPhysics::theFTFPIons = 0
staticprivate

Definition at line 92 of file G4IonINCLXXPhysics.hh.

◆ theFTFPTriton

G4ThreadLocal G4HadronicInteraction * G4IonINCLXXPhysics::theFTFPTriton = 0
staticprivate

Definition at line 89 of file G4IonINCLXXPhysics.hh.

◆ theGGNuclNuclXS

G4ThreadLocal G4VComponentCrossSection * G4IonINCLXXPhysics::theGGNuclNuclXS = 0
staticprivate

Definition at line 81 of file G4IonINCLXXPhysics.hh.

◆ theINCLXXAlpha

G4ThreadLocal G4INCLXXInterface * G4IonINCLXXPhysics::theINCLXXAlpha = 0
staticprivate

Definition at line 86 of file G4IonINCLXXPhysics.hh.

◆ theINCLXXDeuteron

G4ThreadLocal G4INCLXXInterface * G4IonINCLXXPhysics::theINCLXXDeuteron = 0
staticprivate

Definition at line 83 of file G4IonINCLXXPhysics.hh.

◆ theINCLXXHe3

G4ThreadLocal G4INCLXXInterface * G4IonINCLXXPhysics::theINCLXXHe3 = 0
staticprivate

Definition at line 85 of file G4IonINCLXXPhysics.hh.

◆ theINCLXXIons

G4ThreadLocal G4INCLXXInterface * G4IonINCLXXPhysics::theINCLXXIons = 0
staticprivate

Definition at line 87 of file G4IonINCLXXPhysics.hh.

◆ theINCLXXTriton

G4ThreadLocal G4INCLXXInterface * G4IonINCLXXPhysics::theINCLXXTriton = 0
staticprivate

Definition at line 84 of file G4IonINCLXXPhysics.hh.

◆ theNuclNuclData

G4ThreadLocal G4VCrossSectionDataSet * G4IonINCLXXPhysics::theNuclNuclData = 0
staticprivate

Definition at line 80 of file G4IonINCLXXPhysics.hh.

◆ verbose

G4int G4IonINCLXXPhysics::verbose
private

Definition at line 104 of file G4IonINCLXXPhysics.hh.

◆ wasActivated

G4ThreadLocal G4bool G4IonINCLXXPhysics::wasActivated = false
staticprivate

Definition at line 105 of file G4IonINCLXXPhysics.hh.


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