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