16#ifndef ROO_ABS_DATA_STORE
17#define ROO_ABS_DATA_STORE
56 virtual std::vector<RooSpan<const double>>
getBatch(std::size_t
first, std::size_t last)
const = 0;
90 virtual void printName(std::ostream& os)
const ;
91 virtual void printTitle(std::ostream& os)
const ;
93 virtual void printArgs(std::ostream& os)
const ;
94 virtual void printValue(std::ostream& os)
const ;
#define ClassDef(name, id)
static void indent(ostringstream &buf, int indent_level)
float type_of_call hi(const int &, const int &)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooAbsDataStore is the abstract base class for data collection that use a TTree as internal storage m...
virtual const RooAbsArg * cacheOwner()=0
virtual void attachBuffers(const RooArgSet &extObs)=0
virtual Bool_t hasFilledCache() const
virtual void printName(std::ostream &os) const
Print name of dataset.
const RooArgSet & cachedVars() const
virtual void append(RooAbsDataStore &other)=0
virtual Bool_t changeObservableName(const char *from, const char *to)=0
virtual const RooArgSet * get(Int_t index) const =0
virtual void resetBuffers()=0
virtual void setExternalWeightArray(const Double_t *, const Double_t *, const Double_t *, const Double_t *)
RooAbsDataStore()
Default constructor.
virtual Double_t weight(Int_t index) const =0
virtual const TTree * tree() const
virtual RooAbsDataStore * clone(const RooArgSet &vars, const char *newname=0) const =0
virtual Double_t sumEntries() const
virtual void weightError(Double_t &lo, Double_t &hi, RooAbsData::ErrorType etype=RooAbsData::Poisson) const =0
virtual void cacheArgs(const RooAbsArg *cacheOwner, RooArgSet &varSet, const RooArgSet *nset=0, Bool_t skipZeroWeights=kFALSE)=0
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose, TString indent) const
Detailed printing interface.
virtual void checkInit() const
virtual void loadValues(const RooAbsDataStore *tds, const RooFormulaVar *select=0, const char *rangeName=0, Int_t nStart=0, Int_t nStop=2000000000)=0
virtual Double_t weight() const =0
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
virtual void printClassName(std::ostream &os) const
Print class name of dataset.
virtual Double_t weightError(RooAbsData::ErrorType etype=RooAbsData::Poisson) const =0
virtual RooAbsDataStore * clone(const char *newname=0) const =0
virtual RooAbsDataStore * merge(const RooArgSet &allvars, std::list< RooAbsDataStore * > dstoreList)=0
virtual std::vector< RooSpan< const double > > getBatch(std::size_t first, std::size_t last) const =0
virtual void setDirtyProp(Bool_t flag)
virtual void printTitle(std::ostream &os) const
Print title of dataset.
virtual void printArgs(std::ostream &os) const
Print argument of dataset, i.e. the observable names.
virtual void resetCache()=0
virtual RooArgSet * addColumns(const RooArgList &varList)=0
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, Bool_t)
virtual void forceCacheUpdate()
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
virtual Bool_t valid() const =0
Return true if currently loaded coordinate is considered valid within the current range definitions o...
virtual void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)=0
virtual Bool_t isWeighted() const =0
virtual ~RooAbsDataStore()
Destructor.
virtual void setArgStatus(const RooArgSet &set, Bool_t active)=0
virtual Int_t numEntries() const =0
virtual const RooArgSet * get() const
virtual RooSpan< const double > getWeightBatch(std::size_t first, std::size_t last) const
Get the weights of the events in the range [first, last[.
virtual void printValue(std::ostream &os) const
Print value of the dataset, i.e. the sum of weights contained in the dataset.
virtual RooAbsArg * addColumn(RooAbsArg &var, Bool_t adjustRange=kTRUE)=0
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods.
virtual StyleOption defaultPrintStyle(Option_t *opt) const
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
A simple container to hold a batch of data values.
Iterator abstract base class.
The TNamed class is the base class for all named ROOT classes.
A TTree represents a columnar dataset.