Geant4  10.01.p02
G4MoleculeCounter Class Reference

#include <G4MoleculeCounter.hh>

+ Collaboration diagram for G4MoleculeCounter:

Classes

struct  Search
 

Public Types

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

Public Member Functions

void Initialize ()
 
G4bool SearchTimeMap (const G4Molecule &molecule)
 
int SearchUpperBoundTime (double time, bool sameTypeOfMolecule)
 
int GetNMoleculesAtTime (const G4Molecule &molecule, double time)
 
const NbMoleculeAgainstTimeGetNbMoleculeAgainstTime (const G4Molecule &molecule)
 
RecordedMolecules GetRecordedMolecules ()
 
RecordedTimes GetRecordedTimes ()
 
virtual void DontRegister (const G4MoleculeDefinition *)
 
virtual void RegisterAll ()
 
void Use (G4bool flag=true)
 
G4bool InUse ()
 
void SetVerbose (G4int)
 
G4int GetVerbose ()
 
void SetTimeSlice (double)
 
virtual void ResetCounter ()
 

Static Public Member Functions

static void DeleteInstance ()
 
static G4MoleculeCounterInstance ()
 
static G4MoleculeCounterGetMoleculeCounter ()
 
static void InitializeInstance ()
 

Protected Member Functions

 G4MoleculeCounter ()
 
virtual ~G4MoleculeCounter ()
 
virtual void AddAMoleculeAtTime (const G4Molecule &, G4double)
 
virtual void RemoveAMoleculeAtTime (const G4Molecule &, G4double)
 

Protected Attributes

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

Static Protected Attributes

static G4ThreadLocal
G4MoleculeCounter
fpInstance = 0
 
static G4bool fUse = FALSE
 

Friends

class G4Molecule
 

Detailed Description

Definition at line 81 of file G4MoleculeCounter.hh.

Member Typedef Documentation

Definition at line 85 of file G4MoleculeCounter.hh.

Constructor & Destructor Documentation

G4MoleculeCounter::G4MoleculeCounter ( )
protected

Definition at line 39 of file G4MoleculeCounter.cc.

virtual G4MoleculeCounter::~G4MoleculeCounter ( )
inlineprotectedvirtual

Definition at line 97 of file G4MoleculeCounter.hh.

Member Function Documentation

void G4MoleculeCounter::AddAMoleculeAtTime ( const G4Molecule molecule,
G4double  time 
)
protectedvirtual

Definition at line 211 of file G4MoleculeCounter.cc.

References G4BestUnit, G4cout, G4endl, G4Molecule::GetDefinition(), and G4Molecule::GetName().

Referenced by G4Molecule::BuildTrack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MoleculeCounter::DeleteInstance ( )
static

Definition at line 60 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 199 of file G4MoleculeCounter.hh.

References fDontRegister.

G4MoleculeCounter * G4MoleculeCounter::GetMoleculeCounter ( )
static

Definition at line 46 of file G4MoleculeCounter.cc.

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

+ Here is the caller graph for this function:

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

Definition at line 184 of file G4MoleculeCounter.hh.

References fCounterMap.

int G4MoleculeCounter::GetNMoleculesAtTime ( const G4Molecule molecule,
double  time 
)

Definition at line 203 of file G4MoleculeCounter.cc.

G4MoleculeCounter::RecordedMolecules G4MoleculeCounter::GetRecordedMolecules ( )

Definition at line 405 of file G4MoleculeCounter.cc.

References G4cout, and G4endl.

RecordedTimes G4MoleculeCounter::GetRecordedTimes ( )

Definition at line 422 of file G4MoleculeCounter.cc.

G4int G4MoleculeCounter::GetVerbose ( )
inline

Definition at line 194 of file G4MoleculeCounter.hh.

References fVerbose.

void G4MoleculeCounter::Initialize ( )

Definition at line 74 of file G4MoleculeCounter.cc.

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

+ Here is the call graph for this function:

void G4MoleculeCounter::InitializeInstance ( )
static

Definition at line 69 of file G4MoleculeCounter.cc.

Referenced by G4DNAChemistryManager::InitializeThread().

+ Here is the caller graph for this function:

G4MoleculeCounter * G4MoleculeCounter::Instance ( void  )
static

Definition at line 53 of file G4MoleculeCounter.cc.

G4bool G4MoleculeCounter::InUse ( )
inline

Definition at line 162 of file G4MoleculeCounter.hh.

References fUse.

Referenced by G4Molecule::BuildTrack().

+ Here is the caller graph for this function:

void G4MoleculeCounter::RegisterAll ( )
inlinevirtual

Definition at line 204 of file G4MoleculeCounter.hh.

References fDontRegister.

void G4MoleculeCounter::RemoveAMoleculeAtTime ( const G4Molecule molecule,
G4double  time 
)
protectedvirtual

Definition at line 285 of file G4MoleculeCounter.cc.

References FatalErrorInArgument, compDoubleWithPrecision::fPrecision, G4BestUnit, G4cout, G4endl, G4Exception(), G4Molecule::GetDefinition(), G4Molecule::GetName(), and G4Molecule::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 178 of file G4MoleculeCounter.hh.

References fCounterMap.

G4bool G4MoleculeCounter::SearchTimeMap ( const G4Molecule molecule)

Definition at line 91 of file G4MoleculeCounter.cc.

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

Definition at line 121 of file G4MoleculeCounter.cc.

void G4MoleculeCounter::SetTimeSlice ( double  timeSlice)

Definition at line 86 of file G4MoleculeCounter.cc.

References compDoubleWithPrecision::fPrecision.

void G4MoleculeCounter::SetVerbose ( G4int  level)
inline

Definition at line 189 of file G4MoleculeCounter.hh.

References fVerbose.

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

Definition at line 158 of file G4MoleculeCounter.hh.

Friends And Related Function Documentation

friend class G4Molecule
friend

Definition at line 126 of file G4MoleculeCounter.hh.

Member Data Documentation

CounterMapType G4MoleculeCounter::fCounterMap
protected

Definition at line 101 of file G4MoleculeCounter.hh.

Referenced by GetNbMoleculeAgainstTime(), and ResetCounter().

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

Definition at line 102 of file G4MoleculeCounter.hh.

Referenced by DontRegister(), and RegisterAll().

G4ThreadLocal G4MoleculeCounter * G4MoleculeCounter::fpInstance = 0
staticprotected

Definition at line 99 of file G4MoleculeCounter.hh.

stdunique_ptr<Search> G4MoleculeCounter::fpLastSearch
protected

Definition at line 118 of file G4MoleculeCounter.hh.

G4bool G4MoleculeCounter::fUse = FALSE
staticprotected

Definition at line 103 of file G4MoleculeCounter.hh.

Referenced by InUse().

G4int G4MoleculeCounter::fVerbose
protected

Definition at line 105 of file G4MoleculeCounter.hh.

Referenced by GetVerbose(), and SetVerbose().


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