Geant4  10.00.p03
G4MoleculeCounter Class Reference

#include <G4MoleculeCounter.hh>

+ Collaboration diagram for G4MoleculeCounter:

Public Types

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

Public Member Functions

const NbMoleculeAgainstTimeGetNbMoleculeAgainstTime (const G4Molecule &molecule)
 
RecordedMolecules GetRecordedMolecules ()
 
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 G4MoleculeCounterGetMoleculeCounter ()
 

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
 

Static Protected Attributes

static G4ThreadLocal
G4MoleculeCounter
fpInstance = 0
 
static G4bool fUse = FALSE
 

Friends

class G4Molecule
 

Detailed Description

Definition at line 52 of file G4MoleculeCounter.hh.

Member Typedef Documentation

typedef std::auto_ptr<std::vector<G4Molecule> > G4MoleculeCounter::RecordedMolecules

Definition at line 60 of file G4MoleculeCounter.hh.

Constructor & Destructor Documentation

G4MoleculeCounter::G4MoleculeCounter ( )
protected

Definition at line 38 of file G4MoleculeCounter.cc.

virtual G4MoleculeCounter::~G4MoleculeCounter ( )
inlineprotectedvirtual

Definition at line 65 of file G4MoleculeCounter.hh.

Member Function Documentation

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

Definition at line 67 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 53 of file G4MoleculeCounter.cc.

Referenced by G4DNAChemistryManager::~G4DNAChemistryManager().

+ Here is the caller graph for this function:

void G4MoleculeCounter::DontRegister ( const G4MoleculeDefinition molDef)
inlinevirtual

Definition at line 137 of file G4MoleculeCounter.hh.

References fDontRegister.

G4MoleculeCounter * G4MoleculeCounter::GetMoleculeCounter ( )
static

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

References fCounterMap.

G4MoleculeCounter::RecordedMolecules G4MoleculeCounter::GetRecordedMolecules ( )

Definition at line 253 of file G4MoleculeCounter.cc.

References G4cout, and G4endl.

G4int G4MoleculeCounter::GetVerbose ( )
inline

Definition at line 132 of file G4MoleculeCounter.hh.

References fVerbose.

G4bool G4MoleculeCounter::InUse ( )
inline

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

References fDontRegister.

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

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

References fCounterMap.

void G4MoleculeCounter::SetTimeSlice ( double  timeSlice)

Definition at line 62 of file G4MoleculeCounter.cc.

References compDoubleWithPrecision::fPrecision.

void G4MoleculeCounter::SetVerbose ( G4int  level)
inline

Definition at line 127 of file G4MoleculeCounter.hh.

References fVerbose.

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

Definition at line 97 of file G4MoleculeCounter.hh.

Friends And Related Function Documentation

friend class G4Molecule
friend

Definition at line 74 of file G4MoleculeCounter.hh.

Member Data Documentation

CounterMapType G4MoleculeCounter::fCounterMap
protected

Definition at line 68 of file G4MoleculeCounter.hh.

Referenced by GetNbMoleculeAgainstTime(), and ResetCounter().

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

Definition at line 69 of file G4MoleculeCounter.hh.

Referenced by DontRegister(), and RegisterAll().

G4ThreadLocal G4MoleculeCounter * G4MoleculeCounter::fpInstance = 0
staticprotected

Definition at line 66 of file G4MoleculeCounter.hh.

G4bool G4MoleculeCounter::fUse = FALSE
staticprotected

Definition at line 70 of file G4MoleculeCounter.hh.

Referenced by InUse().

G4int G4MoleculeCounter::fVerbose
protected

Definition at line 72 of file G4MoleculeCounter.hh.

Referenced by GetVerbose(), and SetVerbose().


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