Geant4  10.02.p03
G4IonQMDPhysics Class Reference

#include <G4IonQMDPhysics.hh>

Inheritance diagram for G4IonQMDPhysics:
Collaboration diagram for G4IonQMDPhysics:

Public Member Functions

 G4IonQMDPhysics (G4int verb=0)
 
 G4IonQMDPhysics (const G4String &name, G4int ver=0)
 
virtual ~G4IonQMDPhysics ()
 
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 *, G4BinaryLightIonReaction *, G4QMDReaction *, G4HadronicInteraction *)
 

Private Attributes

G4double eminBIC
 
G4double eminQMD
 
G4double emaxQMD
 
G4double emaxFTFP
 
G4double overlap
 
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 G4BinaryLightIonReaction * theIonBC = 0
 
static G4ThreadLocal G4HadronicInteractiontheFTFP = 0
 
static G4ThreadLocal G4FTFBuildertheBuilder = 0
 
static G4ThreadLocal G4QMDReactiontheQMD = 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 56 of file G4IonQMDPhysics.hh.

Constructor & Destructor Documentation

◆ G4IonQMDPhysics() [1/2]

G4IonQMDPhysics::G4IonQMDPhysics ( G4int  verb = 0)

Definition at line 90 of file G4IonQMDPhysics.cc.

91  : G4VPhysicsConstructor("IonQMD"), verbose(ver)
92 {
93  eminBIC = 0.*MeV;
94  eminQMD = 100.*MeV;
95  emaxQMD = 10.*GeV;
96  emaxFTFP = 1.*TeV;
97  overlap = 10*MeV;
99  if(verbose > 1) G4cout << "### G4IonQMDPhysics" << G4endl;
100 }
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:

◆ G4IonQMDPhysics() [2/2]

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

Definition at line 102 of file G4IonQMDPhysics.cc.

104  : G4VPhysicsConstructor(name), verbose(ver)
105 {
106  eminBIC = 0.*MeV;
107  eminQMD = 100.*MeV;
108  emaxQMD = 10.*GeV;
109  emaxFTFP = 1.*TeV;
110  overlap = 10*MeV;
112  if(verbose > 1) G4cout << "### G4IonQMDPhysics" << G4endl;
113 }
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:

◆ ~G4IonQMDPhysics()

G4IonQMDPhysics::~G4IonQMDPhysics ( )
virtual

Definition at line 115 of file G4IonQMDPhysics.cc.

116 {
117  if(wasActivated) {
118  delete theBuilder; theBuilder = 0;
119  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
120  delete theNuclNuclData; theNuclNuclData = 0;
121  G4int i;
122  if ( p_list ) {
123  G4int n = p_list->size();
124  for(i=0; i<n; i++) {delete (*p_list)[i];}
125  delete p_list; p_list = 0;
126  }
127  if ( model_list ) {
128  G4int n = model_list->size();
129  for(i=0; i<n; i++) {delete (*model_list)[i];}
130  delete model_list; model_list = 0;
131  }
132  }
133 }
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal std::vector< G4HadronicInteraction * > * model_list
int G4int
Definition: G4Types.hh:78
Char_t n[5]
static G4ThreadLocal G4bool wasActivated
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static G4ThreadLocal std::vector< G4HadronInelasticProcess * > * p_list
static G4ThreadLocal G4FTFBuilder * theBuilder

Member Function Documentation

◆ AddProcess()

void G4IonQMDPhysics::AddProcess ( const G4String name,
G4ParticleDefinition p,
G4BinaryLightIonReaction *  BIC,
G4QMDReaction QMD,
G4HadronicInteraction FTFP 
)
private

Definition at line 166 of file G4IonQMDPhysics.cc.

171 {
173  if ( p_list == 0 ) p_list = new std::vector<G4HadronInelasticProcess*>;
174  p_list->push_back(hadi);
175  G4ProcessManager* pManager = p->GetProcessManager();
176  pManager->AddDiscreteProcess(hadi);
177 
179 
180  BIC->SetMinEnergy(eminBIC);
181  BIC->SetMaxEnergy(emaxQMD); //reset when QMD is present
182  hadi->RegisterMe(BIC);
183 
184  if(QMD) {
185  QMD->SetMinEnergy(eminQMD);
186  BIC->SetMaxEnergy(eminQMD+overlap);
187  QMD->SetMaxEnergy(emaxQMD);
188  hadi->RegisterMe(QMD);
189  }
190 
191  if(FTFP) {
192  FTFP->SetMinEnergy(emaxQMD - overlap);
193  FTFP->SetMaxEnergy(emaxFTFP);
194  hadi->RegisterMe(FTFP);
195  }
196 
197  if(verbose > 1) {
198  G4cout << "Register " << hadi->GetProcessName()
199  << " for " << p->GetParticleName() << G4endl
200  << " Binary Cascade for E(MeV)= " << eminBIC << " - "
201  << (QMD==0 ? emaxQMD : (eminQMD-overlap)) ;
202  if(QMD) {
203  G4cout << G4endl <<" QMD for E(MeV)= " << eminQMD << " - " << emaxQMD;
204  }
205  if(FTFP) {
206  G4cout << G4endl<< " FTFP for E(MeV)= " << emaxQMD-overlap << " - " << emaxFTFP;
207  }
208  G4cout << G4endl;
209  }
210 }
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
static G4ThreadLocal std::vector< G4HadronInelasticProcess * > * p_list
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructParticle()

void G4IonQMDPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 212 of file G4IonQMDPhysics.cc.

213 {
214  // Construct light ions
215  G4IonConstructor pConstructor;
216  pConstructor.ConstructParticle();
217 }
static void ConstructParticle()
Here is the call graph for this function:

◆ ConstructProcess()

void G4IonQMDPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 135 of file G4IonQMDPhysics.cc.

136 {
137  if(wasActivated) return;
138  wasActivated = true;
139 
142  G4PreCompoundModel* thePreCompound = static_cast<G4PreCompoundModel*>(p);
143  if(!thePreCompound) { thePreCompound = new G4PreCompoundModel; }
144 
145  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
146  if ( model_list == 0 ) model_list = new std::vector<G4HadronicInteraction*>;
147  model_list->push_back(theIonBC);
148 
149  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
151  model_list->push_back(theFTFP);
152 
153  theQMD= new G4QMDReaction();
154  model_list->push_back(theQMD);
155 
157 
159  AddProcess("tInelastic", G4Triton::Triton(), theIonBC, theQMD, theFTFP);
160  AddProcess("He3Inelastic", G4He3::He3(), theIonBC, theQMD, theFTFP);
161  AddProcess("alphaInelastic", G4Alpha::Alpha(), theIonBC, theQMD, theFTFP);
163 
164 }
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
static G4ThreadLocal std::vector< G4HadronicInteraction * > * model_list
G4HadronicInteraction * GetModel()
static G4ThreadLocal G4bool wasActivated
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
G4HadronicInteraction * FindModel(const G4String &name)
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4HadronicInteractionRegistry * Instance()
static G4ThreadLocal G4FTFBuilder * theBuilder
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void AddProcess(const G4String &, G4ParticleDefinition *, G4BinaryLightIonReaction *, G4QMDReaction *, G4HadronicInteraction *)
static G4He3 * He3()
Definition: G4He3.cc:94
static G4ThreadLocal G4QMDReaction * theQMD
static G4ThreadLocal G4HadronicInteraction * theFTFP
Here is the call graph for this function:

Member Data Documentation

◆ emaxFTFP

G4double G4IonQMDPhysics::emaxFTFP
private

Definition at line 96 of file G4IonQMDPhysics.hh.

◆ emaxQMD

G4double G4IonQMDPhysics::emaxQMD
private

Definition at line 94 of file G4IonQMDPhysics.hh.

◆ eminBIC

G4double G4IonQMDPhysics::eminBIC
private

Definition at line 91 of file G4IonQMDPhysics.hh.

◆ eminQMD

G4double G4IonQMDPhysics::eminQMD
private

Definition at line 93 of file G4IonQMDPhysics.hh.

◆ model_list

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

Definition at line 81 of file G4IonQMDPhysics.hh.

◆ overlap

G4double G4IonQMDPhysics::overlap
private

Definition at line 98 of file G4IonQMDPhysics.hh.

◆ p_list

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

Definition at line 80 of file G4IonQMDPhysics.hh.

◆ theBuilder

G4ThreadLocal G4FTFBuilder * G4IonQMDPhysics::theBuilder = 0
staticprivate

Definition at line 88 of file G4IonQMDPhysics.hh.

◆ theFTFP

G4ThreadLocal G4HadronicInteraction * G4IonQMDPhysics::theFTFP = 0
staticprivate

Definition at line 87 of file G4IonQMDPhysics.hh.

◆ theGGNuclNuclXS

G4ThreadLocal G4VComponentCrossSection * G4IonQMDPhysics::theGGNuclNuclXS = 0
staticprivate

Definition at line 84 of file G4IonQMDPhysics.hh.

◆ theIonBC

G4ThreadLocal G4BinaryLightIonReaction * G4IonQMDPhysics::theIonBC = 0
staticprivate

Definition at line 86 of file G4IonQMDPhysics.hh.

◆ theNuclNuclData

G4ThreadLocal G4VCrossSectionDataSet * G4IonQMDPhysics::theNuclNuclData = 0
staticprivate

Definition at line 83 of file G4IonQMDPhysics.hh.

◆ theQMD

G4ThreadLocal G4QMDReaction * G4IonQMDPhysics::theQMD = 0
staticprivate

Definition at line 89 of file G4IonQMDPhysics.hh.

◆ verbose

G4int G4IonQMDPhysics::verbose
private

Definition at line 100 of file G4IonQMDPhysics.hh.

◆ wasActivated

G4ThreadLocal G4bool G4IonQMDPhysics::wasActivated = false
staticprivate

Definition at line 101 of file G4IonQMDPhysics.hh.


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