16#ifndef ROOSTATS_HybridCalculatorOriginal
17#define ROOSTATS_HybridCalculatorOriginal
48 bool GenerateBinned =
false,
int testStatistics = 1,
int ntoys = 1000 );
56 bool GenerateBinned =
false,
int testStatistics = 1,
int ntoys = 1000 );
63 bool GenerateBinned =
false,
int testStatistics = 1,
int ntoys = 1000 );
130 void PrintMore(
const char* options)
const;
136 void RunToys(std::vector<double>& bVals, std::vector<double>& sbVals,
unsigned int nToys,
bool usePriors)
const;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
HybridCalculatorOriginal class.
void SetNuisancePdf(RooAbsPdf &prior_pdf)
additional methods specific for HybridCalculator set a prior pdf for the nuisance parameters
virtual void SetAlternatePdf(RooAbsPdf &pdf)
Set the PDF for the alternate hypothesis ( i.e. S+B)
virtual void SetAlternateParameters(const RooArgSet &)
set parameter values for the alternate if using a common PDF
void PrintMore(const char *options) const
Print out some information about the input models.
RooAbsPdf * fSbModel
The pdf of the signal+background model.
virtual void SetNullParameters(const RooArgSet &)
set parameter values for the null if using a common PDF
unsigned int GetNumberOfToys() const
return number of toys used
void PatchSetExtended(bool on=true)
RooAbsPdf * fBModel
The pdf of the background model.
void SetData(RooAbsData &data) override
Set the DataSet.
void RunToys(std::vector< double > &bVals, std::vector< double > &sbVals, unsigned int nToys, bool usePriors) const
do the actual run-MC processing
unsigned int fNToys
number of Toys MC
void SetNullModel(const ModelConfig &) override
set the model for the null hypothesis (only B)
unsigned int fTestStatisticsIdx
Index of the test statistics to use.
RooAbsData * fData
pointer to the data sets
void SetAlternateModel(const ModelConfig &) override
set the model for the alternate hypothesis (S+B)
bool fGenerateBinned
Flag to control binned generation.
HybridCalculatorOriginal(const char *name=0)
Dummy Constructor with only name.
void UseNuisance(bool on=true)
control use of the pdf for the nuisance parameter and marginalize them
virtual void SetCommonPdf(RooAbsPdf &pdf)
Set a common PDF for both the null and alternate.
void SetTestStatistic(int index)
set the desired test statistics: index=1 : 2 * log( L_sb / L_b ) (DEFAULT) index=2 : number of genera...
const RooArgSet * fNuisanceParameters
Collection of the nuisance parameters in the model.
void SetGenerateBinned(bool on=true)
control to use bin data generation
HybridResult * GetHypoTest() const override
inherited methods from HypoTestCalculator interface
RooAbsPdf * fPriorPdf
Prior PDF of the nuisance parameters.
~HybridCalculatorOriginal() override
Destructor of HybridCalculator.
virtual void SetNullPdf(RooAbsPdf &pdf)
Set the PDF for the null (only B)
HybridResult * Calculate(TH1 &data, unsigned int nToys, bool usePriors) const
first compute the test statistics for data and then prepare and run the toy-MC experiments
bool DoCheckInputs() const
void SetNuisanceParameters(const RooArgSet ¶ms)
set the nuisance parameters to be marginalized
RooArgList * fObservables
Collection of the observables of the model.
void SetNumberOfToys(unsigned int ntoys)
set number of toy MC (Default is 1000)
bool fUsePriorPdf
use a prior for nuisance parameters
Class encapsulating the result of the HybridCalculatorOriginal.
HypoTestCalculator is an interface class for a tools which produce RooStats HypoTestResults.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
TH1 is the base class of all histogram classes in ROOT.
The TNamed class is the base class for all named ROOT classes.
Namespace for the RooStats classes.