|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4TrialsCounter is a class to keep statistics of the number of trials, including the maximum and how many times it was reached. More...
#include <G4TrialsCounter.hh>
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 () |
G4TrialsCounter is a class to keep statistics of the number of trials, including the maximum and how many times it was reached.
Definition at line 46 of file G4TrialsCounter.hh.
| G4TrialsCounter::G4TrialsCounter | ( | const G4String & | nameStats, |
| const G4String & | description, | ||
| G4bool | printOnExit = false ) |
Constructor for G4TrialsCounter.
| [in] | nameStats | Identifier. |
| [in] | description | Description text. |
| [in] | printOnExit | Flag for enabling additional verbosity on exit. |
Definition at line 34 of file G4TrialsCounter.cc.
| G4TrialsCounter::~G4TrialsCounter | ( | ) |
|
inline |
Adds this number to stats.
| void G4TrialsCounter::ClearCounts | ( | ) |
Resets all counts.
Definition at line 63 of file G4TrialsCounter.cc.
Referenced by G4TrialsCounter().
| void G4TrialsCounter::PrintStatistics | ( | ) |
Prints out statistics.
Definition at line 48 of file G4TrialsCounter.cc.
Referenced by ~G4TrialsCounter().
Returns number of count/trials, calls, max & no-max.
Definition at line 72 of file G4TrialsCounter.cc.