#include <G4ProcessTable.hh>
|
void | DeRegisterProcess (G4VProcess *) |
|
void | DumpInfo (G4VProcess *process, const G4ParticleDefinition *particle=nullptr) |
|
G4VProcess * | FindProcess (const G4String &processName, const G4ParticleDefinition *particle) const |
|
G4VProcess * | FindProcess (const G4String &processName, const G4ProcessManager *processManager) const |
|
G4VProcess * | FindProcess (const G4String &processName, const G4String &particleName) const |
|
G4VProcess * | FindProcess (G4int processSubType, const G4ParticleDefinition *particle) const |
|
G4VProcess * | FindProcess (G4ProcessType processType, const G4ParticleDefinition *particle) const |
|
G4ProcessVector * | FindProcesses () |
|
G4ProcessVector * | FindProcesses (const G4ProcessManager *pManager) |
|
G4ProcessVector * | FindProcesses (const G4String &processName) |
|
G4ProcessVector * | FindProcesses (G4ProcessType processType) |
|
| G4ProcessTable (const G4ProcessTable &)=delete |
|
G4ProcNameVector * | GetNameList () |
|
G4ProcTableVector * | GetProcTableVector () |
|
G4int | GetVerboseLevel () const |
|
G4int | Insert (G4VProcess *aProcess, G4ProcessManager *aProcMgr) |
|
G4int | Length () const |
|
G4bool | operator!= (const G4ProcessTable &right) const =delete |
|
G4ProcessTable & | operator= (const G4ProcessTable &)=delete |
|
G4bool | operator== (const G4ProcessTable &right) const =delete |
|
void | RegisterProcess (G4VProcess *) |
|
G4int | Remove (G4VProcess *aProcess, G4ProcessManager *aProcMgr) |
|
void | SetProcessActivation (const G4String &processName, const G4ParticleDefinition *particle, G4bool fActive) |
|
void | SetProcessActivation (const G4String &processName, const G4String &particleName, G4bool fActive) |
|
void | SetProcessActivation (const G4String &processName, G4bool fActive) |
|
void | SetProcessActivation (const G4String &processName, G4ProcessManager *processManager, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, const G4ParticleDefinition *particle, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, const G4String &particleName, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, G4bool fActive) |
|
void | SetProcessActivation (G4ProcessType processType, G4ProcessManager *processManager, G4bool fActive) |
|
void | SetVerboseLevel (G4int value) |
|
| ~G4ProcessTable () |
|
Definition at line 48 of file G4ProcessTable.hh.
◆ G4ProcNameVector
◆ G4ProcTableVector
◆ ~G4ProcessTable()
G4ProcessTable::~G4ProcessTable |
( |
| ) |
|
◆ G4ProcessTable() [1/2]
◆ G4ProcessTable() [2/2]
G4ProcessTable::G4ProcessTable |
( |
| ) |
|
|
private |
◆ DeRegisterProcess()
void G4ProcessTable::DeRegisterProcess |
( |
G4VProcess * |
ptr | ) |
|
◆ DumpInfo()
Definition at line 635 of file G4ProcessTable.cc.
637{
640 G4bool isFoundInTbl =
false;
643
646 {
647 anElement = (*itr);
648 if ( anElement == nullptr ) continue;
650 {
651 if (particle != nullptr)
652 {
653 for (idx=0; idx<anElement->
Length(); ++idx)
654 {
657 {
658 isFoundInTbl = true;
659 break;
660 }
661 }
662 }
663 else
664 {
665 isFoundInTbl = true;
666 }
667 break;
668 }
669 }
670 if (!isFoundInTbl ) return;
671
676 if (particle == nullptr)
677 {
678 for (idx=0; idx<anElement->
Length(); ++idx)
679 {
683#ifdef G4VERBOSE
685 {
690 }
691#endif
692 }
693 }
694 else
695 {
698#ifdef G4VERBOSE
700 {
705 }
706#endif
707 }
708}
const G4String & GetParticleName() const
G4VProcess * GetProcess() const
G4ProcessManager * GetProcessManager(G4int index) const
G4ParticleDefinition * GetParticleType() const
void SetVerboseLevel(G4int value)
G4int GetVerboseLevel() const
void SetVerboseLevel(G4int value)
G4int GetVerboseLevel() const
virtual void DumpInfo() const
References G4ProcessManager::DumpInfo(), G4VProcess::DumpInfo(), fProcTblVector, G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ProcessManager::GetParticleType(), G4ProcTblElement::GetProcess(), G4ProcTblElement::GetProcessManager(), G4ProcessManager::GetVerboseLevel(), G4VProcess::GetVerboseLevel(), G4ProcTblElement::Length(), G4ProcessManager::SetVerboseLevel(), G4VProcess::SetVerboseLevel(), and verboseLevel.
Referenced by export_G4ProcessTable(), and G4ProcessTableMessenger::SetNewValue().
◆ ExtractProcesses()
◆ Find() [1/2]
◆ Find() [2/2]
◆ FindProcess() [1/5]
◆ FindProcess() [2/5]
◆ FindProcess() [3/5]
◆ FindProcess() [4/5]
◆ FindProcess() [5/5]
◆ FindProcesses() [1/4]
◆ FindProcesses() [2/4]
◆ FindProcesses() [3/4]
◆ FindProcesses() [4/4]
◆ GetNameList()
◆ GetProcessTable()
Definition at line 108 of file G4ProcessTable.cc.
References fProcessTable, and G4ThreadLocalSingleton< T >::Instance().
Referenced by G4ProcessManager::AddProcess(), G4EmDNAChemistry::ConstructProcess(), G4EmDNAChemistry_option1::ConstructProcess(), G4EmDNAChemistry_option3::ConstructProcess(), G4SpinDecayPhysics::ConstructProcess(), G4EmDNAChemistry_option2::ConstructProcess(), export_G4ProcessTable(), G4ProcessManager::G4ProcessManager(), G4RunManager::G4RunManager(), G4VProcess::G4VProcess(), and G4ProcessManager::RemoveProcess().
◆ GetProcTableVector()
◆ GetVerboseLevel()
G4int G4ProcessTable::GetVerboseLevel |
( |
| ) |
const |
|
inline |
◆ Insert()
Definition at line 120 of file G4ProcessTable.cc.
122{
123 if ( (aProcess ==
nullptr) || ( aProcMgr ==
nullptr ) || !
fProcTblVector )
124 {
125#ifdef G4VERBOSE
127 {
128 G4cout <<
"G4ProcessTable::Insert() - arguments are null pointer "
129 << aProcess <<
"," << aProcMgr <<
G4endl;
130 }
131#endif
132 return -1;
133 }
134
135#ifdef G4VERBOSE
137 {
138 G4cout <<
"G4ProcessTable::Insert() -";
142 }
143#endif
144
148
149 for (; idxTbl < nidx; ++idxTbl)
150 {
151 anElement = (*fProcTblVector)[idxTbl];
152 if(!anElement) { continue; }
153
155 {
156
157
159 {
160 anElement->
Insert(aProcMgr);
161#ifdef G4VERBOSE
163 {
164 G4cout <<
" This Process Manager is registered !! " <<
G4endl;
165 }
166#endif
167 }
168 return idxTbl;
169 }
170 }
171
173 {
175 }
177 anElement->
Insert(aProcMgr);
180 return nidx;
181}
G4bool Contains(const G4ProcessManager *pManager) const
void Insert(G4ProcessManager *aProcMgr)
const G4String & GetProcessName() const
References G4ProcTblElement::Contains(), fProcNameVector, fProcTblVector, G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ProcessManager::GetParticleType(), G4ProcTblElement::GetProcess(), G4VProcess::GetProcessName(), G4ProcTblElement::Insert(), and verboseLevel.
Referenced by G4ProcessManager::AddProcess(), and G4ProcessManager::G4ProcessManager().
◆ Length()
G4int G4ProcessTable::Length |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator=()
◆ operator==()
◆ RegisterProcess()
void G4ProcessTable::RegisterProcess |
( |
G4VProcess * |
ptr | ) |
|
◆ Remove()
Definition at line 185 of file G4ProcessTable.cc.
187{
188 if ( (aProcess ==
nullptr) || ( aProcMgr ==
nullptr ) || !
fProcTblVector )
189 {
190#ifdef G4VERBOSE
192 {
193 G4cout <<
"G4ProcessTable::Remove() - arguments are null pointer "
195 }
196#endif
197 return -1;
198 }
199
200#ifdef G4VERBOSE
202 {
203 G4cout <<
"G4ProcessTable::Remove() -";
207 }
208#endif
209
213
214 for (; idxTbl < nidx; ++idxTbl)
215 {
216 anElement = (*fProcTblVector)[idxTbl];
217 if(!anElement) { continue; }
218
219
221 {
223 {
224
225 anElement->
Remove(aProcMgr);
226#ifdef G4VERBOSE
228 {
229 G4cout <<
" This Process Manager is removed !! " <<
G4endl;
230 }
231#endif
232 if(anElement->
Length() == 0)
233 {
234 delete anElement;
235 (*fProcTblVector)[idxTbl] = nullptr;
236#ifdef G4VERBOSE
238 {
240 }
241#endif
242 }
243 return idxTbl;
244 }
245 }
246 }
247#ifdef G4VERBOSE
249 {
250 G4cout <<
" This Process Manager is not registered to the process!! "
252 }
253#endif
254 return -1;
255}
void Remove(G4ProcessManager *aProcMgr)
References G4ProcTblElement::Contains(), fProcTblVector, G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ProcessManager::GetParticleType(), G4ProcTblElement::GetProcess(), G4VProcess::GetProcessName(), G4ProcTblElement::Length(), G4ProcTblElement::Remove(), and verboseLevel.
Referenced by G4ProcessManager::RemoveProcess().
◆ SetProcessActivation() [1/8]
◆ SetProcessActivation() [2/8]
void G4ProcessTable::SetProcessActivation |
( |
const G4String & |
processName, |
|
|
const G4String & |
particleName, |
|
|
G4bool |
fActive |
|
) |
| |
◆ SetProcessActivation() [3/8]
void G4ProcessTable::SetProcessActivation |
( |
const G4String & |
processName, |
|
|
G4bool |
fActive |
|
) |
| |
Definition at line 492 of file G4ProcessTable.cc.
494{
495#ifdef G4VERBOSE
497 {
498 G4cout <<
" G4ProcessTable::SetProcessActivation() -" ;
499 G4cout <<
" The Process[" << processName <<
"] "<<
G4endl;
500 }
501#endif
502
505
506 for (auto itr=pTblVector->cbegin(); itr!=pTblVector->cend(); ++itr)
507 {
508 anElement = (*itr);
509 if ( anElement == nullptr ) continue;
511 for (
G4int idx = 0 ; idx < anElement->
Length(); ++idx)
512 {
515#ifdef G4VERBOSE
517 {
521 }
522#endif
523 }
524 }
525}
G4VProcess * SetProcessActivation(G4VProcess *aProcess, G4bool fActive)
G4int GetProcessIndex(G4VProcess *) const
G4ProcTableVector * Find(const G4String &processName)
References Find(), G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ProcessManager::GetParticleType(), G4ProcTblElement::GetProcess(), G4ProcessManager::GetProcessIndex(), G4ProcTblElement::GetProcessManager(), G4ProcTblElement::Length(), G4ProcessManager::SetProcessActivation(), and verboseLevel.
Referenced by G4ProcessTableMessenger::SetNewValue(), and SetProcessActivation().
◆ SetProcessActivation() [4/8]
◆ SetProcessActivation() [5/8]
◆ SetProcessActivation() [6/8]
◆ SetProcessActivation() [7/8]
Definition at line 559 of file G4ProcessTable.cc.
561{
562#ifdef G4VERBOSE
564 {
565 G4cout <<
" G4ProcessTable::SetProcessActivation() -" ;
567 }
568#endif
569
572
573 for (auto itr=pTblVector->cbegin(); itr!=pTblVector->cend(); ++itr)
574 {
575 anElement = (*itr);
576 if ( anElement == nullptr ) continue;
578#ifdef G4VERBOSE
580 {
582 }
583#endif
584 for (
G4int idx = 0 ; idx < anElement->
Length(); ++idx)
585 {
588#ifdef G4VERBOSE
590 {
593 }
594#endif
595 }
596 }
597}
References Find(), G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ProcessManager::GetParticleType(), G4ProcTblElement::GetProcess(), G4ProcessManager::GetProcessIndex(), G4ProcTblElement::GetProcessManager(), G4VProcess::GetProcessName(), G4ProcTblElement::Length(), G4ProcessManager::SetProcessActivation(), and verboseLevel.
◆ SetProcessActivation() [8/8]
◆ SetVerboseLevel()
void G4ProcessTable::SetVerboseLevel |
( |
G4int |
value | ) |
|
|
inline |
◆ G4ThreadLocalSingleton< G4ProcessTable >
◆ fListProcesses
std::vector<G4VProcess*> G4ProcessTable::fListProcesses |
|
private |
◆ fProcessTable
◆ fProcNameVector
◆ fProcTblMessenger
◆ fProcTblVector
◆ tmpTblVector
◆ verboseLevel
G4int G4ProcessTable::verboseLevel = 1 |
|
private |
The documentation for this class was generated from the following files: