Geant4  10.02.p03
GammaKnifePhysicsList Class Reference

#include <GammaKnifePhysicsList.hh>

Inheritance diagram for GammaKnifePhysicsList:
Collaboration diagram for GammaKnifePhysicsList:

Public Member Functions

 GammaKnifePhysicsList ()
 
virtual ~GammaKnifePhysicsList ()
 
void ConstructParticle ()
 
void SetCuts ()
 
void SetCutForGamma (G4double)
 
void SetCutForElectron (G4double)
 
void SetCutForPositron (G4double)
 
void AddPhysicsList (const G4String &name)
 
void AddPackage (const G4String &pack)
 
void ConstructProcess ()
 
- Public Member Functions inherited from G4VModularPhysicsList
 G4VModularPhysicsList ()
 
virtual ~G4VModularPhysicsList ()
 
void RegisterPhysics (G4VPhysicsConstructor *)
 
const G4VPhysicsConstructorGetPhysics (G4int index) const
 
const G4VPhysicsConstructorGetPhysics (const G4String &name) const
 
const G4VPhysicsConstructorGetPhysicsWithType (G4int physics_type) const
 
void ReplacePhysics (G4VPhysicsConstructor *)
 
void RemovePhysics (G4VPhysicsConstructor *)
 
void RemovePhysics (G4int type)
 
void RemovePhysics (const G4String &name)
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 
- Public Member Functions inherited from G4VUserPhysicsList
 G4VUserPhysicsList ()
 
virtual ~G4VUserPhysicsList ()
 
 G4VUserPhysicsList (const G4VUserPhysicsList &)
 
G4VUserPhysicsListoperator= (const G4VUserPhysicsList &)
 
void Construct ()
 
void UseCoupledTransportation (G4bool vl=true)
 
void SetDefaultCutValue (G4double newCutValue)
 
G4double GetDefaultCutValue () const
 
void BuildPhysicsTable ()
 
void PreparePhysicsTable (G4ParticleDefinition *)
 
void BuildPhysicsTable (G4ParticleDefinition *)
 
G4bool StorePhysicsTable (const G4String &directory=".")
 
G4bool IsPhysicsTableRetrieved () const
 
G4bool IsStoredInAscii () const
 
const G4StringGetPhysicsTableDirectory () const
 
void SetPhysicsTableRetrieved (const G4String &directory="")
 
void SetStoredInAscii ()
 
void ResetPhysicsTableRetrieved ()
 
void ResetStoredInAscii ()
 
void DumpList () const
 
void DumpCutValuesTable (G4int flag=1)
 
void DumpCutValuesTableIfRequested ()
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
void SetCutsWithDefault ()
 
void SetCutValue (G4double aCut, const G4String &pname)
 
G4double GetCutValue (const G4String &pname) const
 
void SetCutValue (G4double aCut, const G4String &pname, const G4String &rname)
 
void SetParticleCuts (G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
 
void SetParticleCuts (G4double cut, const G4String &particleName, G4Region *region=0)
 
void SetCutsForRegion (G4double aCut, const G4String &rname)
 
void ResetCuts ()
 obsolete methods More...
 
void SetApplyCuts (G4bool value, const G4String &name)
 
G4bool GetApplyCuts (const G4String &name) const
 
void RemoveProcessManager ()
 
void AddProcessManager (G4ParticleDefinition *newParticle, G4ProcessManager *newManager=0)
 
void CheckParticleList ()
 
void DisableCheckParticleList ()
 
G4int GetInstanceID () const
 
void InitializeWorker ()
 

Private Attributes

G4bool radioactiveDecayIsRegistered
 
G4double cutForGamma
 
G4double cutForElectron
 
G4double cutForPositron
 
G4String emName
 
G4VPhysicsConstructoremPhysicsList
 
G4VPhysicsConstructordecPhysicsList
 
std::vector< G4VPhysicsConstructor * > hadronPhys
 
GammaKnifePhysicsListMessengermessenger
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VModularPhysicsList
static const G4VMPLManagerGetSubInstanceManager ()
 
- Static Public Member Functions inherited from G4VUserPhysicsList
static const G4VUPLManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VModularPhysicsList
typedef G4VMPLData::G4PhysConstVectorData G4PhysConstVector
 
- Protected Member Functions inherited from G4VModularPhysicsList
 G4VModularPhysicsList (const G4VModularPhysicsList &)
 
G4VModularPhysicsListoperator= (const G4VModularPhysicsList &)
 
- Protected Member Functions inherited from G4VUserPhysicsList
void AddTransportation ()
 
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
void BuildIntegralPhysicsTable (G4VProcess *, G4ParticleDefinition *)
 
virtual void RetrievePhysicsTable (G4ParticleDefinition *, const G4String &directory, G4bool ascii=false)
 
void InitializeProcessManager ()
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VModularPhysicsList
G4int verboseLevel
 
G4int g4vmplInstanceID
 
- Protected Attributes inherited from G4VUserPhysicsList
G4ParticleTabletheParticleTable
 
G4int verboseLevel
 
G4double defaultCutValue
 
G4bool isSetDefaultCutValue
 
G4ProductionCutsTablefCutsTable
 
G4bool fRetrievePhysicsTable
 
G4bool fStoredInAscii
 
G4bool fIsCheckedForRetrievePhysicsTable
 
G4bool fIsRestoredCutValues
 
G4String directoryPhysicsTable
 
G4bool fDisableCheckParticleList
 
G4int g4vuplInstanceID
 
- Static Protected Attributes inherited from G4VModularPhysicsList
static G4RUN_DLL G4VMPLManager G4VMPLsubInstanceManager
 
- Static Protected Attributes inherited from G4VUserPhysicsList
static G4RUN_DLL G4VUPLManager subInstanceManager
 

Detailed Description

Definition at line 36 of file GammaKnifePhysicsList.hh.

Constructor & Destructor Documentation

◆ GammaKnifePhysicsList()

GammaKnifePhysicsList::GammaKnifePhysicsList ( )

Definition at line 55 of file GammaKnifePhysicsList.cc.

56 {
58  defaultCutValue = 1.*mm;
62 
64 
65 
67  SetVerboseLevel(1);
68 
69  // EM physics
71  emName = G4String("emstandard_opt3");
72 
73  // Decay physics and all particles
75 }
static G4LossTableManager * Instance()
GammaKnifePhysicsListMessenger * messenger
G4VPhysicsConstructor * emPhysicsList
void SetVerboseLevel(G4int value)
G4VPhysicsConstructor * decPhysicsList
static const double mm
Definition: G4SIunits.hh:114
Here is the call graph for this function:

◆ ~GammaKnifePhysicsList()

GammaKnifePhysicsList::~GammaKnifePhysicsList ( )
virtual

Definition at line 77 of file GammaKnifePhysicsList.cc.

78 {
79  delete messenger;
80  delete emPhysicsList;
81  delete decPhysicsList;
82  for(size_t i=0; i<hadronPhys.size(); i++)
83  delete hadronPhys[i];
84 }
GammaKnifePhysicsListMessenger * messenger
std::vector< G4VPhysicsConstructor * > hadronPhys
G4VPhysicsConstructor * emPhysicsList
G4VPhysicsConstructor * decPhysicsList

Member Function Documentation

◆ AddPackage()

void GammaKnifePhysicsList::AddPackage ( const G4String pack)

◆ AddPhysicsList()

void GammaKnifePhysicsList::AddPhysicsList ( const G4String name)

Definition at line 111 of file GammaKnifePhysicsList.cc.

112 {
113 
114  if (verboseLevel>1) {
115  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
116  }
117  if (name == emName) return;
118 
120  // ELECTROMAGNETIC MODELS
122  if (name == "standard_opt3") {
123  emName = name;
124  delete emPhysicsList;
126  G4RunManager::GetRunManager() -> PhysicsHasBeenModified();
127  G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmStandardPhysics_option3" << G4endl;
128 
129  } else if (name == "LowE_Livermore") {
130  emName = name;
131  delete emPhysicsList;
133  G4RunManager::GetRunManager()-> PhysicsHasBeenModified();
134  G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmLivermorePhysics" << G4endl;
135 
136  } else if (name == "LowE_Penelope") {
137  emName = name;
138  delete emPhysicsList;
140  G4RunManager::GetRunManager()-> PhysicsHasBeenModified();
141  G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmLivermorePhysics" << G4endl;
142 
144  // HADRONIC MODELS
146 
147 
148  } else if (name == "decay")
149  {
150  hadronPhys.push_back(new G4DecayPhysics());
151  //radioactiveDecayIsRegistered = true;
152  }
153  else if (name == "radioactive_decay" && !radioactiveDecayIsRegistered )
154  {
155  hadronPhys.push_back(new G4RadioactiveDecayPhysics());
157  }
158  else {
159 
160  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
161  << " is not defined"
162  << G4endl;
163  }
164 
165  }
G4String name
Definition: TRTMaterials.hh:40
std::vector< G4VPhysicsConstructor * > hadronPhys
G4GLOB_DLL std::ostream G4cout
G4VPhysicsConstructor * emPhysicsList
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructParticle()

void GammaKnifePhysicsList::ConstructParticle ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 86 of file GammaKnifePhysicsList.cc.

87 {
90 }
virtual void ConstructParticle()=0
G4VPhysicsConstructor * emPhysicsList
G4VPhysicsConstructor * decPhysicsList
Here is the call graph for this function:

◆ ConstructProcess()

void GammaKnifePhysicsList::ConstructProcess ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 92 of file GammaKnifePhysicsList.cc.

93 {
94  // transportation
96 
97  // electromagnetic physics list
99 
100  // decay physics list
102 
103  // hadronic physics lists
104  for(size_t i=0; i<hadronPhys.size(); i++) {
106  }
107 
108 }
std::vector< G4VPhysicsConstructor * > hadronPhys
G4VPhysicsConstructor * emPhysicsList
G4VPhysicsConstructor * decPhysicsList
virtual void ConstructProcess()=0
Here is the call graph for this function:

◆ SetCutForElectron()

void GammaKnifePhysicsList::SetCutForElectron ( G4double  cut)

Definition at line 195 of file GammaKnifePhysicsList.cc.

196 {
197  cutForElectron = cut;
199 }
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
static G4Electron * Electron()
Definition: G4Electron.cc:94
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCutForGamma()

void GammaKnifePhysicsList::SetCutForGamma ( G4double  cut)

Definition at line 188 of file GammaKnifePhysicsList.cc.

189 {
190  cutForGamma = cut;
192 }
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCutForPositron()

void GammaKnifePhysicsList::SetCutForPositron ( G4double  cut)

Definition at line 202 of file GammaKnifePhysicsList.cc.

203 {
204  cutForPositron = cut;
206 }
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
static G4Positron * Positron()
Definition: G4Positron.cc:94
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCuts()

void GammaKnifePhysicsList::SetCuts ( )
virtual

Reimplemented from G4VUserPhysicsList.

Definition at line 169 of file GammaKnifePhysicsList.cc.

170 {
171 
172  if (verboseLevel >0){
173  G4cout << "PhysicsList::SetCuts:";
174  G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
175  }
176 
177  // set cut values for gamma at first and for e- second and next for e+,
178  // because some processes for e+/e- need cut values for gamma
179  SetCutValue(cutForGamma, "gamma");
182 
183 
185 }
void SetCutValue(G4double aCut, const G4String &pname)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void DumpCutValuesTable(G4int flag=1)
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:

Member Data Documentation

◆ cutForElectron

G4double GammaKnifePhysicsList::cutForElectron
private

Definition at line 56 of file GammaKnifePhysicsList.hh.

◆ cutForGamma

G4double GammaKnifePhysicsList::cutForGamma
private

Definition at line 55 of file GammaKnifePhysicsList.hh.

◆ cutForPositron

G4double GammaKnifePhysicsList::cutForPositron
private

Definition at line 57 of file GammaKnifePhysicsList.hh.

◆ decPhysicsList

G4VPhysicsConstructor* GammaKnifePhysicsList::decPhysicsList
private

Definition at line 61 of file GammaKnifePhysicsList.hh.

◆ emName

G4String GammaKnifePhysicsList::emName
private

Definition at line 59 of file GammaKnifePhysicsList.hh.

◆ emPhysicsList

G4VPhysicsConstructor* GammaKnifePhysicsList::emPhysicsList
private

Definition at line 60 of file GammaKnifePhysicsList.hh.

◆ hadronPhys

std::vector<G4VPhysicsConstructor*> GammaKnifePhysicsList::hadronPhys
private

Definition at line 62 of file GammaKnifePhysicsList.hh.

◆ messenger

GammaKnifePhysicsListMessenger* GammaKnifePhysicsList::messenger
private

Definition at line 64 of file GammaKnifePhysicsList.hh.

◆ radioactiveDecayIsRegistered

G4bool GammaKnifePhysicsList::radioactiveDecayIsRegistered
private

Definition at line 53 of file GammaKnifePhysicsList.hh.


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