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

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 ( )

Definition at line 55 of file GammaKnifePhysicsList.cc.

56 {
58  defaultCutValue = 1.*mm;
59  cutForGamma = defaultCutValue;
60  cutForElectron = defaultCutValue;
61  cutForPositron = defaultCutValue;
62 
63  radioactiveDecayIsRegistered = false;
64 
65 
66  messenger = new GammaKnifePhysicsListMessenger(this);
67  SetVerboseLevel(1);
68 
69  // EM physics
70  emPhysicsList = new G4EmStandardPhysics_option3(1);
71  emName = G4String("emstandard_opt3");
72 
73  // Decay physics and all particles
74  decPhysicsList = new G4DecayPhysics();
75 }
static G4LossTableManager * Instance()
static constexpr double mm
Definition: G4SIunits.hh:115
void SetVerboseLevel(G4int value)

Here is the call graph for this function:

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 }

Member Function Documentation

void GammaKnifePhysicsList::AddPackage ( const G4String pack)
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;
125  emPhysicsList = new G4EmStandardPhysics_option3();
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;
132  emPhysicsList = new G4EmLivermorePhysics();
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;
139  emPhysicsList = new G4EmPenelopePhysics();
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());
156  radioactiveDecayIsRegistered = true;
157  }
158  else {
159 
160  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
161  << " is not defined"
162  << G4endl;
163  }
164 
165  }
const XML_Char * name
Definition: expat.h:151
G4GLOB_DLL std::ostream G4cout
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:

void GammaKnifePhysicsList::ConstructParticle ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 86 of file GammaKnifePhysicsList.cc.

87 {
88  decPhysicsList->ConstructParticle();
89  emPhysicsList->ConstructParticle();
90 }
virtual void ConstructParticle()=0

Here is the call graph for this function:

void GammaKnifePhysicsList::ConstructProcess ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 92 of file GammaKnifePhysicsList.cc.

93 {
94  // transportation
96 
97  // electromagnetic physics list
98  emPhysicsList->ConstructProcess();
99 
100  // decay physics list
101  decPhysicsList->ConstructProcess();
102 
103  // hadronic physics lists
104  for(size_t i=0; i<hadronPhys.size(); i++) {
105  hadronPhys[i] -> ConstructProcess();
106  }
107 
108 }
virtual void ConstructProcess()=0

Here is the call graph for this function:

void GammaKnifePhysicsList::SetCutForElectron ( G4double  cut)

Definition at line 195 of file GammaKnifePhysicsList.cc.

196 {
197  cutForElectron = cut;
198  SetParticleCuts(cutForElectron, G4Electron::Electron());
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:

void GammaKnifePhysicsList::SetCutForGamma ( G4double  cut)

Definition at line 188 of file GammaKnifePhysicsList.cc.

189 {
190  cutForGamma = cut;
191  SetParticleCuts(cutForGamma, G4Gamma::Gamma());
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:

void GammaKnifePhysicsList::SetCutForPositron ( G4double  cut)

Definition at line 202 of file GammaKnifePhysicsList.cc.

203 {
204  cutForPositron = cut;
205  SetParticleCuts(cutForPositron, G4Positron::Positron());
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:

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");
180  SetCutValue(cutForElectron, "e-");
181  SetCutValue(cutForPositron, "e+");
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:


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