57 _parName(param.GetName()),
58 _data(0), _nll0h(0), _dll0h(0), _sig0h(0), _nullValue(nullHypoValue)
71 _data(0), _nll0h(0), _dll0h(0), _sig0h(0), _nullValue(nullHypoValue)
82 _parName(other._parName),
83 _data(0), _nll0h(0), _dll0h(0), _sig0h(0), _nullValue(other._nullValue)
117 coutE(
InputArguments) <<
"RooDLLSignificanceMCSModule::initializeInstance:: ERROR: No parameter named " <<
_parName <<
" in RooMCStudy!" << endl ;
128 TString dll0hTitle =
Form(
"-log(L) difference w.r.t null hypo for param %s",
_parName.c_str()) ;
133 TString sig0hTitle =
Form(
"Gaussian signficiance of Delta(-log(L)) w.r.t null hypo for param %s",
_parName.c_str()) ;
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that can perform additional calc...
RooRealVar * nllVar()
Return pointer to RooRealVar holding minimized -log(L) value.
RooArgSet * fitParams()
Return current value of parameters of fit model.
RooFitResult * refit(RooAbsData *inGenSample=0)
Refit model using orignal or specified data sample.
void setConstant(Bool_t value=kTRUE)
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooDLLSignificanceMCSModule is an add-on modules to RooMCStudy that calculates the significance of a ...
~RooDLLSignificanceMCSModule() override
Destructor.
RooDataSet * _data
Summary dataset to store results.
Bool_t processAfterFit(Int_t) override
Save likelihood from nominal fit, fix chosen parameter to its null hypothesis value and rerun fit Sav...
Bool_t initializeInstance() override
Initialize module after attachment to RooMCStudy object.
RooDataSet * finalizeRun() override
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
std::string _parName
Name of Nsignal parameter.
RooRealVar * _sig0h
Container variable for NLL result with signal.
RooDLLSignificanceMCSModule(const RooRealVar ¶m, Double_t nullHypoValue=0)
Constructor of module with parameter to be interpreted as nSignal and the value of the null hypothesi...
Bool_t initializeRun(Int_t) override
Initialize module at beginning of RooCMStudy run.
Double_t _nullValue
Numeric value of Nsignal parameter representing the null hypothesis.
RooRealVar * _nll0h
Container variable for NLL result on null hypothesis.
RooRealVar * _dll0h
Container variable for delta NLL.
RooDataSet is a container class to hold unbinned data.
void add(const RooArgSet &row, Double_t weight=1.0, Double_t weightError=0) override
Add one ore more rows of data.
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Double_t minNll() const
Return minimized -log(L) value.
RooRealVar represents a variable that can be changed from the outside.
void setVal(Double_t value) override
Set value of variable to 'value'.
const char * Data() const
VecExpr< UnaryOp< Sqrt< T >, VecExpr< A, T, D >, T >, T, D > sqrt(const VecExpr< A, T, D > &rhs)