Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VMoleculeCounterInternalBase Class Referenceabstract

#include <G4VMoleculeCounterInternalBase.hh>

Inheritance diagram for G4VMoleculeCounterInternalBase:

Classes

struct  G4VMoleculeCounterIndexInterface

Public Member Functions

virtual ~G4VMoleculeCounterInternalBase ()=default
virtual void Initialize ()=0
virtual void InitializeUser ()=0
virtual void ResetCounter ()=0
virtual void Dump () const =0
virtual void DumpCounterMapIndices () const =0
virtual std::set< G4doubleGetRecordedTimes () const =0
virtual void AbsorbCounter (const G4VMoleculeCounterInternalBase *)=0
G4int GetId () const
void SetManagedId (G4int)
G4int GetManagedId () const
const G4StringGetName () const
G4int GetVerbose () const
void SetVerbose (G4int)
G4double GetActiveLowerBound () const
void SetActiveLowerBound (G4double, G4bool=true)
G4double GetActiveUpperBound () const
void SetActiveUpperBound (G4double, G4bool=true)
G4bool GetActiveLowerBoundInclusive () const
G4bool GetActiveUpperBoundInclusive () const
G4bool IsTimeBelowLowerBound (G4double) const
G4bool IsTimeAboveUpperBound (G4double) const
G4bool IsActiveAtGlobalTime (G4double) const
G4bool GetCheckTimeConsistencyWithScheduler () const
void SetCheckTimeConsistencyWithScheduler (G4bool=true)
G4bool GetCheckRecordedTimeConsistency () const
void SetCheckRecordedTimeConsistency (G4bool=true)
const G4MoleculeCounterTimeComparerGetTimeComparer () const
void SetTimeComparer (const G4MoleculeCounterTimeComparer &)

Static Public Member Functions

static void SetFixedTimePrecision (G4double)

Protected Attributes

G4bool fIsInitialized {false}
G4int fId
G4int fManagedId {-1}
G4String fName {}
G4int fVerbose {0}
G4double fActiveLowerBound {0}
G4double fActiveUpperBound {std::numeric_limits<G4double>::max()}
G4bool fActiveLowerBoundInclusive {true}
G4bool fActiveUpperBoundInclusive {true}
G4bool fCheckTimeIsConsistentWithScheduler {true}
G4bool fCheckRecordedTimesAreConsistent {true}
G4MoleculeCounterTimeComparer fTimeComparer {}

Friends

class G4VMoleculeCounter
class G4VMoleculeReactionCounter

Detailed Description

Definition at line 62 of file G4VMoleculeCounterInternalBase.hh.

Constructor & Destructor Documentation

◆ ~G4VMoleculeCounterInternalBase()

virtual G4VMoleculeCounterInternalBase::~G4VMoleculeCounterInternalBase ( )
virtualdefault

Member Function Documentation

◆ AbsorbCounter()

◆ Dump()

◆ DumpCounterMapIndices()

◆ GetActiveLowerBound()

G4double G4VMoleculeCounterInternalBase::GetActiveLowerBound ( ) const
inline

◆ GetActiveLowerBoundInclusive()

G4bool G4VMoleculeCounterInternalBase::GetActiveLowerBoundInclusive ( ) const
inline

◆ GetActiveUpperBound()

G4double G4VMoleculeCounterInternalBase::GetActiveUpperBound ( ) const
inline

◆ GetActiveUpperBoundInclusive()

G4bool G4VMoleculeCounterInternalBase::GetActiveUpperBoundInclusive ( ) const
inline

◆ GetCheckRecordedTimeConsistency()

G4bool G4VMoleculeCounterInternalBase::GetCheckRecordedTimeConsistency ( ) const
inline

◆ GetCheckTimeConsistencyWithScheduler()

G4bool G4VMoleculeCounterInternalBase::GetCheckTimeConsistencyWithScheduler ( ) const
inline

◆ GetId()

G4int G4VMoleculeCounterInternalBase::GetId ( ) const
inline

Definition at line 149 of file G4VMoleculeCounterInternalBase.hh.

◆ GetManagedId()

G4int G4VMoleculeCounterInternalBase::GetManagedId ( ) const
inline

◆ GetName()

◆ GetRecordedTimes()

◆ GetTimeComparer()

const G4MoleculeCounterTimeComparer & G4VMoleculeCounterInternalBase::GetTimeComparer ( ) const
inline

Definition at line 247 of file G4VMoleculeCounterInternalBase.hh.

248{
249 return fTimeComparer;
250}

◆ GetVerbose()

G4int G4VMoleculeCounterInternalBase::GetVerbose ( ) const
inline

◆ Initialize()

◆ InitializeUser()

◆ IsActiveAtGlobalTime()

G4bool G4VMoleculeCounterInternalBase::IsActiveAtGlobalTime ( G4double time) const
inline

Definition at line 224 of file G4VMoleculeCounterInternalBase.hh.

225{
226 return !(IsTimeBelowLowerBound(time) || IsTimeAboveUpperBound(time));
227}

◆ IsTimeAboveUpperBound()

◆ IsTimeBelowLowerBound()

◆ ResetCounter()

◆ SetActiveLowerBound()

void G4VMoleculeCounterInternalBase::SetActiveLowerBound ( G4double time,
G4bool inclusive = true )
inline

Definition at line 189 of file G4VMoleculeCounterInternalBase.hh.

190{
191 fActiveLowerBound = time;
192 fActiveLowerBoundInclusive = inclusive;
193}

◆ SetActiveUpperBound()

void G4VMoleculeCounterInternalBase::SetActiveUpperBound ( G4double time,
G4bool inclusive = true )
inline

Definition at line 199 of file G4VMoleculeCounterInternalBase.hh.

200{
201 fActiveUpperBound = time;
202 fActiveUpperBoundInclusive = inclusive;
203}

◆ SetCheckRecordedTimeConsistency()

void G4VMoleculeCounterInternalBase::SetCheckRecordedTimeConsistency ( G4bool flag = true)
inline

Definition at line 242 of file G4VMoleculeCounterInternalBase.hh.

243{
245}

◆ SetCheckTimeConsistencyWithScheduler()

void G4VMoleculeCounterInternalBase::SetCheckTimeConsistencyWithScheduler ( G4bool flag = true)
inline

Definition at line 233 of file G4VMoleculeCounterInternalBase.hh.

234{
236}

◆ SetFixedTimePrecision()

void G4VMoleculeCounterInternalBase::SetFixedTimePrecision ( G4double precision)
static

◆ SetManagedId()

void G4VMoleculeCounterInternalBase::SetManagedId ( G4int id)
inline

Definition at line 154 of file G4VMoleculeCounterInternalBase.hh.

155{
156 if (fManagedId > -1) {
157 G4ExceptionDescription description;
158 description << "Someone is trying to change the managed id of this counter but it was already "
159 "changed from -1!\n";
160 description << " Id: " << fManagedId << "\n";
161 description << "Name: " << fName << "\n";
162 G4Exception("G4VMoleculeCounterInternalBase::SetManagedId", "MOLCTR000", FatalException, description);
163 }
164 fManagedId = id;
165}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription

◆ SetTimeComparer()

void G4VMoleculeCounterInternalBase::SetTimeComparer ( const G4MoleculeCounterTimeComparer & comparer)
inline

Definition at line 252 of file G4VMoleculeCounterInternalBase.hh.

253{
254 if (fIsInitialized) {
255 G4Exception("G4VMoleculeCounterInternalBase::SetTimeComparer()", "AlreadyInitialized", JustWarning,
256 "Molecule counter was already initialized, assigning the time comparer now may "
257 "have no effect!");
258 }
259 fTimeComparer = comparer;
260}
@ JustWarning

◆ SetVerbose()

void G4VMoleculeCounterInternalBase::SetVerbose ( G4int verbose)
inline

Definition at line 180 of file G4VMoleculeCounterInternalBase.hh.

181{
182 fVerbose = verbose;
183}

◆ G4VMoleculeCounter

friend class G4VMoleculeCounter
friend

Definition at line 64 of file G4VMoleculeCounterInternalBase.hh.

Referenced by G4VMoleculeCounter.

◆ G4VMoleculeReactionCounter

friend class G4VMoleculeReactionCounter
friend

Definition at line 65 of file G4VMoleculeCounterInternalBase.hh.

Referenced by G4VMoleculeReactionCounter.

Member Data Documentation

◆ fActiveLowerBound

◆ fActiveLowerBoundInclusive

G4bool G4VMoleculeCounterInternalBase::fActiveLowerBoundInclusive {true}
protected

◆ fActiveUpperBound

G4double G4VMoleculeCounterInternalBase::fActiveUpperBound {std::numeric_limits<G4double>::max()}
protected

Definition at line 107 of file G4VMoleculeCounterInternalBase.hh.

107{0}, fActiveUpperBound{std::numeric_limits<G4double>::max()};

Referenced by GetActiveUpperBound(), IsTimeAboveUpperBound(), and SetActiveUpperBound().

◆ fActiveUpperBoundInclusive

G4bool G4VMoleculeCounterInternalBase::fActiveUpperBoundInclusive {true}
protected

◆ fCheckRecordedTimesAreConsistent

G4bool G4VMoleculeCounterInternalBase::fCheckRecordedTimesAreConsistent {true}
protected

◆ fCheckTimeIsConsistentWithScheduler

G4bool G4VMoleculeCounterInternalBase::fCheckTimeIsConsistentWithScheduler {true}
protected

◆ fId

G4int G4VMoleculeCounterInternalBase::fId
protected

Definition at line 101 of file G4VMoleculeCounterInternalBase.hh.

Referenced by GetId().

◆ fIsInitialized

G4bool G4VMoleculeCounterInternalBase::fIsInitialized {false}
protected

◆ fManagedId

G4int G4VMoleculeCounterInternalBase::fManagedId {-1}
protected

Definition at line 102 of file G4VMoleculeCounterInternalBase.hh.

102{-1};

Referenced by GetManagedId(), and SetManagedId().

◆ fName

G4String G4VMoleculeCounterInternalBase::fName {}
protected

Definition at line 103 of file G4VMoleculeCounterInternalBase.hh.

103{};

Referenced by GetName(), and SetManagedId().

◆ fTimeComparer

◆ fVerbose


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