#include <G4ProcessTable.hh>
|
| G4ProcessTable () |
|
| ~G4ProcessTable () |
|
G4int | Length () const |
|
G4int | Insert (G4VProcess *aProcess, G4ProcessManager *aProcMgr) |
|
G4int | Remove (G4VProcess *aProcess, G4ProcessManager *aProcMgr) |
|
G4VProcess * | FindProcess (const G4String &processName, const G4String &particleName) const |
|
G4VProcess * | FindProcess (const G4String &processName, const G4ParticleDefinition *particle) const |
|
G4VProcess * | FindProcess (const G4String &processName, const G4ProcessManager *processManager) const |
|
G4ProcessVector * | FindProcesses () |
|
G4ProcessVector * | FindProcesses (const G4ProcessManager *processManager) |
|
G4ProcessVector * | FindProcesses (const G4String &processName) |
|
G4ProcessVector * | FindProcesses (G4ProcessType processType) |
|
void | SetProcessActivation (const G4String &processName, G4bool fActive) |
|
void | SetProcessActivation (const G4String &processName, const G4String &particleName, G4bool fActive) |
|
void | SetProcessActivation (const G4String &processName, G4ParticleDefinition *particle, G4bool fActive) |
|
void | SetProcessActivation (const G4String &processName, G4ProcessManager *processManager, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, const G4String &particleName, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, G4ParticleDefinition *particle, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, G4ProcessManager *processManager, G4bool fActive) |
|
G4ProcNameVector * | GetNameList () |
|
G4ProcTableVector * | GetProcTableVector () |
|
void | DumpInfo (G4VProcess *process, G4ParticleDefinition *particle=0) |
|
G4UImessenger * | CreateMessenger () |
|
void | DeleteMessenger () |
|
void | SetVerboseLevel (G4int value) |
|
G4int | GetVerboseLevel () const |
|
Definition at line 59 of file G4ProcessTable.hh.
G4ProcessTable::G4ProcessTable |
( |
| ) |
|
Definition at line 44 of file G4ProcessTable.cc.
54 fProcTblMessenger = 0;
G4GLOB_DLL std::ostream G4cout
std::vector< G4String > G4ProcNameVector
std::vector< G4ProcTblElement * > G4ProcTableVector
G4ProcessTable::~G4ProcessTable |
( |
| ) |
|
Definition at line 73 of file G4ProcessTable.cc.
81 if ( tmpTblVector != 0) {
82 tmpTblVector ->clear();
86 if ( fProcTblVector != 0) {
87 G4ProcTableVector::iterator idx;
90 for (idx=fProcTblVector->begin(); idx!=fProcTblVector->end(); ++idx) {
95 fProcTblVector ->clear();
96 delete fProcTblVector;
99 if ( fProcNameVector != 0) {
100 fProcNameVector ->clear();
101 delete fProcNameVector;
G4GLOB_DLL std::ostream G4cout
Definition at line 107 of file G4ProcessTable.cc.
109 if (fProcTblMessenger == 0) {
112 return fProcTblMessenger;
void G4ProcessTable::DeleteMessenger |
( |
| ) |
|
Definition at line 116 of file G4ProcessTable.cc.
118 if (fProcTblMessenger != 0) {
119 delete fProcTblMessenger;
Definition at line 570 of file G4ProcessTable.cc.
573 G4ProcTableVector::iterator itr;
576 G4bool isFoundInTbl =
false;
580 for (itr=fProcTblVector->begin(); itr!=fProcTblVector->end(); ++itr, ++idxTbl) {
584 for (idx=0; idx<anElement->
Length(); idx++){
597 if (!isFoundInTbl )
return;
604 for (idx=0; idx<anElement->
Length(); idx++){
609 if (verboseLevel >2){
621 if (verboseLevel >2){
void SetVerboseLevel(G4int value)
G4ProcessManager * GetProcessManager(G4int index) const
G4int GetVerboseLevel() const
const G4String & GetParticleName() const
G4int GetVerboseLevel() const
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetParticleType() const
G4VProcess * GetProcess() const
virtual void DumpInfo() const
void SetVerboseLevel(G4int value)
Definition at line 315 of file G4ProcessTable.cc.
319 G4ProcTableVector::iterator itr;
323 for (itr=fProcTblVector->begin(); itr!=fProcTblVector->end(); ++itr, ++idxTbl) {
328 if ( anElement->
Contains(processManager) ) {
335 if (!isFound && verboseLevel>1){
336 G4cout <<
" G4ProcessTable::FindProcess :" ;
337 G4cout <<
" The Process[" << processName <<
"] is not found ";
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
G4bool Contains(const G4ProcessManager *pManager) const
const G4String & GetProcessName() const
G4ParticleDefinition * GetParticleType() const
G4VProcess * GetProcess() const
Definition at line 432 of file G4ProcessTable.cc.
435 return ExtractProcesses(pTblVector);
std::vector< G4ProcTblElement * > G4ProcTableVector
Definition at line 439 of file G4ProcessTable.cc.
442 return ExtractProcesses(pTblVector);
std::vector< G4ProcTblElement * > G4ProcTableVector
Definition at line 152 of file G4ProcessTable.cc.
156 fProcessTable = &theProcessTable;
158 return fProcessTable;
G4int G4ProcessTable::GetVerboseLevel |
( |
| ) |
const |
Definition at line 162 of file G4ProcessTable.cc.
165 if ( (aProcess == 0) || ( aProcMgr == 0 ) ){
168 G4cout <<
"G4ProcessTable::Insert : arguments are 0 pointer "
169 <<aProcess <<
","<< aProcMgr <<
G4endl;
177 G4cout <<
"G4ProcessTable::Insert ";
184 G4ProcTableVector::iterator itr;
187 G4bool isFoundInTbl =
false;
189 for (itr=fProcTblVector->begin(); itr!=fProcTblVector->end(); ++itr, ++idxTbl) {
197 if (!anElement->
Contains(aProcMgr)) {
198 anElement->
Insert(aProcMgr);
201 G4cout <<
" This Process Manager is registered !! " <<
G4endl;
211 newElement->
Insert(aProcMgr);
212 fProcTblVector->push_back(newElement);
214 G4ProcNameVector::iterator ip;
216 for (ip=fProcNameVector->begin(); ip!=fProcNameVector->end(); ++ip) {
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
G4bool Contains(const G4ProcessManager *pManager) const
void Insert(G4ProcessManager *aProcMgr)
G4ParticleDefinition * GetParticleType() const
const G4String & GetProcessName() const
G4VProcess * GetProcess() const
G4int G4ProcessTable::Length |
( |
| ) |
const |
Definition at line 232 of file G4ProcessTable.cc.
235 if ( (aProcess == 0) || ( aProcMgr == 0 ) ){
238 G4cout <<
"G4ProcessTable::Remove : arguments are 0 pointer "<<
G4endl;
246 G4cout <<
"G4ProcessTable::Remove ";
252 G4ProcTableVector::iterator itr;
257 for (itr=fProcTblVector->begin(); itr!=fProcTblVector->end(); ++itr, ++idxTbl) {
262 isFound = anElement->
Contains(aProcMgr);
264 anElement->
Remove(aProcMgr);
267 G4cout <<
" This Process Manager is removed !! " <<
G4endl;
277 G4cout <<
" This Process Manager is not registered !! " <<
G4endl;
283 if (anElement->
Length() == 0){
284 fProcTblVector->erase(itr);
287 G4bool isSameName =
false;
288 for (itr=fProcTblVector->begin(); itr!=fProcTblVector->end(); ++itr) {
297 G4ProcNameVector::iterator i;
298 for (i=fProcNameVector->begin(); i!=fProcNameVector->end(); ++i) {
300 fProcNameVector->erase(i);
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
G4bool Contains(const G4ProcessManager *pManager) const
const G4String & GetProcessName() const
G4ParticleDefinition * GetParticleType() const
const G4String & GetProcessName() const
void Remove(G4ProcessManager *aProcMgr)
G4VProcess * GetProcess() const
void G4ProcessTable::SetProcessActivation |
( |
const G4String & |
processName, |
|
|
G4bool |
fActive |
|
) |
| |
Definition at line 446 of file G4ProcessTable.cc.
451 G4cout <<
" G4ProcessTable::SetProcessActivation:" ;
452 G4cout <<
" The Process[" << processName <<
"] "<<
G4endl;
457 G4ProcTableVector::iterator itr;
460 for (itr=pTblVector->begin(); itr!=pTblVector->end(); ++itr) {
463 for (
G4int idx = 0 ; idx < anElement->
Length(); idx++) {
G4ProcessManager * GetProcessManager(G4int index) const
const G4String & GetParticleName() const
G4VProcess * SetProcessActivation(G4VProcess *aProcess, G4bool fActive)
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetParticleType() const
G4VProcess * GetProcess() const
std::vector< G4ProcTblElement * > G4ProcTableVector
G4int GetProcessIndex(G4VProcess *) const
Definition at line 478 of file G4ProcessTable.cc.
485 G4cout <<
" G4ProcessTable::SetProcessActivation:" ;
486 G4cout <<
" The Process[" << processName <<
"] "<<
G4endl;
const G4String & GetParticleName() const
G4VProcess * SetProcessActivation(G4VProcess *aProcess, G4bool fActive)
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetParticleType() const
G4int GetProcessIndex(G4VProcess *) const
G4VProcess * FindProcess(const G4String &processName, const G4String &particleName) const
Definition at line 504 of file G4ProcessTable.cc.
509 G4cout <<
" G4ProcessTable::SetProcessActivation:" ;
515 G4ProcTableVector::iterator itr;
518 for (itr=pTblVector->begin(); itr!=pTblVector->end(); ++itr) {
526 for (
G4int idx = 0 ; idx < anElement->
Length(); idx++) {
G4ProcessManager * GetProcessManager(G4int index) const
const G4String & GetParticleName() const
G4VProcess * SetProcessActivation(G4VProcess *aProcess, G4bool fActive)
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetParticleType() const
const G4String & GetProcessName() const
G4VProcess * GetProcess() const
std::vector< G4ProcTblElement * > G4ProcTableVector
G4int GetProcessIndex(G4VProcess *) const
Definition at line 540 of file G4ProcessTable.cc.
547 G4cout <<
" G4ProcessTable::SetProcessActivation:" ;
553 for (
G4int idx = 0; idx < procList->
length(); idx++) {
G4ProcessType GetProcessType() const
const G4String & GetParticleName() const
G4VProcess * SetProcessActivation(G4VProcess *aProcess, G4bool fActive)
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetParticleType() const
const G4String & GetProcessName() const
G4ProcessVector * GetProcessList() const
void G4ProcessTable::SetVerboseLevel |
( |
G4int |
value | ) |
|
The documentation for this class was generated from the following files: