38static const char*
NLL_NAME =
"nll_MarkovChain_local_";
82 fNLL->setVal(nllValue);
94 for(
int i=0; i < otherChain.
Size(); i++ ) {
110 for(
int i=0; i < otherChain.
Size(); i++ ) {
113 if(
counter > discardEntries ) {
122 fNLL->setVal(nllValue);
131 if (whichVars ==
nullptr) {
136 args.
add(*whichVars);
145 if (whichVars ==
nullptr) {
150 args.
add(*whichVars);
160 if (whichVars ==
nullptr) {
163 axes.
add(*whichVars);
167 std::vector<double> min(dim);
168 std::vector<double> max(dim);
169 std::vector<Int_t> bins(dim);
170 std::vector<const char *> names(dim);
173 names[i] = var->GetName();
174 min[i] = var->getMin();
175 max[i] = var->getMax();
176 bins[i] = var->numBins();
181 dim, &bins[0], &min[0], &max[0]);
191 std::vector<double>
x(dim);
192 for ( i = 0; i <
size; i++) {
195 for (
Int_t ii = 0; ii < dim; ii++) {
static const char * DATASET_NAME
static const char * NLL_NAME
static const char * DEFAULT_TITLE
static const char * WEIGHT_NAME
static const char * DEFAULT_NAME
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
THnSparseT< TArrayF > THnSparseF
Abstract container object that can hold multiple RooAbsArg objects.
double getRealValue(const char *name, double defVal=0.0, bool verbose=false) const
Get value of a RooAbsReal stored in set with given name.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
Storage_t::size_type size() const
RooArgList is a 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.
RooFit::OwningPtr< RooDataHist > binnedClone(const char *newName=nullptr, const char *newTitle=nullptr) const
Return binned clone of this dataset.
Variable that can be changed from the outside.
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 double NLL(Int_t i) const
get the NLL value of entry at position i
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 void SetParameters(RooArgSet ¶meters)
set which of your parameters this chain should store
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 Int_t Size() const
get the number of steps in the chain
Long64_t Fill(const Double_t *x, Double_t w=1.)
Efficient multidimensional histogram.
void Sumw2() override
Enable calculation of errors.
RooCmdArg SelectVars(const RooArgSet &vars)
RooCmdArg WeightVar(const char *name="weight", bool reinterpretAsWeight=false)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
T * OwningPtr
An alias for raw pointers for indicating that the return type of a RooFit function is an owning point...
std::atomic< typename UniqueId< Class >::Value_t > UniqueId< Class >::counter
OwningPtr< T > makeOwningPtr(std::unique_ptr< T > &&ptr)
Internal helper to turn a std::unique_ptr<T> into an OwningPtr.
Namespace for the RooStats classes.
void SetParameters(const RooArgSet *desiredVals, RooArgSet *paramsToChange)