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()) ;
177 std::unique_ptr<RooFitResult> frnull{
refit()};
182 double deltaLL = (frnull->minNll() -
nllVar()->
getVal()) ;
183 double signif = deltaLL>0 ? sqrt(2*deltaLL) : -sqrt(-2*deltaLL) ;
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.
RooFit::OwningPtr< RooFitResult > refit(RooAbsData *inGenSample=nullptr)
Refit model using original or specified data sample.
RooArgSet * fitParams()
Return current value of parameters of fit model.
void setConstant(bool value=true)
double 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 ...
double _nullValue
Numeric value of Nsignal parameter representing the null hypothesis.
~RooDLLSignificanceMCSModule() override
Destructor.
RooDLLSignificanceMCSModule(const RooRealVar ¶m, double nullHypoValue=0.0)
Constructor of module with parameter to be interpreted as nSignal and the value of the null hypothesi...
RooDataSet * _data
Summary dataset to store results.
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.
bool initializeInstance() override
Initialize module after attachment to RooMCStudy object.
bool initializeRun(Int_t) override
Initialize module at beginning of RooCMStudy run.
bool processAfterFit(Int_t) override
Save likelihood from nominal fit, fix chosen parameter to its null hypothesis value and rerun fit Sav...
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 weight=1.0, double weightError=0.0) override
Add one ore more rows of data.
RooRealVar represents a variable that can be changed from the outside.
void setVal(double value) override
Set value of variable to 'value'.
const char * Data() const