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

#include <XrayFluoPhysicsList.hh>

Inheritance diagram for XrayFluoPhysicsList:
G4VModularPhysicsList G4VUserPhysicsList

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

References G4VUserPhysicsList::defaultCutValue, G4LossTableManager::Instance(), python.hepunit::mm, G4LossTableManager::SetVerbose(), and G4VModularPhysicsList::SetVerboseLevel().

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()
void SetVerboseLevel(G4int value)
void SetVerbose(G4int val)
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.

References G4ProcessManager::AddProcess(), G4ParticleDefinition::GetProcessManager(), idxAtRest, idxPostStep, G4Decay::IsApplicable(), G4ParticleDefinition::IsShortLived(), G4ProcessManager::SetProcessOrdering(), and theParticleIterator.

Referenced by ConstructProcess().

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

Definition at line 218 of file XrayFluoPhysicsList.cc.

References G4cout, G4endl, and G4VModularPhysicsList::verboseLevel.

Referenced by XrayFluoPhysicsListMessenger::SetNewValue().

219 {
220  if (verboseLevel>-1) {
221  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
222  }
223 
224  if (name == emName) return;
225 
226  if (name == "emlivermore") {
227 
228  emName = name;
229  delete emPhysicsList;
230  emPhysicsList = new G4EmLivermorePhysics;
231 
232  } else if (name == "emstandard") {
233  emName = name;
234  delete emPhysicsList;
235  emPhysicsList = new G4EmStandardPhysics();
236 
237  } else if (name == "emstandard_opt1") {
238 
239  emName = name;
240  delete emPhysicsList;
241  emPhysicsList = new G4EmStandardPhysics_option1();
242 
243  } else if (name == "emstandard_opt2") {
244 
245  emName = name;
246  delete emPhysicsList;
247  emPhysicsList = new G4EmStandardPhysics_option2();
248 
249  } else if (name == "emstandard_opt3") {
250 
251  emName = name;
252  delete emPhysicsList;
253  emPhysicsList = new G4EmStandardPhysics_option3();
254 
255  } else if (name == "empenelope"){
256  emName = name;
257  delete emPhysicsList;
258  emPhysicsList = new G4EmPenelopePhysics();
259 
260  } else {
261 
262  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
263  << " is not defined"
264  << G4endl;
265  }
266 }
const XML_Char * name
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void XrayFluoPhysicsList::AddStepMax ( )

Definition at line 199 of file XrayFluoPhysicsList.cc.

References G4ProcessManager::AddDiscreteProcess(), G4ParticleDefinition::GetProcessManager(), XrayFluoStepMax::IsApplicable(), G4ParticleDefinition::IsShortLived(), and theParticleIterator.

Referenced by ConstructProcess().

200 {
201  // Step limitation seen as a process
202  XrayFluoStepMax* stepMaxProcess = new XrayFluoStepMax();
203 
204  theParticleIterator->reset();
205  while ((*theParticleIterator)()){
206  G4ParticleDefinition* particle = theParticleIterator->value();
207  G4ProcessManager* pmanager = particle->GetProcessManager();
208 
209  if (stepMaxProcess->IsApplicable(*particle) && !particle->IsShortLived())
210  {
211  pmanager ->AddDiscreteProcess(stepMaxProcess);
212  }
213  }
214 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
#define theParticleIterator
G4bool IsApplicable(const G4ParticleDefinition &)
void XrayFluoPhysicsList::ConstructParticle ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 118 of file XrayFluoPhysicsList.cc.

References G4AntiNeutrinoE::AntiNeutrinoEDefinition(), G4AntiNeutrinoMu::AntiNeutrinoMuDefinition(), G4ChargedGeantino::ChargedGeantinoDefinition(), G4MesonConstructor::ConstructParticle(), G4BaryonConstructor::ConstructParticle(), G4IonConstructor::ConstructParticle(), G4Electron::ElectronDefinition(), G4Gamma::GammaDefinition(), G4Geantino::GeantinoDefinition(), G4MuonMinus::MuonMinusDefinition(), G4MuonPlus::MuonPlusDefinition(), G4NeutrinoE::NeutrinoEDefinition(), G4NeutrinoMu::NeutrinoMuDefinition(), and G4Positron::PositronDefinition().

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
void XrayFluoPhysicsList::ConstructProcess ( void  )
virtual

Reimplemented from G4VModularPhysicsList.

Definition at line 153 of file XrayFluoPhysicsList.cc.

References AddDecay(), AddStepMax(), G4VUserPhysicsList::AddTransportation(), G4VPhysicsConstructor::ConstructProcess(), G4EmProcessOptions::SetAuger(), G4EmProcessOptions::SetBuildCSDARange(), G4EmProcessOptions::SetDEDXBinningForCSDARange(), G4EmProcessOptions::SetFluo(), and G4EmProcessOptions::SetPIXE().

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)
void XrayFluoPhysicsList::SetCutForElectron ( G4double  cut)

Definition at line 296 of file XrayFluoPhysicsList.cc.

References G4Electron::Electron(), and G4VUserPhysicsList::SetParticleCuts().

Referenced by XrayFluoPhysicsListMessenger::SetNewValue().

297 {
298  cutForElectron = cut;
299  SetParticleCuts(cutForElectron, G4Electron::Electron());
300 }
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
static G4Electron * Electron()
Definition: G4Electron.cc:94
void XrayFluoPhysicsList::SetCutForGamma ( G4double  cut)

Definition at line 288 of file XrayFluoPhysicsList.cc.

References G4Gamma::Gamma(), and G4VUserPhysicsList::SetParticleCuts().

Referenced by XrayFluoPhysicsListMessenger::SetNewValue().

289 {
290  cutForGamma = cut;
291  SetParticleCuts(cutForGamma, G4Gamma::Gamma());
292 }
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
void XrayFluoPhysicsList::SetCutForPositron ( G4double  cut)

Definition at line 304 of file XrayFluoPhysicsList.cc.

References G4Positron::Positron(), and G4VUserPhysicsList::SetParticleCuts().

Referenced by XrayFluoPhysicsListMessenger::SetNewValue().

305 {
306  cutForPositron = cut;
307  SetParticleCuts(cutForPositron, G4Positron::Positron());
308 }
void SetParticleCuts(G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
static G4Positron * Positron()
Definition: G4Positron.cc:94
void XrayFluoPhysicsList::SetCutForProton ( G4double  cut)

Definition at line 312 of file XrayFluoPhysicsList.cc.

References G4Proton::Proton(), and G4VUserPhysicsList::SetParticleCuts().

Referenced by XrayFluoPhysicsListMessenger::SetNewValue().

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

Reimplemented from G4VUserPhysicsList.

Definition at line 270 of file XrayFluoPhysicsList.cc.

References G4VUserPhysicsList::defaultCutValue, G4VUserPhysicsList::DumpCutValuesTable(), G4BestUnit, G4cout, G4endl, G4VUserPhysicsList::SetCutValue(), and G4VModularPhysicsList::verboseLevel.

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

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