ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4TrialsCounter Class Reference

#include <geant4/tree/geant4-10.6-release/source/geometry/magneticfield/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 = 0
 
G4int fNumberCalls = 0
 
G4int fmaxTrials = 0
 
G4int fNoTimesMaxTrials = 0
 
G4String fName
 
G4String fDescription
 
G4bool fStatsVerbose = false
 
G4bool fPrinted = false
 

Detailed Description

Definition at line 41 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 41 of file G4TrialsCounter.hh

Constructor & Destructor Documentation

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

Definition at line 34 of file G4TrialsCounter.cc.

View newest version in sPHENIX GitHub at line 34 of file G4TrialsCounter.cc

References ClearCounts().

+ Here is the call graph for this function:

G4TrialsCounter::~G4TrialsCounter ( )

Definition at line 42 of file G4TrialsCounter.cc.

View newest version in sPHENIX GitHub at line 42 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 63 of file G4TrialsCounter.cc.

View newest version in sPHENIX GitHub at line 63 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 48 of file G4TrialsCounter.cc.

View newest version in sPHENIX GitHub at line 48 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 72 of file G4TrialsCounter.cc.

View newest version in sPHENIX GitHub at line 72 of file G4TrialsCounter.cc

References fmaxTrials, fNoTimesMaxTrials, fNumberCalls, and fTotalNoTrials.

Member Data Documentation

G4String G4TrialsCounter::fDescription
private

Definition at line 66 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 66 of file G4TrialsCounter.hh

Referenced by PrintStatistics().

G4int G4TrialsCounter::fmaxTrials = 0
private

Definition at line 62 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 62 of file G4TrialsCounter.hh

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

G4String G4TrialsCounter::fName
private

Definition at line 65 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 65 of file G4TrialsCounter.hh

Referenced by PrintStatistics().

G4int G4TrialsCounter::fNoTimesMaxTrials = 0
private

Definition at line 63 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 63 of file G4TrialsCounter.hh

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

G4int G4TrialsCounter::fNumberCalls = 0
private

Definition at line 61 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 61 of file G4TrialsCounter.hh

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

G4bool G4TrialsCounter::fPrinted = false
private

Definition at line 70 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 70 of file G4TrialsCounter.hh

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

G4bool G4TrialsCounter::fStatsVerbose = false
private

Definition at line 68 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 68 of file G4TrialsCounter.hh

Referenced by ~G4TrialsCounter().

G4int G4TrialsCounter::fTotalNoTrials = 0
private

Definition at line 60 of file G4TrialsCounter.hh.

View newest version in sPHENIX GitHub at line 60 of file G4TrialsCounter.hh

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


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