Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GammaRayTelPhysicsList Class Reference

#include <GammaRayTelPhysicsList.hh>

Inheritance diagram for GammaRayTelPhysicsList:
Collaboration diagram for GammaRayTelPhysicsList:

Public Member Functions

 GammaRayTelPhysicsList ()
 
virtual ~GammaRayTelPhysicsList ()
 
void ConstructParticle ()
 
void SetCuts ()
 
void SetCutForGamma (G4double)
 
void SetCutForElectron (G4double)
 
void SetCutForPositron (G4double)
 
void AddPhysicsList (const G4String &name)
 
void ConstructProcess ()
 
void AddPackage (const G4String &name)
 
- 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 41 of file GammaRayTelPhysicsList.hh.

Constructor & Destructor Documentation

GammaRayTelPhysicsList::GammaRayTelPhysicsList ( )

Definition at line 61 of file GammaRayTelPhysicsList.cc.

62 {
65  cutForGamma = defaultCutValue;
66  cutForElectron = defaultCutValue;
67  cutForPositron = defaultCutValue;
68 
69  helIsRegisted = false;
70  bicIsRegisted = false;
71  biciIsRegisted = false;
72  locIonIonInelasticIsRegistered = false;
73  radioactiveDecayIsRegisted = false;
74 
75  pMessenger = new GammaRayTelPhysicsListMessenger(this);
76 
77  SetVerboseLevel(1);
78 
79  // EM physics
80  emPhysicsList = new G4EmStandardPhysics_option3(1);
81  emName = G4String("emstandard_opt3");
82 
83  // Decay physics and all particles
84  decPhysicsList = new G4DecayPhysics();
85 }
static G4LossTableManager * Instance()
void SetVerboseLevel(G4int value)
static constexpr double micrometer
Definition: G4SIunits.hh:100

Here is the call graph for this function:

GammaRayTelPhysicsList::~GammaRayTelPhysicsList ( )
virtual

Definition at line 88 of file GammaRayTelPhysicsList.cc.

89 {
90  delete pMessenger;
91  delete emPhysicsList;
92  delete decPhysicsList;
93  for(size_t i=0; i<hadronPhys.size(); i++) {delete hadronPhys[i];}
94 }

Member Function Documentation

void GammaRayTelPhysicsList::AddPackage ( const G4String name)

Definition at line 97 of file GammaRayTelPhysicsList.cc.

98 {
99  G4PhysListFactory factory;
100  G4VModularPhysicsList* phys =factory.GetReferencePhysList(name);
101  G4int i=0;
102  const G4VPhysicsConstructor* elem= phys->GetPhysics(i);
103  G4VPhysicsConstructor* tmp = const_cast<G4VPhysicsConstructor*> (elem);
104  while (elem !=0)
105  {
106  RegisterPhysics(tmp);
107  elem= phys->GetPhysics(++i) ;
108  tmp = const_cast<G4VPhysicsConstructor*> (elem);
109  }
110 }
void RegisterPhysics(G4VPhysicsConstructor *)
int G4int
Definition: G4Types.hh:78
const G4VPhysicsConstructor * GetPhysics(G4int index) const
G4VModularPhysicsList * GetReferencePhysList(const G4String &)

Here is the call graph for this function:

Here is the caller graph for this function:

void GammaRayTelPhysicsList::AddPhysicsList ( const G4String name)

Definition at line 145 of file GammaRayTelPhysicsList.cc.

146 {
147 
148  if (verboseLevel>1) {
149  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
150  }
151  if (name == emName) return;
152 
154  // ELECTROMAGNETIC MODELS
156 
157  if (name == "standard_opt3") {
158  emName = name;
159  delete emPhysicsList;
160  emPhysicsList = new G4EmStandardPhysics_option3();
161  G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmStandardPhysics_option3" << G4endl;
162 
163  } else if (name == "LowE_Livermore") {
164  emName = name;
165  delete emPhysicsList;
166  emPhysicsList = new G4EmLivermorePhysics();
167  G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmLivermorePhysics" << G4endl;
168  } else if (name == "LowE_Penelope") {
169  emName = name;
170  delete emPhysicsList;
171  emPhysicsList = new G4EmPenelopePhysics();
172  G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmLivermorePhysics" << G4endl;
173  } else if (name == "LowE_Polarized") {
174  emName = name;
175  delete emPhysicsList;
176  emPhysicsList = new G4EmLivermorePolarizedPhysics();
177  G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmLivermorePhysics" << G4endl;
178 
180  // HADRONIC MODELS
182  } else if (name == "elastic" && !helIsRegisted) {
183  G4cout << "THE FOLLOWING HADRONIC ELASTIC PHYSICS LIST HAS BEEN ACTIVATED: G4HadronElasticPhysics()" << G4endl;
184  hadronPhys.push_back( new G4HadronElasticPhysics());
185  helIsRegisted = true;
186 
187  } else if (name == "DElastic" && !helIsRegisted) {
188  hadronPhys.push_back( new G4HadronDElasticPhysics());
189  helIsRegisted = true;
190 
191  } else if (name == "HPElastic" && !helIsRegisted) {
192  hadronPhys.push_back( new G4HadronElasticPhysicsHP());
193  helIsRegisted = true;
194 
195  } else if (name == "binary" && !bicIsRegisted) {
196  hadronPhys.push_back(new G4HadronPhysicsQGSP_BIC_HP());
197  bicIsRegisted = true;
198  G4cout << "THE FOLLOWING HADRONIC INELASTIC PHYSICS LIST HAS BEEN ACTIVATED: HadronPhysicsQGSP_BIC_HP()" << G4endl;
199 
200  } else if (name == "binary_ion" && !biciIsRegisted) {
201  hadronPhys.push_back(new G4IonBinaryCascadePhysics());
202  biciIsRegisted = true;
203  G4cout << "THE FOLLOWING HADRONIC INELASTIC PHYSICS LIST HAS BEEN ACTIVATED: G4IonBinaryCascadePhysics()" << G4endl;
204  } else if (name == "radioactive_decay" && !radioactiveDecayIsRegisted ) {
205  hadronPhys.push_back(new G4RadioactiveDecayPhysics());
206  radioactiveDecayIsRegisted = true;
207  G4cout << "THE FOLLOWING HADRONIC INELASTIC PHYSICS LIST HAS BEEN ACTIVATED: G4RadioactiveDecayPhysics()" << G4endl;
208  } else {
209 
210  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
211  << " is not defined"
212  << G4endl;
213  }
214 }
const XML_Char * name
Definition: expat.h:151
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the caller graph for this function:

void GammaRayTelPhysicsList::ConstructParticle ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 113 of file GammaRayTelPhysicsList.cc.

114 {
115  decPhysicsList->ConstructParticle();
116 }
virtual void ConstructParticle()=0

Here is the call graph for this function:

void GammaRayTelPhysicsList::ConstructProcess ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 119 of file GammaRayTelPhysicsList.cc.

120 {
121  // transportation
122  //
124 
125  // electromagnetic physics list
126  //
127  emPhysicsList->ConstructProcess();
128  em_config.AddModels();
129 
130  // decay physics list
131  //
132  decPhysicsList->ConstructProcess();
133 
134  // hadronic physics lists
135  for(size_t i=0; i<hadronPhys.size(); i++) {
136  hadronPhys[i]->ConstructProcess();
137  }
138 
139  // step limitation (as a full process)
140  //
141  // AddStepMax();
142 }
virtual void ConstructProcess()=0

Here is the call graph for this function:

void GammaRayTelPhysicsList::SetCutForElectron ( G4double  cut)

Definition at line 244 of file GammaRayTelPhysicsList.cc.

245 {
246  cutForElectron = cut;
247  SetParticleCuts(cutForElectron, G4Electron::Electron());
248 }
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 GammaRayTelPhysicsList::SetCutForGamma ( G4double  cut)

Definition at line 238 of file GammaRayTelPhysicsList.cc.

239 {
240  cutForGamma = cut;
241  SetParticleCuts(cutForGamma, G4Gamma::Gamma());
242 }
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 GammaRayTelPhysicsList::SetCutForPositron ( G4double  cut)

Definition at line 250 of file GammaRayTelPhysicsList.cc.

251 {
252  cutForPositron = cut;
253  SetParticleCuts(cutForPositron, G4Positron::Positron());
254 }
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 GammaRayTelPhysicsList::SetCuts ( )
virtual

Reimplemented from G4VUserPhysicsList.

Definition at line 217 of file GammaRayTelPhysicsList.cc.

218 {
219 
220  if (verboseLevel >0){
221  G4cout << "PhysicsList::SetCuts:";
222  G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
223  }
224 
225  G4double lowLimit = 250. * eV;
226  G4double highLimit = 100. * GeV;
228 
229  // set cut values for gamma at first and for e- second and next for e+,
230  // because some processes for e+/e- need cut values for gamma
231  SetCutValue(cutForGamma, "gamma");
232  SetCutValue(cutForElectron, "e-");
233  SetCutValue(cutForPositron, "e+");
234 
236 }
void SetCutValue(G4double aCut, const G4String &pname)
void SetEnergyRange(G4double lowedge, G4double highedge)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void DumpCutValuesTable(G4int flag=1)
G4GLOB_DLL std::ostream G4cout
static constexpr double eV
Definition: G4SIunits.hh:215
static G4ProductionCutsTable * GetProductionCutsTable()
static constexpr double GeV
Definition: G4SIunits.hh:217
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:


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