12#ifndef ROOSTATS_MarkovChain
13#define ROOSTATS_MarkovChain
34 virtual void Add(
RooArgSet& entry,
double nllValue,
double weight = 1.0);
37 virtual void AddFast(
RooArgSet& entry,
double nllValue,
double weight = 1.0);
41 virtual void Add(
MarkovChain& otherChain,
double discardEntries = 0.0);
51 virtual double Weight()
const;
57 virtual double NLL()
const;
int Int_t
Signed integer 4 bytes (int).
#define ClassDefOverride(name, id)
Abstract container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Container class to hold unbinned data.
Variable that can be changed from the outside.
virtual RooRealVar * GetWeightVar() const
get a clone of the weight variable
virtual THnSparse * GetAsSparseHist(RooAbsCollection &whichVars) const
virtual void AddFast(RooArgSet &entry, double nllValue, double weight=1.0)
add an entry to the chain ONLY IF you have constructed with parameters or called SetParameters
virtual double NLL() const
get the NLL value of the current (last indexed) entry
virtual void AddWithBurnIn(MarkovChain &otherChain, Int_t burnIn=0)
add another markov chain
virtual RooFit::OwningPtr< RooDataHist > GetAsDataHist(RooArgSet *whichVars=nullptr) const
get this MarkovChain as a RooDataHist whose entries contain the values of whichVars.
virtual void Add(RooArgSet &entry, double nllValue, double weight=1.0)
safely add an entry to the chain
virtual RooFit::OwningPtr< RooDataSet > GetAsDataSet(RooArgSet *whichVars=nullptr) const
get this MarkovChain as a RooDataSet whose entries contain the values of whichVars.
virtual THnSparse * GetAsSparseHist(RooAbsCollection *whichVars=nullptr) const
Get a clone of the markov chain on which this interval is based as a sparse histogram.
virtual const RooArgSet * Get() const
get the entry at the current position
virtual void SetParameters(RooArgSet ¶meters)
set which of your parameters this chain should store
virtual RooRealVar * GetNLLVar() const
get a clone of the NLL variable
virtual const RooArgSet * Get(Int_t i) const
get the entry at position i
virtual double Weight() const
get the weight of the current (last indexed) entry
virtual const RooDataSet * GetAsConstDataSet() const
virtual Int_t Size() const
get the number of steps in the chain
Efficient multidimensional histogram.
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
T * OwningPtr
An alias for raw pointers for indicating that the return type of a RooFit function is an owning point...
Namespace for the RooStats classes.