11 #ifndef ROOSTATS_MaxLikelihoodEstimateTestStat
12 #define ROOSTATS_MaxLikelihoodEstimateTestStat
114 for (
int tries = 0, maxtries = 4; tries <= maxtries; ++tries) {
121 printf(
" ----> Doing a re-scan first\n");
125 printf(
" ----> trying with strategy = 1\n");
136 if (status != 0)
return -1;
virtual RooAbsReal * createNLL(RooAbsData &data, const RooLinkedList &cmdList)
Construct representation of -log(L) of PDFwith given dataset.
static int DefaultStrategy()
RooCmdArg CloneData(Bool_t flag)
static RooMsgService & instance()
Return reference to singleton instance.
virtual void PValueIsRightTail(bool isright)
void setStrategy(Int_t strat)
Change MINUIT strategy to istrat.
virtual void SetConditionalObservables(const RooArgSet &set)
virtual const TString GetVarName() const
#define ClassDef(name, id)
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
Double_t getVal(const RooArgSet *set=0) const
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...
RooFit::MsgLevel globalKillBelow() const
static const std::string & DefaultMinimizerType()
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...
static int DefaultPrintLevel()
char * Form(const char *fmt,...)
void setGlobalKillBelow(RooFit::MsgLevel level)
virtual const char * GetName() const
Returns name of object.
MaxLikelihoodEstimateTestStat()
Namespace for the RooStats classes.
RooArgSet fConditionalObs
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
MaxLikelihoodEstimateTestStat(RooAbsPdf &pdf, RooRealVar ¶meter)
Int_t minimize(const char *type, const char *alg=0)
Int_t setPrintLevel(Int_t newLevel)
Change the MINUIT internal printing level.
MaxLikelihoodEstimateTestStat: TestStatistic that returns maximum likelihood estimate of a specified ...
void RemoveConstantParameters(RooArgSet *set)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooCmdArg ConditionalObservables(const RooArgSet &set)
virtual bool PValueIsRightTail(void) const
Defines the sign convention of the test statistic. Overwrite function if necessary.
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add element to non-owning set.
RooCmdArg Constrain(const RooArgSet ¶ms)