14 #ifndef ROOSTATS_HypoTestResult 15 #define ROOSTATS_HypoTestResult 61 double thisCLb =
CLb();
63 std::cout <<
"Error: Cannot compute CLs because CLb = 0. Returning CLs = -1\n";
67 return thisCLsb / thisCLb;
Bool_t HasTestStatisticData(void) const
void SetBackgroundAsAlt(Bool_t l=kTRUE)
void SetAltDistribution(SamplingDistribution *alt)
Double_t fNullPValueError
void SetFitInfo(RooDataSet *d)
virtual Double_t CLb() const
Convert NullPValue into a "confidence level".
void Print(const Option_t *="") const
Print out some information about the results Note: use Alt/Null labels for the hypotheses here as the...
RooDataSet * GetAltDetailedOutput(void) const
const RooArgList * fAllTestStatisticsData
RooDataSet * GetFitInfo(void) const
Double_t PValueToSignificance(Double_t pvalue)
returns one-sided significance corresponding to a p-value
HypoTestResult is a base class for results from hypothesis tests.
Double_t NullPValueError() const
The error on the Null p-value.
HypoTestResult & operator=(const HypoTestResult &other)
assignment operator
RooDataSet * fNullDetailedOutput
void UpdatePValue(const SamplingDistribution *distr, Double_t &pvalue, Double_t &perror, Bool_t pIsRightTail)
updates the pvalue if sufficient data is available
SamplingDistribution * GetAltDistribution(void) const
Double_t CLbError() const
The error on the "confidence level" of the null hypothesis.
virtual Double_t Significance() const
familiar name for the Null p-value in terms of 1-sided Gaussian significance
#define ClassDef(name, id)
Double_t CLsError() const
The error on the ratio .
The TNamed class is the base class for all named ROOT classes.
Bool_t GetPValueIsRightTail(void) const
Double_t fTestStatisticData
const RooArgList * GetAllTestStatisticsData(void) const
void SetAllTestStatisticsData(const RooArgList *tsd)
Double_t fAlternatePValue
virtual ~HypoTestResult()
destructor
virtual Double_t NullPValue() const
Return p-value for null hypothesis.
Double_t GetTestStatisticData(void) const
SamplingDistribution * fAltDistr
Double_t fAlternatePValueError
void SetAltDetailedOutput(RooDataSet *d)
SamplingDistribution * GetNullDistribution(void) const
Bool_t fPValueIsRightTail
RooDataSet is a container class to hold unbinned data.
void SetTestStatisticData(const Double_t tsd)
This class simply holds a sampling distribution of some test statistic.
HypoTestResult(const char *name=0)
default constructor
virtual void Append(const HypoTestResult *other)
add values from another HypoTestResult
virtual Double_t CLs() const
is simply (not a method, but a quantity)
virtual Double_t AlternatePValue() const
Return p-value for alternate hypothesis.
void SetPValueIsRightTail(Bool_t pr)
virtual Double_t CLsplusb() const
Convert AlternatePValue into a "confidence level".
RooDataSet * GetNullDetailedOutput(void) const
Namespace for the RooStats classes.
SamplingDistribution * fNullDistr
Double_t CLsplusbError() const
The error on the "confidence level" of the alternative hypothesis.
void SetNullDetailedOutput(RooDataSet *d)
Double_t SignificanceError() const
The error on the significance, computed from NullPValueError via error propagation.
RooDataSet * fAltDetailedOutput
Bool_t GetBackGroundIsAlt(void) const
void SetNullDistribution(SamplingDistribution *null)