Geant4
10.03
|
#include <G4MoleculeCounter.hh>
Classes | |
struct | Search |
Public Types | |
typedef std::map < G4MolecularConfiguration *, NbMoleculeAgainstTime > | CounterMapType |
typedef std::unique_ptr < std::vector < G4MolecularConfiguration * > > | RecordedMolecules |
Public Member Functions | |
void | Initialize () override |
void | ResetCounter () override |
void | AddAMoleculeAtTime (G4MolecularConfiguration *, G4double time, const G4ThreeVector *position=nullptr, int number=1) override |
void | RemoveAMoleculeAtTime (G4MolecularConfiguration *, G4double time, const G4ThreeVector *position=nullptr, int number=1) override |
void | DontRegister (const G4MoleculeDefinition *) override |
bool | IsRegistered (const G4MoleculeDefinition *) override |
void | RegisterAll () override |
int | GetNMoleculesAtTime (G4MolecularConfiguration *molecule, double time) |
const NbMoleculeAgainstTime & | GetNbMoleculeAgainstTime (G4MolecularConfiguration *molecule) |
RecordedMolecules | GetRecordedMolecules () |
RecordedTimes | GetRecordedTimes () |
void | SetVerbose (G4int) |
G4int | GetVerbose () |
void | SetTimeSlice (double) |
void | Dump () |
G4bool | IsTimeCheckedForConsistency () const |
void | CheckTimeForConsistency (G4bool flag) |
Static Public Member Functions | |
static G4MoleculeCounter * | Instance () |
Static Public Member Functions inherited from G4VMoleculeCounter | |
static void | SetInstance (G4VMoleculeCounter *) |
static void | DeleteInstance () |
static G4VMoleculeCounter * | Instance () |
static void | InitializeInstance () |
static void | Use (G4bool flag=true) |
static G4bool | InUse () |
Protected Member Functions | |
G4MoleculeCounter () | |
virtual | ~G4MoleculeCounter () |
G4bool | SearchTimeMap (G4MolecularConfiguration *molecule) |
int | SearchUpperBoundTime (double time, bool sameTypeOfMolecule) |
Protected Member Functions inherited from G4VMoleculeCounter | |
G4VMoleculeCounter () | |
virtual | ~G4VMoleculeCounter () |
Protected Attributes | |
CounterMapType | fCounterMap |
std::map< const G4MoleculeDefinition *, G4bool > | fDontRegister |
G4int | fVerbose |
G4bool | fCheckTimeIsConsistentWithScheduler |
std::unique_ptr< Search > | fpLastSearch |
Friends | |
class | G4Molecule |
class | G4VMoleculeCounter |
Additional Inherited Members | |
Static Protected Attributes inherited from G4VMoleculeCounter | |
static G4ThreadLocal G4VMoleculeCounter * | fpInstance = 0 |
static G4bool | fUse = false |
Definition at line 79 of file G4MoleculeCounter.hh.
typedef std::map<G4MolecularConfiguration*, NbMoleculeAgainstTime> G4MoleculeCounter::CounterMapType |
Definition at line 84 of file G4MoleculeCounter.hh.
typedef std::unique_ptr<std::vector<G4MolecularConfiguration*> > G4MoleculeCounter::RecordedMolecules |
Definition at line 86 of file G4MoleculeCounter.hh.
|
protected |
Definition at line 51 of file G4MoleculeCounter.cc.
References compDoubleWithPrecision::fPrecision, and picosecond.
|
protectedvirtual |
Definition at line 63 of file G4MoleculeCounter.cc.
|
overridevirtual |
Implements G4VMoleculeCounter.
Definition at line 217 of file G4MoleculeCounter.cc.
References FatalException, compDoubleWithPrecision::fPrecision, G4BestUnit, G4cout, G4endl, G4Exception(), G4MolecularConfiguration::GetDefinition(), G4MolecularConfiguration::GetName(), and G4Scheduler::Instance().
|
inline |
Definition at line 170 of file G4MoleculeCounter.hh.
|
inlineoverridevirtual |
Reimplemented from G4VMoleculeCounter.
Definition at line 218 of file G4MoleculeCounter.hh.
References fDontRegister.
void G4MoleculeCounter::Dump | ( | ) |
Definition at line 440 of file G4MoleculeCounter.cc.
References G4BestUnit, G4cout, G4endl, and G4MolecularConfiguration::GetName().
|
inline |
Definition at line 196 of file G4MoleculeCounter.hh.
References fCounterMap.
int G4MoleculeCounter::GetNMoleculesAtTime | ( | G4MolecularConfiguration * | molecule, |
double | time | ||
) |
Definition at line 208 of file G4MoleculeCounter.cc.
Referenced by ScoreSpecies::EndOfEvent().
G4MoleculeCounter::RecordedMolecules G4MoleculeCounter::GetRecordedMolecules | ( | ) |
Definition at line 368 of file G4MoleculeCounter.cc.
References G4cout, and G4endl.
Referenced by ScoreSpecies::EndOfEvent().
RecordedTimes G4MoleculeCounter::GetRecordedTimes | ( | ) |
Definition at line 387 of file G4MoleculeCounter.cc.
|
inline |
Definition at line 210 of file G4MoleculeCounter.hh.
References fVerbose.
|
overridevirtual |
Implements G4VMoleculeCounter.
Definition at line 69 of file G4MoleculeCounter.cc.
References G4MoleculeTable::GetConfigurationIterator(), G4MoleculeTable::Instance(), and G4MoleculeIterator< MOLECULE >::value().
|
static |
Definition at line 44 of file G4MoleculeCounter.cc.
Referenced by ScoreSpecies::EndOfEvent().
|
inlineoverridevirtual |
Reimplemented from G4VMoleculeCounter.
Definition at line 226 of file G4MoleculeCounter.hh.
References fDontRegister.
|
inline |
Definition at line 165 of file G4MoleculeCounter.hh.
References fCheckTimeIsConsistentWithScheduler.
|
inlineoverridevirtual |
Reimplemented from G4VMoleculeCounter.
Definition at line 234 of file G4MoleculeCounter.hh.
References fDontRegister.
|
overridevirtual |
Implements G4VMoleculeCounter.
Definition at line 272 of file G4MoleculeCounter.cc.
References FatalErrorInArgument, FatalException, compDoubleWithPrecision::fPrecision, G4BestUnit, G4cout, G4endl, G4Exception(), G4MolecularConfiguration::GetDefinition(), G4MolecularConfiguration::GetName(), G4Scheduler::Instance(), and G4MolecularConfiguration::PrintState().
|
inlineoverridevirtual |
Implements G4VMoleculeCounter.
Definition at line 183 of file G4MoleculeCounter.hh.
References fCounterMap, fpLastSearch, fVerbose, G4cout, and G4endl.
Referenced by ScoreSpecies::EndOfEvent().
|
protected |
Definition at line 97 of file G4MoleculeCounter.cc.
|
protected |
Definition at line 129 of file G4MoleculeCounter.cc.
void G4MoleculeCounter::SetTimeSlice | ( | double | timeSlice | ) |
Definition at line 90 of file G4MoleculeCounter.cc.
References compDoubleWithPrecision::fPrecision.
|
inline |
Definition at line 203 of file G4MoleculeCounter.hh.
References fVerbose.
|
friend |
Definition at line 117 of file G4MoleculeCounter.hh.
|
friend |
Definition at line 118 of file G4MoleculeCounter.hh.
|
protected |
Definition at line 97 of file G4MoleculeCounter.hh.
Referenced by IsTimeCheckedForConsistency().
|
protected |
Definition at line 93 of file G4MoleculeCounter.hh.
Referenced by GetNbMoleculeAgainstTime(), and ResetCounter().
|
protected |
Definition at line 94 of file G4MoleculeCounter.hh.
Referenced by DontRegister(), IsRegistered(), and RegisterAll().
|
protected |
Definition at line 109 of file G4MoleculeCounter.hh.
Referenced by ResetCounter().
|
protected |
Definition at line 96 of file G4MoleculeCounter.hh.
Referenced by GetVerbose(), ResetCounter(), and SetVerbose().