11#ifndef ROOSTATS_MaxLikelihoodEstimateTestStat
12#define ROOSTATS_MaxLikelihoodEstimateTestStat
110 for (
int tries = 0, maxtries = 4; tries <= maxtries; ++tries) {
117 printf(
" ----> Doing a re-scan first\n");
121 printf(
" ----> trying with strategy = 1\n");
132 if (status != 0)
return -1;
#define ClassDef(name, id)
char * Form(const char *fmt,...)
static int DefaultPrintLevel()
static const std::string & DefaultMinimizerType()
static int DefaultStrategy()
RooArgSet * getParameters(const RooAbsData *data, Bool_t stripDisconnected=kTRUE) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual RooAbsReal * createNLL(RooAbsData &data, const RooLinkedList &cmdList)
Construct representation of -log(L) of PDFwith given dataset.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
RooMinimizer is a wrapper class around ROOT::Fit:Fitter that provides a seamless interface between th...
Int_t minimize(const char *type, const char *alg=0)
Minimise the function passed in the constructor.
Int_t setPrintLevel(Int_t newLevel)
Change the MINUIT internal printing level.
void setStrategy(Int_t strat)
Change MINUIT strategy to istrat.
static RooMsgService & instance()
Return reference to singleton instance.
void setGlobalKillBelow(RooFit::MsgLevel level)
RooFit::MsgLevel globalKillBelow() const
RooRealVar represents a variable that can be changed from the outside.
MaxLikelihoodEstimateTestStat: TestStatistic that returns maximum likelihood estimate of a specified ...
virtual void SetConditionalObservables(const RooArgSet &set)
interface to set conditional observables. If a test statistics needs them it will re-implement this f...
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &)
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
virtual void PValueIsRightTail(bool isright)
MaxLikelihoodEstimateTestStat()
virtual const TString GetVarName() const
MaxLikelihoodEstimateTestStat(RooAbsPdf &pdf, RooRealVar ¶meter)
virtual bool PValueIsRightTail(void) const
Defines the sign convention of the test statistic. Overwrite function if necessary.
RooArgSet fConditionalObs
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
virtual const char * GetName() const
Returns name of object.
RooCmdArg Constrain(const RooArgSet ¶ms)
MsgLevel
Verbosity level for RooMsgService::StreamConfig in RooMsgService.
RooCmdArg CloneData(Bool_t flag)
RooCmdArg ConditionalObservables(const RooArgSet &set)
Namespace for the RooStats classes.
void RemoveConstantParameters(RooArgSet *set)