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

#include <XrayFluoPhysicsList.hh>

Inheritance diagram for XrayFluoPhysicsList:
Collaboration diagram for XrayFluoPhysicsList:

Public Member Functions

 XrayFluoPhysicsList ()
 
virtual ~XrayFluoPhysicsList ()
 
void ConstructParticle ()
 
void AddPhysicsList (const G4String &name)
 
void ConstructProcess ()
 
void AddDecay ()
 
void AddStepMax ()
 
void SetCuts ()
 
void SetCutForGamma (G4double)
 
void SetCutForElectron (G4double)
 
void SetCutForPositron (G4double)
 
void SetCutForProton (G4double)
 
void SetFluorescence (G4bool)
 
void SetPIXE (G4bool)
 
- 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 43 of file XrayFluoPhysicsList.hh.

Constructor & Destructor Documentation

XrayFluoPhysicsList::XrayFluoPhysicsList ( )

Definition at line 86 of file XrayFluoPhysicsList.cc.

87 {
88  pMessenger = new XrayFluoPhysicsListMessenger(this);
89 
90  // EM physics
92 
93  defaultCutValue = 1.*mm;
94 
95  cutForGamma = defaultCutValue;
96  cutForElectron = defaultCutValue;
97  cutForPositron = defaultCutValue;
98  cutForProton = defaultCutValue;
99 
100  SetVerboseLevel(1);
101 
102  // EM physics
103  emName = G4String("emlivermore");
104  emPhysicsList = new G4EmLivermorePhysics;
105 
106 }
static G4LossTableManager * Instance()
static constexpr double mm
Definition: G4SIunits.hh:115
void SetVerboseLevel(G4int value)
void SetVerbose(G4int val)

Here is the call graph for this function:

XrayFluoPhysicsList::~XrayFluoPhysicsList ( )
virtual

Definition at line 110 of file XrayFluoPhysicsList.cc.

111 {
112  delete emPhysicsList;
113  delete pMessenger;
114 }

Member Function Documentation

void XrayFluoPhysicsList::AddDecay ( )

Definition at line 174 of file XrayFluoPhysicsList.cc.

175 {
176  // Add Decay Process
177 
178  G4Decay* fDecayProcess = new G4Decay();
179 
181  particleIterator->reset();
182  while( (*particleIterator)() ){
183  G4ParticleDefinition* particle = particleIterator->value();
184  G4ProcessManager* pmanager = particle->GetProcessManager();
185 
186  if (fDecayProcess->IsApplicable(*particle) && !particle->IsShortLived()) {
187 
188  pmanager ->AddProcess(fDecayProcess);
189 
190  // set ordering for PostStepDoIt and AtRestDoIt
191  pmanager ->SetProcessOrdering(fDecayProcess, idxPostStep);
192  pmanager ->SetProcessOrdering(fDecayProcess, idxAtRest);
193 
194  }
195  }
196 }
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition: G4Decay.cc:89
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
G4ProcessManager * GetProcessManager() const
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const

Here is the call graph for this function:

Here is the caller graph for this function:

void XrayFluoPhysicsList::AddPhysicsList ( const G4String name)

Definition at line 220 of file XrayFluoPhysicsList.cc.

221 {
222  if (verboseLevel>-1) {
223  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
224  }
225 
226  if (name == emName) return;
227 
228  if (name == "emlivermore") {
229 
230  emName = name;
231  delete emPhysicsList;
232  emPhysicsList = new G4EmLivermorePhysics;
233 
234  } else if (name == "emstandard") {
235  emName = name;
236  delete emPhysicsList;
237  emPhysicsList = new G4EmStandardPhysics();
238 
239  } else if (name == "emstandard_opt1") {
240 
241  emName = name;
242  delete emPhysicsList;
243  emPhysicsList = new G4EmStandardPhysics_option1();
244 
245  } else if (name == "emstandard_opt2") {
246 
247  emName = name;
248  delete emPhysicsList;
249  emPhysicsList = new G4EmStandardPhysics_option2();
250 
251  } else if (name == "emstandard_opt3") {
252 
253  emName = name;
254  delete emPhysicsList;
255  emPhysicsList = new G4EmStandardPhysics_option3();
256 
257  } else if (name == "empenelope"){
258  emName = name;
259  delete emPhysicsList;
260  emPhysicsList = new G4EmPenelopePhysics();
261 
262  } else {
263 
264  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
265  << " is not defined"
266  << G4endl;
267  }
268 }
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 XrayFluoPhysicsList::AddStepMax ( )

Definition at line 200 of file XrayFluoPhysicsList.cc.

201 {
202  // Step limitation seen as a process
203  XrayFluoStepMax* stepMaxProcess = new XrayFluoStepMax();
204 
206  particleIterator->reset();
207  while ((*particleIterator)()){
208  G4ParticleDefinition* particle = particleIterator->value();
209  G4ProcessManager* pmanager = particle->GetProcessManager();
210 
211  if (stepMaxProcess->IsApplicable(*particle) && !particle->IsShortLived())
212  {
213  pmanager ->AddDiscreteProcess(stepMaxProcess);
214  }
215  }
216 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
G4bool IsApplicable(const G4ParticleDefinition &)

Here is the call graph for this function:

Here is the caller graph for this function:

void XrayFluoPhysicsList::ConstructParticle ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 118 of file XrayFluoPhysicsList.cc.

119 {
120  // pseudo-particles
123 
124  // gamma
126 
127  // leptons
132 
137 
138  // mesons
139  G4MesonConstructor mConstructor;
140  mConstructor.ConstructParticle();
141 
142  // barions
143  G4BaryonConstructor bConstructor;
144  bConstructor.ConstructParticle();
145 
146  // ions
147  G4IonConstructor iConstructor;
148  iConstructor.ConstructParticle();
149 }
static G4Geantino * GeantinoDefinition()
Definition: G4Geantino.cc:82
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
static G4MuonPlus * MuonPlusDefinition()
Definition: G4MuonPlus.cc:94
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
static G4NeutrinoE * NeutrinoEDefinition()
Definition: G4NeutrinoE.cc:80
static G4AntiNeutrinoMu * AntiNeutrinoMuDefinition()
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
static G4MuonMinus * MuonMinusDefinition()
Definition: G4MuonMinus.cc:95
static G4ChargedGeantino * ChargedGeantinoDefinition()
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
static G4NeutrinoMu * NeutrinoMuDefinition()
Definition: G4NeutrinoMu.cc:80
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81

Here is the call graph for this function:

void XrayFluoPhysicsList::ConstructProcess ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 153 of file XrayFluoPhysicsList.cc.

154 {
156  emPhysicsList->ConstructProcess();
157  AddDecay();
158  AddStepMax();
159 
160  // Em options
161  //
162  G4EmProcessOptions emOptions;
163  emOptions.SetBuildCSDARange(true);
164  emOptions.SetDEDXBinningForCSDARange(10*10);
165  //emOptions.SetDeexcitationActiveRegion(true); //TBC
166  emOptions.SetFluo(true);
167  emOptions.SetAuger(true);
168  emOptions.SetPIXE(true);
169 
170 }
void SetPIXE(G4bool val)
void SetDEDXBinningForCSDARange(G4int val)
void SetFluo(G4bool val)
void SetAuger(G4bool val)
virtual void ConstructProcess()=0
void SetBuildCSDARange(G4bool val)

Here is the call graph for this function:

void XrayFluoPhysicsList::SetCutForElectron ( G4double  cut)

Definition at line 298 of file XrayFluoPhysicsList.cc.

299 {
300  cutForElectron = cut;
301  SetParticleCuts(cutForElectron, G4Electron::Electron());
302 }
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 XrayFluoPhysicsList::SetCutForGamma ( G4double  cut)

Definition at line 290 of file XrayFluoPhysicsList.cc.

291 {
292  cutForGamma = cut;
293  SetParticleCuts(cutForGamma, G4Gamma::Gamma());
294 }
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 XrayFluoPhysicsList::SetCutForPositron ( G4double  cut)

Definition at line 306 of file XrayFluoPhysicsList.cc.

307 {
308  cutForPositron = cut;
309  SetParticleCuts(cutForPositron, G4Positron::Positron());
310 }
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 XrayFluoPhysicsList::SetCutForProton ( G4double  cut)

Definition at line 314 of file XrayFluoPhysicsList.cc.

315 {
316  cutForProton = cut;
317  SetParticleCuts(cutForProton, G4Proton::Proton());
318 }
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
static G4Proton * Proton()
Definition: G4Proton.cc:93

Here is the call graph for this function:

Here is the caller graph for this function:

void XrayFluoPhysicsList::SetCuts ( )
virtual

Reimplemented from G4VUserPhysicsList.

Definition at line 272 of file XrayFluoPhysicsList.cc.

273 {
274  if (verboseLevel >0){
275  G4cout << "PhysicsList::SetCuts:";
276  G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
277  }
278 
279  // set cut values for gamma at first and for e- second and next for e+,
280  // because some processes for e+/e- need cut values for gamma
281  SetCutValue(cutForGamma, "gamma");
282  SetCutValue(cutForElectron, "e-");
283  SetCutValue(cutForPositron, "e+");
284 
286 }
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:

void XrayFluoPhysicsList::SetFluorescence ( G4bool  )
void XrayFluoPhysicsList::SetPIXE ( G4bool  )

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