Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 

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::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 constexpr double TeV
Definition: G4SIunits.hh:218
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
static constexpr double GeV
Definition: G4SIunits.hh:217
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214

Here is the call graph for this function:

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 constexpr double TeV
Definition: G4SIunits.hh:218
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
static constexpr double GeV
Definition: G4SIunits.hh:217
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214

Here is the call graph for this function:

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 }
int G4int
Definition: G4Types.hh:78

Member Function Documentation

void G4IonQMDPhysics::ConstructParticle ( )
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:

void G4IonQMDPhysics::ConstructProcess ( )
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);
150  theFTFP = theBuilder->GetModel();
151  model_list->push_back(theFTFP);
152 
153  theQMD= new G4QMDReaction();
154  model_list->push_back(theQMD);
155 
156  theNuclNuclData = new G4CrossSectionInelastic( theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc() );
157 
158  AddProcess("dInelastic", G4Deuteron::Deuteron(), theIonBC, theQMD, theFTFP);
159  AddProcess("tInelastic", G4Triton::Triton(), theIonBC, theQMD, theFTFP);
160  AddProcess("He3Inelastic", G4He3::He3(), theIonBC, theQMD, theFTFP);
161  AddProcess("alphaInelastic", G4Alpha::Alpha(), theIonBC, theQMD, theFTFP);
162  AddProcess("ionInelastic", G4GenericIon::GenericIon(), theIonBC, theQMD, theFTFP);
163 
164 }
const char * p
Definition: xmltok.h:285
G4HadronicInteraction * GetModel()
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
static G4HadronicInteractionRegistry * Instance()
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
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: