NAGASH 0.9.8
Next Generation Analysis System
|
Use CountBase with the interface of provided by NAGASH::Result. More...
#include "NAGASH/Count.h"
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. | |
![]() | |
const TString & | GetOutputFileName () |
Return the name of the result. | |
const TString & | GetResultName () |
virtual void | WriteToFile () |
![]() | |
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 | |
void | Clear () |
Clear this CountBase object. | |
double | GetMean () const |
Get the mean | |
double | GetMeanStatUnc () const |
Get the statistical uncertainty of the mean | |
double | GetStdVar () const |
Get the standard variance | |
double | GetSum () const |
Get the sum of the values | |
double | GetSum2 () const |
Get the sum of the values squared | |
double | GetSumStatUnc () const |
Get the statistical uncertainty of the sum | |
double | GetSumW () const |
Get the sum of the weights | |
double | GetSumW2 () const |
Get the sum of the weights squared | |
double | GetVar () const |
Get the variance | |
Additional Inherited Members | |
![]() | |
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< ConfigTool > | ConfigUser () |
Return the internal ConfigTool.> | |
std::shared_ptr< MSGTool > | MSGUser () |
Return the internal MSGTool. | |
Result & | operator= (const Result &result)=delete |
Result & | operator= (Result &&result)=delete |
void | SetOutputFileName (const TString &fileName) |
Set the output file name of the result. | |
Toolkit * | ToolkitUser () |
Return the internal Toolkit. | |
![]() | |
double | SumW = 0 |
double | SumW2 = 0 |
double | SumX = 0 |
double | SumX2 = 0 |
Use CountBase with the interface of provided by NAGASH::Result.
|
inline |
|
default |
|
inlinevirtual |
Combine with another Count object, interface provided by NAGASH::Result.
result | the Count object to be combined with this one. |
Reimplemented from NAGASH::Result.