54 fTestStat_data(-999.),
55 fComputationsNulDoneFlag(
false),
56 fComputationsAltDoneFlag(
false),
57 fSumLargerValues(
false)
70 fTestStat_data(-999.),
71 fComputationsNulDoneFlag(
false),
72 fComputationsAltDoneFlag(
false),
122 std::cout <<
"Error: no toy data present. Returning -1.\n";
152 std::cout <<
"Error: no toy data present. Returning -1.\n";
165 if (
larger_than_measured==0) std::cout <<
"Warning: CLsb = 0 ... maybe more toys are needed!\n";
184 return std::sqrt(
CLb() * (1. -
CLb()) /
n);
284 std::cout <<
"\nResults " <<
GetName() <<
":\n"
285 <<
" - Number of S+B toys: " <<
fTestStat_b.size() << std::endl
286 <<
" - Number of B toys: " <<
fTestStat_sb.size() << std::endl
287 <<
" - test statistics evaluated on data: " <<
fTestStat_data << std::endl
288 <<
" - CL_b " <<
CLb() << std::endl
289 <<
" - CL_s+b " <<
CLsplusb() << std::endl
290 <<
" - CL_s " <<
CLs() << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter char TVirtualGLPainter plot
This class provides the plots for the result of a study performed with the HybridCalculatorOriginal c...
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.
HybridPlot * GetPlot(const char *name, const char *title, int n_bins)
prepare a plot showing a result and return a pointer to a HybridPlot object the needed arguments are:...
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.
const char * GetTitle() const override
Returns title of object.
Namespace for the RooStats classes.