Geant4  10.02.p02
G4MoleculeCounter Class Reference

#include <G4MoleculeCounter.hh>

+ Collaboration diagram for G4MoleculeCounter:

Classes

struct  Search
 

Public Types

typedef std::map
< G4MolecularConfiguration
*, NbMoleculeAgainstTime
CounterMapType
 
typedef stdunique_ptr
< std::vector
< G4MolecularConfiguration * > > 
RecordedMolecules
 

Public Member Functions

virtual void AddAMoleculeAtTime (G4MolecularConfiguration *, G4double time, int number=1)
 
virtual void RemoveAMoleculeAtTime (G4MolecularConfiguration *, G4double time, int number=1)
 
void Initialize ()
 
G4bool SearchTimeMap (G4MolecularConfiguration *molecule)
 
int SearchUpperBoundTime (double time, bool sameTypeOfMolecule)
 
int GetNMoleculesAtTime (G4MolecularConfiguration *molecule, double time)
 
const NbMoleculeAgainstTimeGetNbMoleculeAgainstTime (G4MolecularConfiguration *molecule)
 
RecordedMolecules GetRecordedMolecules ()
 
RecordedTimes GetRecordedTimes ()
 
virtual void DontRegister (const G4MoleculeDefinition *)
 
virtual bool IsRegistered (const G4MoleculeDefinition *)
 
virtual void RegisterAll ()
 
void SetVerbose (G4int)
 
G4int GetVerbose ()
 
void SetTimeSlice (double)
 
virtual void ResetCounter ()
 
void Dump ()
 
G4bool IsTimeCheckedForConsistency () const
 
void CheckTimeForConsistency (G4bool flag)
 

Static Public Member Functions

static void DeleteInstance ()
 
static G4MoleculeCounterInstance ()
 
static G4MoleculeCounterGetMoleculeCounter ()
 
static void InitializeInstance ()
 
static void Use (G4bool flag=true)
 
static G4bool InUse ()
 

Protected Member Functions

 G4MoleculeCounter ()
 
virtual ~G4MoleculeCounter ()
 

Protected Attributes

CounterMapType fCounterMap
 
std::map< const
G4MoleculeDefinition *, G4bool
fDontRegister
 
G4int fVerbose
 
G4bool fCheckTimeIsConsistentWithScheduler
 
stdunique_ptr< SearchfpLastSearch
 

Static Protected Attributes

static G4ThreadLocal
G4MoleculeCounter
fpInstance = 0
 
static G4bool fUse = false
 

Friends

class G4Molecule
 

Detailed Description

Definition at line 87 of file G4MoleculeCounter.hh.

Member Typedef Documentation

Constructor & Destructor Documentation

G4MoleculeCounter::G4MoleculeCounter ( )
protected

Definition at line 55 of file G4MoleculeCounter.cc.

References compDoubleWithPrecision::fPrecision, and picosecond.

G4MoleculeCounter::~G4MoleculeCounter ( )
protectedvirtual

Definition at line 65 of file G4MoleculeCounter.cc.

Member Function Documentation

void G4MoleculeCounter::AddAMoleculeAtTime ( G4MolecularConfiguration molecule,
G4double  time,
int  number = 1 
)
virtual

Definition at line 234 of file G4MoleculeCounter.cc.

References FatalException, compDoubleWithPrecision::fPrecision, G4BestUnit, G4cout, G4endl, G4Exception(), G4MolecularConfiguration::GetDefinition(), G4MolecularConfiguration::GetName(), and G4Scheduler::Instance().

Referenced by G4Molecule::BuildTrack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MoleculeCounter::CheckTimeForConsistency ( G4bool  flag)
inline

Definition at line 192 of file G4MoleculeCounter.hh.

void G4MoleculeCounter::DeleteInstance ( )
static

Definition at line 83 of file G4MoleculeCounter.cc.

Referenced by G4DNAChemistryManager::Clear().

+ Here is the caller graph for this function:

void G4MoleculeCounter::DontRegister ( const G4MoleculeDefinition molDef)
inlinevirtual

Definition at line 224 of file G4MoleculeCounter.hh.

References fDontRegister.

void G4MoleculeCounter::Dump ( )

Definition at line 576 of file G4MoleculeCounter.cc.

References G4BestUnit, G4cout, G4endl, and G4MolecularConfiguration::GetName().

+ Here is the call graph for this function:

G4MoleculeCounter * G4MoleculeCounter::GetMoleculeCounter ( )
static

Definition at line 69 of file G4MoleculeCounter.cc.

Referenced by G4Molecule::BuildTrack(), and G4Molecule::~G4Molecule().

+ Here is the caller graph for this function:

const NbMoleculeAgainstTime & G4MoleculeCounter::GetNbMoleculeAgainstTime ( G4MolecularConfiguration molecule)
inline

Definition at line 209 of file G4MoleculeCounter.hh.

References fCounterMap.

int G4MoleculeCounter::GetNMoleculesAtTime ( G4MolecularConfiguration molecule,
double  time 
)

Definition at line 226 of file G4MoleculeCounter.cc.

G4MoleculeCounter::RecordedMolecules G4MoleculeCounter::GetRecordedMolecules ( )

Definition at line 509 of file G4MoleculeCounter.cc.

References G4cout, and G4endl.

RecordedTimes G4MoleculeCounter::GetRecordedTimes ( )

Definition at line 526 of file G4MoleculeCounter.cc.

G4int G4MoleculeCounter::GetVerbose ( )
inline

Definition at line 219 of file G4MoleculeCounter.hh.

References fVerbose.

void G4MoleculeCounter::Initialize ( )

Definition at line 97 of file G4MoleculeCounter.cc.

References G4MoleculeTable::GetConfigurationIterator(), G4MoleculeTable::Instance(), and G4MoleculeIterator< MOLECULE >::value().

+ Here is the call graph for this function:

void G4MoleculeCounter::InitializeInstance ( )
static

Definition at line 92 of file G4MoleculeCounter.cc.

Referenced by G4DNAChemistryManager::InitializeThread().

+ Here is the caller graph for this function:

G4MoleculeCounter * G4MoleculeCounter::Instance ( void  )
static

Definition at line 76 of file G4MoleculeCounter.cc.

Referenced by G4DNAElectronHoleRecombination::MakeReaction(), and G4DNAChemistryManager::Run().

+ Here is the caller graph for this function:

G4bool G4MoleculeCounter::InUse ( )
static

Definition at line 49 of file G4MoleculeCounter.cc.

Referenced by G4Molecule::BuildTrack(), and G4DNAElectronHoleRecombination::MakeReaction().

+ Here is the caller graph for this function:

bool G4MoleculeCounter::IsRegistered ( const G4MoleculeDefinition molDef)
inlinevirtual

Definition at line 229 of file G4MoleculeCounter.hh.

References fDontRegister.

G4bool G4MoleculeCounter::IsTimeCheckedForConsistency ( ) const
inline

Definition at line 187 of file G4MoleculeCounter.hh.

References fCheckTimeIsConsistentWithScheduler.

void G4MoleculeCounter::RegisterAll ( )
inlinevirtual

Definition at line 235 of file G4MoleculeCounter.hh.

References fDontRegister.

void G4MoleculeCounter::RemoveAMoleculeAtTime ( G4MolecularConfiguration molecule,
G4double  time,
int  number = 1 
)
virtual

Definition at line 334 of file G4MoleculeCounter.cc.

References FatalErrorInArgument, FatalException, compDoubleWithPrecision::fPrecision, G4BestUnit, G4cout, G4endl, G4Exception(), G4MolecularConfiguration::GetDefinition(), G4MolecularConfiguration::GetName(), G4Scheduler::Instance(), and G4MolecularConfiguration::PrintState().

Referenced by G4Molecule::~G4Molecule().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MoleculeCounter::ResetCounter ( )
inlinevirtual

Definition at line 198 of file G4MoleculeCounter.hh.

References fCounterMap, fpLastSearch, fVerbose, G4cout, and G4endl.

Referenced by G4DNAChemistryManager::Run().

+ Here is the caller graph for this function:

G4bool G4MoleculeCounter::SearchTimeMap ( G4MolecularConfiguration molecule)

Definition at line 114 of file G4MoleculeCounter.cc.

int G4MoleculeCounter::SearchUpperBoundTime ( double  time,
bool  sameTypeOfMolecule 
)

Definition at line 144 of file G4MoleculeCounter.cc.

void G4MoleculeCounter::SetTimeSlice ( double  timeSlice)

Definition at line 109 of file G4MoleculeCounter.cc.

References compDoubleWithPrecision::fPrecision.

void G4MoleculeCounter::SetVerbose ( G4int  level)
inline

Definition at line 214 of file G4MoleculeCounter.hh.

References fVerbose.

void G4MoleculeCounter::Use ( G4bool  flag = true)
static

Definition at line 44 of file G4MoleculeCounter.cc.

Friends And Related Function Documentation

friend class G4Molecule
friend

Definition at line 133 of file G4MoleculeCounter.hh.

Member Data Documentation

G4bool G4MoleculeCounter::fCheckTimeIsConsistentWithScheduler
protected

Definition at line 112 of file G4MoleculeCounter.hh.

Referenced by IsTimeCheckedForConsistency().

CounterMapType G4MoleculeCounter::fCounterMap
protected

Definition at line 107 of file G4MoleculeCounter.hh.

Referenced by GetNbMoleculeAgainstTime(), and ResetCounter().

std::map<const G4MoleculeDefinition*, G4bool> G4MoleculeCounter::fDontRegister
protected

Definition at line 108 of file G4MoleculeCounter.hh.

Referenced by DontRegister(), IsRegistered(), and RegisterAll().

G4ThreadLocal G4MoleculeCounter * G4MoleculeCounter::fpInstance = 0
staticprotected

Definition at line 105 of file G4MoleculeCounter.hh.

stdunique_ptr<Search> G4MoleculeCounter::fpLastSearch
protected

Definition at line 125 of file G4MoleculeCounter.hh.

Referenced by ResetCounter().

G4bool G4MoleculeCounter::fUse = false
staticprotected

Definition at line 109 of file G4MoleculeCounter.hh.

G4int G4MoleculeCounter::fVerbose
protected

Definition at line 111 of file G4MoleculeCounter.hh.

Referenced by GetVerbose(), ResetCounter(), and SetVerbose().


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