#include <G4MoleculeCounter.hh>
Definition at line 52 of file G4MoleculeCounter.hh.
G4MoleculeCounter::G4MoleculeCounter |
( |
| ) |
|
|
protected |
virtual G4MoleculeCounter::~G4MoleculeCounter |
( |
| ) |
|
|
inlineprotectedvirtual |
Definition at line 67 of file G4MoleculeCounter.cc.
References G4BestUnit, G4cout, G4endl, G4Molecule::GetDefinition(), and G4Molecule::GetName().
Referenced by G4Molecule::BuildTrack().
73 G4cout<<
"G4MoleculeCounter::AddAMoleculeAtTime : "<< molecule.
GetName()
77 CounterMapType::iterator counterMap_i =
fCounterMap.find(molecule) ;
85 else if(counterMap_i->second.empty())
89 counterMap_i->second[time] = 1;
93 NbMoleculeAgainstTime::iterator end = counterMap_i->second.end();
100 if(end->first <= time)
102 counterMap_i->second[time]=end->second + 1;
106 NbMoleculeAgainstTime::iterator it = counterMap_i->second.lower_bound(time);
108 while(it->first > time && it!=counterMap_i->second.begin())
116 if(it==counterMap_i->second.begin() && it->first > time)
130 counterMap_i->second[time]=it->second + 1;
CounterMapType fCounterMap
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
std::map< const G4MoleculeDefinition *, G4bool > fDontRegister
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cout
const G4MoleculeDefinition * GetDefinition() const
void G4MoleculeCounter::DeleteInstance |
( |
| ) |
|
|
static |
Definition at line 253 of file G4MoleculeCounter.cc.
References G4cout, and G4endl.
257 G4cout<<
"Entering in G4MoleculeCounter::RecordMolecules"<<
G4endl;
260 CounterMapType::iterator it;
265 output->push_back(it->first);
CounterMapType fCounterMap
G4GLOB_DLL std::ostream G4cout
std::auto_ptr< std::vector< G4Molecule > > RecordedMolecules
G4int G4MoleculeCounter::GetVerbose |
( |
| ) |
|
|
inline |
G4bool G4MoleculeCounter::InUse |
( |
| ) |
|
|
inline |
void G4MoleculeCounter::RegisterAll |
( |
| ) |
|
|
inlinevirtual |
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().
145 G4cout<<
"G4MoleculeCounter::RemoveAMoleculeAtTime : "<< molecule.
GetName()
151 if(nbMolPerTime.empty())
154 G4String errMsg =
"You are trying to remove molecule "
156 +
" from the counter while this kind of molecules has not been registered yet";
163 NbMoleculeAgainstTime::iterator it ;
165 if(nbMolPerTime.size() == 1)
167 it = nbMolPerTime.begin() ;
174 it = nbMolPerTime.lower_bound(time);
177 if(it==nbMolPerTime.end())
187 +
" record at the time or even before the time asked";
204 if(nbMolPerTime.value_comp()(*it, *nbMolPerTime.begin()))
213 +
" record at the time or even before the time asked";
229 if(it==nbMolPerTime.begin() && it->first > time)
243 nbMolPerTime[time]=it->second - 1;
CounterMapType fCounterMap
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
std::map< const G4MoleculeDefinition *, G4bool > fDontRegister
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cout
const G4MoleculeDefinition * GetDefinition() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ThreadLocal double fPrecision
std::map< G4double, G4int, compDoubleWithPrecision > NbMoleculeAgainstTime
void G4MoleculeCounter::ResetCounter |
( |
| ) |
|
|
inlinevirtual |
void G4MoleculeCounter::SetTimeSlice |
( |
double |
timeSlice | ) |
|
void G4MoleculeCounter::SetVerbose |
( |
G4int |
level | ) |
|
|
inline |
G4int G4MoleculeCounter::fVerbose |
|
protected |
The documentation for this class was generated from the following files: