Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4IonQMDPhysics Class Reference

#include <G4IonQMDPhysics.hh>

Inheritance diagram for G4IonQMDPhysics:
G4VPhysicsConstructor

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)
 
- 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 89 of file G4IonQMDPhysics.cc.

References bIons, G4cout, G4endl, python.hepunit::GeV, python.hepunit::MeV, G4VPhysicsConstructor::SetPhysicsType(), and python.hepunit::TeV.

90  : G4VPhysicsConstructor("IonQMD"), verbose(ver)
91 {
92  eminBIC = 0.*MeV;
93  eminQMD = 100.*MeV;
94  emaxQMD = 10.*GeV;
95  emaxFTFP = 1.*TeV;
96  overlap = 10*MeV;
98  if(verbose > 1) G4cout << "### G4IonQMDPhysics" << G4endl;
99 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
G4IonQMDPhysics::G4IonQMDPhysics ( const G4String name,
G4int  ver = 0 
)

Definition at line 101 of file G4IonQMDPhysics.cc.

References bIons, G4cout, G4endl, python.hepunit::GeV, python.hepunit::MeV, G4VPhysicsConstructor::SetPhysicsType(), and python.hepunit::TeV.

103  : G4VPhysicsConstructor(name), verbose(ver)
104 {
105  eminBIC = 0.*MeV;
106  eminQMD = 100.*MeV;
107  emaxQMD = 10.*GeV;
108  emaxFTFP = 1.*TeV;
109  overlap = 10*MeV;
111  if(verbose > 1) G4cout << "### G4IonQMDPhysics" << G4endl;
112 }
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61
G4IonQMDPhysics::~G4IonQMDPhysics ( )
virtual

Definition at line 114 of file G4IonQMDPhysics.cc.

References n.

115 {
116  if(wasActivated) {
117  delete theBuilder; theBuilder = 0;
118  delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
119  delete theNuclNuclData; theNuclNuclData = 0;
120  G4int i;
121  if ( p_list ) {
122  G4int n = p_list->size();
123  for(i=0; i<n; i++) {delete (*p_list)[i];}
124  delete p_list; p_list = 0;
125  }
126  if ( model_list ) {
127  G4int n = model_list->size();
128  for(i=0; i<n; i++) {delete (*model_list)[i];}
129  delete model_list; model_list = 0;
130  }
131  }
132 }
int G4int
Definition: G4Types.hh:78
const G4int n

Member Function Documentation

void G4IonQMDPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 209 of file G4IonQMDPhysics.cc.

References G4IonConstructor::ConstructParticle().

210 {
211  // Construct light ions
212  G4IonConstructor pConstructor;
213  pConstructor.ConstructParticle();
214 }
static void ConstructParticle()
void G4IonQMDPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 134 of file G4IonQMDPhysics.cc.

References G4Alpha::Alpha(), G4Deuteron::Deuteron(), G4GenericIon::GenericIon(), G4VHadronModelBuilder::GetModel(), G4He3::He3(), and G4Triton::Triton().

135 {
136  if(wasActivated) return;
137  wasActivated = true;
138 
139  G4ExcitationHandler* handler = new G4ExcitationHandler();
140  G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(handler);
141 
142  theIonBC = new G4BinaryLightIonReaction(thePreCompound);
143  if ( model_list == 0 ) model_list = new std::vector<G4HadronicInteraction*>;
144  model_list->push_back(theIonBC);
145 
146  theBuilder = new G4FTFBuilder("FTFP",thePreCompound);
147  theFTFP = theBuilder->GetModel();
148  model_list->push_back(theFTFP);
149 
150  theQMD= new G4QMDReaction();
151  model_list->push_back(theQMD);
152 
153  theNuclNuclData = new G4CrossSectionInelastic( theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc() );
154 
155  AddProcess("dInelastic", G4Deuteron::Deuteron(), theIonBC, theQMD, theFTFP);
156  AddProcess("tInelastic", G4Triton::Triton(), theIonBC, theQMD, theFTFP);
157  AddProcess("He3Inelastic", G4He3::He3(), theIonBC, theQMD, theFTFP);
158  AddProcess("alphaInelastic", G4Alpha::Alpha(), theIonBC, theQMD, theFTFP);
159  AddProcess("ionInelastic", G4GenericIon::GenericIon(), theIonBC, theQMD, theFTFP);
160 
161 }
G4HadronicInteraction * GetModel()
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:93
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4He3 * He3()
Definition: G4He3.cc:94

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