Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <G4MoleculeCounter.hh>
Classes | |
struct | Search |
Public Types | |
using | ReactantList = std::vector<Reactant*> |
using | CounterMapType = std::map<Reactant*, NbMoleculeAgainstTime> |
using | RecordedMolecules = std::unique_ptr<ReactantList> |
Public Types inherited from G4VMoleculeCounter | |
using | Reactant = const G4MolecularConfiguration |
Public Member Functions | |
void | Initialize () override |
void | ResetCounter () override |
void | DontRegister (const G4MoleculeDefinition *) override |
bool | IsRegistered (const G4MoleculeDefinition *) override |
void | RegisterAll () override |
int | GetNMoleculesAtTime (Reactant *molecule, double time) |
const NbMoleculeAgainstTime & | GetNbMoleculeAgainstTime (Reactant *molecule) |
RecordedMolecules | GetRecordedMolecules () |
RecordedTimes | GetRecordedTimes () |
void | SetVerbose (G4int) |
G4int | GetVerbose () |
void | Dump () |
G4bool | IsTimeCheckedForConsistency () const |
void | CheckTimeForConsistency (G4bool flag) |
Public Member Functions inherited from G4VMoleculeCounter | |
void | Use (G4bool flag=true) |
G4bool | InUse () |
Static Public Member Functions | |
static G4MoleculeCounter * | Instance () |
static void | SetTimeSlice (double) |
Static Public Member Functions inherited from G4VMoleculeCounter | |
static void | SetInstance (G4VMoleculeCounter *) |
static void | DeleteInstance () |
static G4VMoleculeCounter * | Instance () |
static void | InitializeInstance () |
Protected Member Functions | |
void | AddAMoleculeAtTime (Reactant *, G4double time, const G4ThreeVector *position=nullptr, int number=1) override |
void | RemoveAMoleculeAtTime (Reactant *, G4double time, const G4ThreeVector *position=nullptr, int number=1) override |
G4bool | SearchTimeMap (Reactant *molecule) |
int | SearchUpperBoundTime (double time, bool sameTypeOfMolecule) |
G4MoleculeCounter () | |
~G4MoleculeCounter () override | |
Protected Member Functions inherited from G4VMoleculeCounter | |
G4VMoleculeCounter ()=default | |
virtual | ~G4VMoleculeCounter ()=default |
Protected Attributes | |
CounterMapType | fCounterMap |
std::map< const G4MoleculeDefinition *, G4bool > | fDontRegister |
G4int | fVerbose |
G4bool | fCheckTimeIsConsistentWithScheduler |
std::unique_ptr< Search > | fpLastSearch |
Protected Attributes inherited from G4VMoleculeCounter | |
G4bool | fUse = false |
Friends | |
class | G4Molecule |
class | G4VMoleculeCounter |
Additional Inherited Members | |
Static Protected Attributes inherited from G4VMoleculeCounter | |
static G4ThreadLocal G4VMoleculeCounter * | fpInstance = nullptr |
Definition at line 69 of file G4MoleculeCounter.hh.
using G4MoleculeCounter::CounterMapType = std::map<Reactant*, NbMoleculeAgainstTime> |
Definition at line 74 of file G4MoleculeCounter.hh.
using G4MoleculeCounter::ReactantList = std::vector<Reactant*> |
Definition at line 73 of file G4MoleculeCounter.hh.
using G4MoleculeCounter::RecordedMolecules = std::unique_ptr<ReactantList> |
Definition at line 75 of file G4MoleculeCounter.hh.
|
protected |
Definition at line 72 of file G4MoleculeCounter.cc.
Referenced by Instance().
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
Implements G4VMoleculeCounter.
Definition at line 209 of file G4MoleculeCounter.cc.
void G4MoleculeCounter::CheckTimeForConsistency | ( | G4bool | flag | ) |
Definition at line 504 of file G4MoleculeCounter.cc.
|
overridevirtual |
Reimplemented from G4VMoleculeCounter.
Definition at line 480 of file G4MoleculeCounter.cc.
void G4MoleculeCounter::Dump | ( | ) |
Definition at line 429 of file G4MoleculeCounter.cc.
Referenced by RemoveAMoleculeAtTime().
const NbMoleculeAgainstTime & G4MoleculeCounter::GetNbMoleculeAgainstTime | ( | Reactant * | molecule | ) |
Definition at line 459 of file G4MoleculeCounter.cc.
int G4MoleculeCounter::GetNMoleculesAtTime | ( | Reactant * | molecule, |
double | time ) |
Definition at line 200 of file G4MoleculeCounter.cc.
Referenced by G4DNAEventScheduler::ClearAndReChargeCounter().
G4MoleculeCounter::RecordedMolecules G4MoleculeCounter::GetRecordedMolecules | ( | ) |
Definition at line 369 of file G4MoleculeCounter.cc.
Referenced by G4DNAEventScheduler::ClearAndReChargeCounter().
RecordedTimes G4MoleculeCounter::GetRecordedTimes | ( | ) |
Definition at line 387 of file G4MoleculeCounter.cc.
G4int G4MoleculeCounter::GetVerbose | ( | ) |
Definition at line 473 of file G4MoleculeCounter.cc.
|
overridevirtual |
Implements G4VMoleculeCounter.
Definition at line 84 of file G4MoleculeCounter.cc.
|
static |
Definition at line 61 of file G4MoleculeCounter.cc.
Referenced by G4DNAEventScheduler::ClearAndReChargeCounter().
|
overridevirtual |
Reimplemented from G4VMoleculeCounter.
Definition at line 487 of file G4MoleculeCounter.cc.
Referenced by Initialize().
G4bool G4MoleculeCounter::IsTimeCheckedForConsistency | ( | ) | const |
Definition at line 499 of file G4MoleculeCounter.cc.
|
overridevirtual |
Reimplemented from G4VMoleculeCounter.
Definition at line 494 of file G4MoleculeCounter.cc.
|
overrideprotectedvirtual |
Implements G4VMoleculeCounter.
Definition at line 269 of file G4MoleculeCounter.cc.
|
overridevirtual |
Implements G4VMoleculeCounter.
Definition at line 447 of file G4MoleculeCounter.cc.
Referenced by G4DNAEventScheduler::ClearAndReChargeCounter().
Definition at line 107 of file G4MoleculeCounter.cc.
Referenced by GetNMoleculesAtTime().
|
protected |
Definition at line 141 of file G4MoleculeCounter.cc.
Referenced by GetNMoleculesAtTime().
|
static |
Definition at line 100 of file G4MoleculeCounter.cc.
void G4MoleculeCounter::SetVerbose | ( | G4int | level | ) |
Definition at line 466 of file G4MoleculeCounter.cc.
|
friend |
Definition at line 148 of file G4MoleculeCounter.hh.
|
friend |
Definition at line 149 of file G4MoleculeCounter.hh.
|
protected |
Definition at line 133 of file G4MoleculeCounter.hh.
Referenced by CheckTimeForConsistency(), G4MoleculeCounter(), IsTimeCheckedForConsistency(), and RemoveAMoleculeAtTime().
|
protected |
Definition at line 129 of file G4MoleculeCounter.hh.
Referenced by AddAMoleculeAtTime(), Dump(), GetNbMoleculeAgainstTime(), GetRecordedMolecules(), GetRecordedTimes(), Initialize(), RemoveAMoleculeAtTime(), ResetCounter(), SearchTimeMap(), and SearchUpperBoundTime().
|
protected |
Definition at line 130 of file G4MoleculeCounter.hh.
Referenced by AddAMoleculeAtTime(), DontRegister(), IsRegistered(), RegisterAll(), and RemoveAMoleculeAtTime().
|
protected |
Definition at line 146 of file G4MoleculeCounter.hh.
Referenced by ResetCounter(), SearchTimeMap(), and SearchUpperBoundTime().
|
protected |
Definition at line 132 of file G4MoleculeCounter.hh.
Referenced by AddAMoleculeAtTime(), G4MoleculeCounter(), GetRecordedMolecules(), GetVerbose(), RemoveAMoleculeAtTime(), ResetCounter(), and SetVerbose().