11#ifndef ROOSTATS_MaxLikelihoodEstimateTestStat
12#define ROOSTATS_MaxLikelihoodEstimateTestStat
70 std::unique_ptr<RooArgSet> allParams{
fPdf->getParameters(data)};
92 for (
int tries = 0, maxtries = 4; tries <= maxtries; ++tries) {
99 std::cout <<
" ----> Doing a re-scan first\n";
103 std::cout <<
" ----> trying with strategy = 1\n";
113 if (status != 0)
return -1;
int Int_t
Signed integer 4 bytes (int).
#define ClassDefOverride(name, id)
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Wrapper class around ROOT::Math::Minimizer that provides a seamless interface between the minimizer f...
void setPrintLevel(int newLevel)
Change the MINUIT internal printing level.
int minimize(const char *type, const char *alg=nullptr)
Minimise the function passed in the constructor.
void setStrategy(int istrat)
Change MINUIT strategy to istrat.
static RooMsgService & instance()
Return reference to singleton instance.
void setGlobalKillBelow(RooFit::MsgLevel level)
RooFit::MsgLevel globalKillBelow() const
Variable that can be changed from the outside.
bool PValueIsRightTail(void) const override
Defines the sign convention of the test statistic. Overwrite function if necessary.
void SetConditionalObservables(const RooArgSet &set) override
interface to set conditional observables. If a test statistics needs them it will re-implement this f...
virtual void PValueIsRightTail(bool isright)
MaxLikelihoodEstimateTestStat()
const TString GetVarName() const override
double Evaluate(RooAbsData &data, RooArgSet &) override
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
MaxLikelihoodEstimateTestStat(RooAbsPdf &pdf, RooRealVar ¶meter)
RooArgSet fConditionalObs
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
RooCmdArg Constrain(const RooArgSet ¶ms)
RooCmdArg CloneData(bool flag)
RooCmdArg ConditionalObservables(Args_t &&... argsOrArgSet)
Create a RooCmdArg to declare conditional observables.
Namespace for new Math classes and functions.
MsgLevel
Verbosity level for RooMsgService::StreamConfig in RooMsgService.
Namespace for the RooStats classes.
void RemoveConstantParameters(RooArgSet *set)