Geant4  10.00.p02
G4TrialsCounter Class Reference

#include <G4TrialsCounter.hh>

+ Collaboration diagram for G4TrialsCounter:

Public Member Functions

 G4TrialsCounter (const G4String &nameStats, const G4String &description, G4bool printOnExit=false)
 
 ~G4TrialsCounter ()
 
void AccumulateCounts (G4int noTrials)
 
void ClearCounts ()
 
G4int ReturnTotals (G4int &calls, G4int &maxTrials, G4int &numMaxT)
 
void PrintStatistics ()
 

Private Attributes

G4int fTotalNoTrials
 
G4int fNumberCalls
 
G4int fmaxTrials
 
G4int fNoTimesMaxTrials
 
G4String fName
 
G4String fDescription
 
G4bool fStatsVerbose
 
G4bool fPrinted
 

Detailed Description

Definition at line 46 of file G4TrialsCounter.hh.

Constructor & Destructor Documentation

G4TrialsCounter::G4TrialsCounter ( const G4String nameStats,
const G4String description,
G4bool  printOnExit = false 
)

Definition at line 39 of file G4TrialsCounter.cc.

References ClearCounts().

+ Here is the call graph for this function:

G4TrialsCounter::~G4TrialsCounter ( )

Definition at line 48 of file G4TrialsCounter.cc.

References fPrinted, fStatsVerbose, and PrintStatistics().

+ Here is the call graph for this function:

Member Function Documentation

void G4TrialsCounter::AccumulateCounts ( G4int  noTrials)
inline
void G4TrialsCounter::ClearCounts ( )

Definition at line 68 of file G4TrialsCounter.cc.

References fmaxTrials, fNoTimesMaxTrials, fNumberCalls, and fTotalNoTrials.

Referenced by G4TrialsCounter().

+ Here is the caller graph for this function:

void G4TrialsCounter::PrintStatistics ( )

Definition at line 54 of file G4TrialsCounter.cc.

References fDescription, fmaxTrials, fName, fNoTimesMaxTrials, fNumberCalls, fPrinted, fTotalNoTrials, G4cout, and G4endl.

Referenced by ~G4TrialsCounter().

+ Here is the caller graph for this function:

G4int G4TrialsCounter::ReturnTotals ( G4int calls,
G4int maxTrials,
G4int numMaxT 
)

Definition at line 77 of file G4TrialsCounter.cc.

References fmaxTrials, fNoTimesMaxTrials, fNumberCalls, and fTotalNoTrials.

Member Data Documentation

G4String G4TrialsCounter::fDescription
private

Definition at line 71 of file G4TrialsCounter.hh.

Referenced by PrintStatistics().

G4int G4TrialsCounter::fmaxTrials
private

Definition at line 67 of file G4TrialsCounter.hh.

Referenced by ClearCounts(), PrintStatistics(), and ReturnTotals().

G4String G4TrialsCounter::fName
private

Definition at line 70 of file G4TrialsCounter.hh.

Referenced by PrintStatistics().

G4int G4TrialsCounter::fNoTimesMaxTrials
private

Definition at line 68 of file G4TrialsCounter.hh.

Referenced by ClearCounts(), PrintStatistics(), and ReturnTotals().

G4int G4TrialsCounter::fNumberCalls
private

Definition at line 66 of file G4TrialsCounter.hh.

Referenced by ClearCounts(), PrintStatistics(), and ReturnTotals().

G4bool G4TrialsCounter::fPrinted
private

Definition at line 73 of file G4TrialsCounter.hh.

Referenced by PrintStatistics(), and ~G4TrialsCounter().

G4bool G4TrialsCounter::fStatsVerbose
private

Definition at line 72 of file G4TrialsCounter.hh.

Referenced by ~G4TrialsCounter().

G4int G4TrialsCounter::fTotalNoTrials
private

Definition at line 65 of file G4TrialsCounter.hh.

Referenced by ClearCounts(), PrintStatistics(), and ReturnTotals().


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