NAGASH 0.9.8
Next Generation Analysis System
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
NAGASH::Count Class Reference

Use CountBase with the interface of provided by NAGASH::Result. More...

#include "NAGASH/Count.h"

Inheritance diagram for NAGASH::Count:
NAGASH::Result NAGASH::CountBase

Public Member Functions

 Count (std::shared_ptr< MSGTool > MSG, std::shared_ptr< ConfigTool > c, const TString &rname, const TString &fname="")
 
 ~Count ()=default
 
void Combine (std::shared_ptr< Result > result)
 Combine with another Count object, interface provided by NAGASH::Result.
 
- Public Member Functions inherited from NAGASH::Result
const TString & GetOutputFileName ()
 Return the name of the result.
 
const TString & GetResultName ()
 
virtual void WriteToFile ()
 
- Public Member Functions inherited from NAGASH::CountBase
void Add (const CountBase &)
 Add another CountBase object to this one.
 
void Add (double x=1, double w=1)
 Add a value along with its weight.
 
double Chi2 (const CountBase &) const
 Calculate the χ2 with this and another CountBase object.
 
void Clear ()
 Clear this CountBase object.
 
double GetMean () const
 Get the mean x¯.
 
double GetMeanStatUnc () const
 Get the statistical uncertainty of the mean σ(x)w2/w.
 
double GetStdVar () const
 Get the standard variance σ(x).
 
double GetSum () const
 Get the sum of the values xw.
 
double GetSum2 () const
 Get the sum of the values squared x2w.
 
double GetSumStatUnc () const
 Get the statistical uncertainty of the sum x¯w2.
 
double GetSumW () const
 Get the sum of the weights w.
 
double GetSumW2 () const
 Get the sum of the weights squared w2.
 
double GetVar () const
 Get the variance σ2(x).
 

Additional Inherited Members

- Protected Member Functions inherited from NAGASH::Result
 Result ()=delete
 
 Result (const Result &result)=delete
 
 Result (Result &&result)=delete
 
 Result (std::shared_ptr< MSGTool > MSG, std::shared_ptr< ConfigTool > c, const TString &rname, const TString &fname="")
 virtual interface to write the result to a file.
 
virtual ~Result ()=default
 
std::shared_ptr< ConfigToolConfigUser ()
 Return the internal ConfigTool.>
 
std::shared_ptr< MSGToolMSGUser ()
 Return the internal MSGTool.
 
Resultoperator= (const Result &result)=delete
 
Resultoperator= (Result &&result)=delete
 
void SetOutputFileName (const TString &fileName)
 Set the output file name of the result.
 
ToolkitToolkitUser ()
 Return the internal Toolkit.
 
- Protected Attributes inherited from NAGASH::CountBase
double SumW = 0
 
double SumW2 = 0
 
double SumX = 0
 
double SumX2 = 0
 

Detailed Description

Use CountBase with the interface of provided by NAGASH::Result.

Definition at line 97 of file Count.h.

Constructor & Destructor Documentation

◆ Count()

NAGASH::Count::Count ( std::shared_ptr< MSGTool MSG,
std::shared_ptr< ConfigTool c,
const TString &  rname,
const TString &  fname = "" 
)
inline

Definition at line 100 of file Count.h.

◆ ~Count()

NAGASH::Count::~Count ( )
default

Member Function Documentation

◆ Combine()

void NAGASH::Count::Combine ( std::shared_ptr< Result result)
inlinevirtual

Combine with another Count object, interface provided by NAGASH::Result.

Parameters
resultthe Count object to be combined with this one.

Reimplemented from NAGASH::Result.

Definition at line 107 of file Count.h.


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