Geant4 11.2.2
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 61 of file G4StatAnalysis.hh.

Constructor & Destructor Documentation

◆ G4StatAnalysis()

G4StatAnalysis::G4StatAnalysis ( )
inline

◆ ~G4StatAnalysis()

G4StatAnalysis::~G4StatAnalysis ( )
inline

Definition at line 65 of file G4StatAnalysis.hh.

65{}

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 119 of file G4StatAnalysis.hh.

120 {
121 G4ThreadLocalStatic std::optional<tms> _instance(std::nullopt);
122 if(_instance == std::nullopt)
123 {
124 _instance = tms();
125 times(&_instance.value());
126 }
127 return &_instance.value();
128 }
#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 135 of file G4StatAnalysis.hh.

136 {
137 tms* _clock = GetCpuClock();
138 times(_clock);
139 }
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 Symbol Documentation

◆ operator+

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

Definition at line 148 of file G4StatAnalysis.hh.

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

◆ operator-

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

Definition at line 154 of file G4StatAnalysis.hh.

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

◆ operator<<

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

Definition at line 142 of file G4StatAnalysis.hh.

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

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