50 fTestStat_data(-999.),
51 fComputationsNulDoneFlag(
false),
52 fComputationsAltDoneFlag(
false),
53 fSumLargerValues(
false)
66 fTestStat_data(-999.),
67 fComputationsNulDoneFlag(
false),
68 fComputationsAltDoneFlag(
false),
118 coutE(Eval) <<
"Error: no toy data present. Returning -1.\n";
148 coutE(Eval) <<
"Error: no toy data present. Returning -1.\n";
180 return std::sqrt(
CLb() * (1. -
CLb()) /
n);
248 std::cout <<
"\nResults " <<
GetName() <<
":\n"
249 <<
" - Number of S+B toys: " <<
fTestStat_b.size() << std::endl
250 <<
" - Number of B toys: " <<
fTestStat_sb.size() << std::endl
251 <<
" - test statistics evaluated on data: " <<
fTestStat_data << std::endl
252 <<
" - CL_b " <<
CLb() << std::endl
253 <<
" - CL_s+b " <<
CLsplusb() << std::endl
254 <<
" - CL_s " <<
CLs() << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Class encapsulating the result of the HybridCalculatorOriginal.
std::vector< double > fTestStat_b
~HybridResult() override
Destructor of HybridResult.
double AlternatePValue() const override
Returns : the S+B p-value.
void PrintMore(const char *options)
Print out some information about the results.
void Add(HybridResult *other)
add additional toy-MC experiments to the current results use the data test statistics of the added ob...
std::vector< double > fTestStat_sb
bool fComputationsAltDoneFlag
double CLsplusbError() const
The error on the "confidence level" of the alternative hypothesis.
double CLbError() const
The error on the "confidence level" of the null hypothesis.
void SetDataTestStatistics(double testStat_data_val)
set the value of the test statistics on data
HybridResult(const char *name=nullptr)
Default constructor.
double CLsError() const
The error on the ratio .
bool fComputationsNulDoneFlag
double NullPValue() const override
Returns : the B p-value.
HypoTestResult is a base class for results from hypothesis tests.
double fNullPValue
p-value for the null hypothesis (small number means disfavoured)
virtual double CLsplusb() const
Convert AlternatePValue into a "confidence level".
virtual double CLs() const
is simply (not a method, but a quantity)
double fAlternatePValue
p-value for the alternate hypothesis (small number means disfavoured)
virtual double CLb() const
Convert NullPValue into a "confidence level".
const char * GetName() const override
Returns name of object.
Namespace for the RooStats classes.