34 <<
"Same RooArgSet used for null and alternate, so you must explicitly SetNullParameters and SetAlternateParameters or the likelihood ratio will always be 1." 58 if (reuse && !created) {
65 *attachedSet = nullPOI;
84 if (reuse && !created) {
122 return nullNLL - altNLL;
virtual RooAbsReal * createNLL(RooAbsData &data, const RooLinkedList &cmdList)
Construct representation of -log(L) of PDFwith given dataset.
RooArgSet fConditionalObs
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
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...
Bool_t setRealValue(const char *name, Double_t newVal=0, Bool_t verbose=kFALSE)
Set value of a RooAbsRealLValye stored in set with given name to newVal No error messages are printed...
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
RooCmdArg CloneData(Bool_t flag)
Double_t getVal(const RooArgSet *set=0) const
RooFit::MsgLevel globalKillBelow() const
RooAbsReal * fNllAlt
transient copy of the null NLL
static RooMsgService & instance()
Return reference to singleton instance.
RooArgSet * fDetailedOutput
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &nullPOI)
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
virtual Bool_t setData(RooAbsData &, Bool_t=kTRUE)
RooRealVar represents a fundamental (non-derived) real valued object.
RooArgSet * fAltParameters
RooCmdArg GlobalObservables(const RooArgSet &globs)
RooAbsPdf * MakeUnconstrainedPdf(RooAbsPdf &pdf, const RooArgSet &observables, const char *name=NULL)
bool fDetailedOutputEnabled
void setGlobalKillBelow(RooFit::MsgLevel level)
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooArgSet * fNullParameters
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...
static void SetAlwaysReuseNLL(Bool_t flag)
static Bool_t fgAlwaysReuseNll
transient copy of the alt NLL
RooCmdArg ConditionalObservables(const RooArgSet &set)
RooCmdArg Constrain(const RooArgSet ¶ms)