51 fTestStat_data(-999.),
52 fComputationsNulDoneFlag(
false),
53 fComputationsAltDoneFlag(
false),
54 fSumLargerValues(
false)
67 fTestStat_data(-999.),
68 fComputationsNulDoneFlag(
false),
69 fComputationsAltDoneFlag(
false),
119 coutE(Eval) <<
"Error: no toy data present. Returning -1.\n";
149 coutE(Eval) <<
"Error: no toy data present. Returning -1.\n";
181 return std::sqrt(
CLb() * (1. -
CLb()) /
n);
281 std::cout <<
"\nResults " <<
GetName() <<
":\n"
282 <<
" - Number of S+B toys: " <<
fTestStat_b.size() << std::endl
283 <<
" - Number of B toys: " <<
fTestStat_sb.size() << std::endl
284 <<
" - test statistics evaluated on data: " <<
fTestStat_data << std::endl
285 <<
" - CL_b " <<
CLb() << std::endl
286 <<
" - CL_s+b " <<
CLsplusb() << std::endl
287 <<
" - CL_s " <<
CLs() << std::endl;
HybridPlot(const char *name, const char *title, const std::vector< double > &sb_values, const std::vector< double > &b_values, double testStat_data, int n_bins, bool verbosity=true)
Constructor.
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.
void Add(HybridResult *other)
add additional toy-MC experiments to the current results use the data test statistics of the added ob...
HybridPlot * GetPlot(const char *name, const char *title, int n_bins) R__DEPRECATED(6
prepare a plot showing a result and return a pointer to a HybridPlot object the needed arguments are:...
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.