#ifndef ROOSTATS_HypoTestResult
#define ROOSTATS_HypoTestResult
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOSTATS_RooStatsUtils
#include "RooStats/RooStatsUtils.h"
#endif
namespace RooStats {
class HypoTestResult : public TNamed {
public:
HypoTestResult();
HypoTestResult(const char* name, Double_t nullp, Double_t altp);
HypoTestResult(const char* name, const char* title, Double_t nullp, Double_t altp);
virtual ~HypoTestResult();
virtual Double_t NullPValue() const {return fNullPValue;}
virtual Double_t AlternatePValue() const {return fAlternatePValue;}
virtual Double_t CLb() const {return 1.-NullPValue();}
virtual Double_t CLsplusb() const {return AlternatePValue();}
virtual Double_t CLs() const {
double thisCLb = CLb();
if (thisCLb==0) {
std::cout << "Error: Cannot compute CLs because CLb = 0. Returning CLs = -1\n";
return -1;
}
double thisCLsb = CLsplusb();
return thisCLsb/thisCLb;
}
virtual Double_t Significance() const {return RooStats::PValueToSignificance( NullPValue() ); }
protected:
mutable Double_t fNullPValue;
mutable Double_t fAlternatePValue;
ClassDef(HypoTestResult,1)
};
}
#endif
Last change: Tue Nov 25 08:47:43 2008
Last generated: 2008-11-25 08:47
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.