Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4StatAnalysis Class Reference

#include <G4StatAnalysis.hh>

Public Member Functions

 G4StatAnalysis ()
 
 ~G4StatAnalysis ()
 
G4double GetMean () const
 
const G4doubleGetSum () const
 
const G4doubleGetSumSquared () const
 
const G4doubleGetSum1 () const
 
const G4doubleGetSum2 () const
 
const G4intGetHits () const
 
G4int GetNumNonZero () const
 
G4int GetNumZero () const
 
void SetSum (const G4double &val)
 
void SetSumSquared (const G4double &val)
 
void SetSum1 (const G4double &val)
 
void SetSum2 (const G4double &val)
 
void SetHits (const G4int &val)
 
void SetZero (const G4int &val)
 
G4double GetFOM () const
 
G4double GetRelativeError () const
 
G4double GetStdDev () const
 
G4double GetVariance () const
 
G4double GetCoeffVariation () const
 
G4double GetEfficiency () const
 
G4double GetR2Int () const
 
G4double GetR2Eff () const
 
 operator G4double () const
 
void Reset ()
 
void Add (const G4double &_val, const G4double &_weight=1.0)
 
void Rescale (const G4double &factor)
 
void PrintInfo (std::ostream &os, const std::string &="") const
 
G4StatAnalysisoperator+= (const G4double &_val)
 
G4StatAnalysisoperator/= (const G4double &_val)
 
G4StatAnalysisoperator+= (const G4StatAnalysis &)
 
G4StatAnalysisoperator-= (const G4StatAnalysis &)
 
void * operator new (std::size_t)
 
void operator delete (void *)
 
G4double GetCpuTime () const
 

Static Public Member Functions

static tms *& GetCpuClock ()
 
static void ResetCpuClock ()
 

Friends

std::ostream & operator<< (std::ostream &os, const G4StatAnalysis &obj)
 
const G4StatAnalysis operator+ (const G4StatAnalysis &lhs, const G4StatAnalysis &rhs)
 
const G4StatAnalysis operator- (const G4StatAnalysis &lhs, const G4StatAnalysis &rhs)
 

Detailed Description

Definition at line 60 of file G4StatAnalysis.hh.

Constructor & Destructor Documentation

◆ G4StatAnalysis()

G4StatAnalysis::G4StatAnalysis ( )
inline

◆ ~G4StatAnalysis()

G4StatAnalysis::~G4StatAnalysis ( )
inline

Definition at line 64 of file G4StatAnalysis.hh.

64{}

Member Function Documentation

◆ Add()

void G4StatAnalysis::Add ( const G4double _val,
const G4double _weight = 1.0 
)
inline

◆ GetCoeffVariation()

G4double G4StatAnalysis::GetCoeffVariation ( ) const
inline

◆ GetCpuClock()

static tms *& G4StatAnalysis::GetCpuClock ( )
inlinestatic

Definition at line 118 of file G4StatAnalysis.hh.

119 {
120 G4ThreadLocalStatic tms* _instance = nullptr;
121 if(!_instance)
122 {
123 _instance = new tms;
124 times(_instance);
125 }
126 return _instance;
127 }
#define G4ThreadLocalStatic
Definition: tls.hh:76

Referenced by ResetCpuClock().

◆ GetCpuTime()

G4double G4StatAnalysis::GetCpuTime ( ) const
inline

◆ GetEfficiency()

G4double G4StatAnalysis::GetEfficiency ( ) const
inline

◆ GetFOM()

G4double G4StatAnalysis::GetFOM ( ) const
inline

◆ GetHits()

const G4int & G4StatAnalysis::GetHits ( ) const
inline

◆ GetMean()

G4double G4StatAnalysis::GetMean ( ) const
inline

◆ GetNumNonZero()

G4int G4StatAnalysis::GetNumNonZero ( ) const
inline

◆ GetNumZero()

G4int G4StatAnalysis::GetNumZero ( ) const
inline

◆ GetR2Eff()

G4double G4StatAnalysis::GetR2Eff ( ) const
inline

◆ GetR2Int()

G4double G4StatAnalysis::GetR2Int ( ) const
inline

◆ GetRelativeError()

G4double G4StatAnalysis::GetRelativeError ( ) const
inline

◆ GetStdDev()

G4double G4StatAnalysis::GetStdDev ( ) const
inline

◆ GetSum()

const G4double & G4StatAnalysis::GetSum ( ) const
inline

◆ GetSum1()

const G4double & G4StatAnalysis::GetSum1 ( ) const
inline

◆ GetSum2()

const G4double & G4StatAnalysis::GetSum2 ( ) const
inline

◆ GetSumSquared()

const G4double & G4StatAnalysis::GetSumSquared ( ) const
inline

◆ GetVariance()

G4double G4StatAnalysis::GetVariance ( ) const
inline

◆ operator delete()

void G4StatAnalysis::operator delete ( void *  )
inline

◆ operator G4double()

G4StatAnalysis::operator G4double ( ) const
inline

◆ operator new()

void * G4StatAnalysis::operator new ( std::size_t  )
inline

◆ operator+=() [1/2]

G4StatAnalysis & G4StatAnalysis::operator+= ( const G4double _val)
inline

◆ operator+=() [2/2]

G4StatAnalysis & G4StatAnalysis::operator+= ( const G4StatAnalysis )
inline

◆ operator-=()

G4StatAnalysis & G4StatAnalysis::operator-= ( const G4StatAnalysis )
inline

◆ operator/=()

G4StatAnalysis & G4StatAnalysis::operator/= ( const G4double _val)
inline

◆ PrintInfo()

void G4StatAnalysis::PrintInfo ( std::ostream &  os,
const std::string &  = "" 
) const
inline

◆ Rescale()

void G4StatAnalysis::Rescale ( const G4double factor)
inline

◆ Reset()

void G4StatAnalysis::Reset ( )
inline

◆ ResetCpuClock()

static void G4StatAnalysis::ResetCpuClock ( )
inlinestatic

Definition at line 134 of file G4StatAnalysis.hh.

135 {
136 tms*& _clock = GetCpuClock();
137 times(_clock);
138 }
static tms *& GetCpuClock()

Referenced by G4Run::G4Run().

◆ SetHits()

void G4StatAnalysis::SetHits ( const G4int val)
inline

◆ SetSum()

void G4StatAnalysis::SetSum ( const G4double val)
inline

◆ SetSum1()

void G4StatAnalysis::SetSum1 ( const G4double val)
inline

◆ SetSum2()

void G4StatAnalysis::SetSum2 ( const G4double val)
inline

◆ SetSumSquared()

void G4StatAnalysis::SetSumSquared ( const G4double val)
inline

◆ SetZero()

void G4StatAnalysis::SetZero ( const G4int val)
inline

Friends And Related Function Documentation

◆ operator+

const G4StatAnalysis operator+ ( const G4StatAnalysis lhs,
const G4StatAnalysis rhs 
)
friend

Definition at line 147 of file G4StatAnalysis.hh.

149 {
150 return G4StatAnalysis(lhs) += rhs;
151 }

◆ operator-

const G4StatAnalysis operator- ( const G4StatAnalysis lhs,
const G4StatAnalysis rhs 
)
friend

Definition at line 153 of file G4StatAnalysis.hh.

155 {
156 return G4StatAnalysis(lhs) -= rhs;
157 }

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const G4StatAnalysis obj 
)
friend

Definition at line 141 of file G4StatAnalysis.hh.

142 {
143 obj.PrintInfo(os);
144 return os;
145 }
void PrintInfo(std::ostream &os, const std::string &="") const

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