16#ifndef ROO_ABS_DATA_STORE
17#define ROO_ABS_DATA_STORE
76 std::cerr <<
"This functionality is not yet implemented for this data store." << std::endl;
77 throw std::logic_error(
"getCategoryBatches() not implemented in RooAbsDataStore.");
117 void printArgs(std::ostream& os)
const override;
146 std::size_t nStart=0, std::size_t nStop = std::numeric_limits<std::size_t>::max()) = 0 ;
#define WRITE_TSTRING_COMPATIBLE_CONSTRUCTOR(Class_t)
#define ClassDefOverride(name, id)
static void indent(ostringstream &buf, int indent_level)
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
RooAbsDataStore is the abstract base class for data collection that use a TTree as internal storage m...
RooAbsDataStore(const RooAbsDataStore &other, const char *newname=0)
virtual const RooAbsArg * cacheOwner()=0
virtual RooSpan< const double > getWeightBatch(std::size_t first, std::size_t len) const =0
virtual void attachBuffers(const RooArgSet &extObs)=0
virtual Bool_t hasFilledCache() const
virtual RooAbsData::CategorySpans getCategoryBatches(std::size_t, std::size_t) const
const RooArgSet & cachedVars() const
virtual void append(RooAbsDataStore &other)=0
virtual Bool_t changeObservableName(const char *from, const char *to)=0
virtual void resetBuffers()=0
virtual void setExternalWeightArray(const Double_t *, const Double_t *, const Double_t *, const Double_t *)
virtual const TTree * tree() const
void printArgs(std::ostream &os) const override
Print argument of dataset, i.e. the observable names.
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
virtual void checkInit() const
virtual RooAbsData::RealSpans getBatches(std::size_t first, std::size_t len) const =0
Retrieve batches for all observables in this data store.
void printName(std::ostream &os) const override
Print name of dataset.
virtual int defaultPrintContents(Option_t *) const override
Define default print options, for a given print style.
RooAbsDataStore(const RooAbsDataStore &other, const RooArgSet &vars, const char *newname=0)
virtual void loadValues(const RooAbsDataStore *tds, const RooFormulaVar *select=0, const char *rangeName=0, std::size_t nStart=0, std::size_t nStop=std::numeric_limits< std::size_t >::max())=0
virtual Double_t weight() const =0
virtual Double_t weightError(RooAbsData::ErrorType etype=RooAbsData::Poisson) const =0
void printValue(std::ostream &os) const override
Print value of the dataset, i.e. the sum of weights contained in the dataset.
virtual RooAbsDataStore * clone(const char *newname=0) const =0
virtual RooAbsDataStore * merge(const RooArgSet &allvars, std::list< RooAbsDataStore * > dstoreList)=0
void printTitle(std::ostream &os) const override
Print title of dataset.
virtual void setDirtyProp(Bool_t flag)
double weight(Int_t index) const
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()
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose, TString indent) const override
Detailed printing interface.
virtual void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)=0
virtual Bool_t isWeighted() const =0
void Print(Option_t *options=0) const override
Print TNamed name and title.
virtual void setArgStatus(const RooArgSet &set, Bool_t active)=0
virtual Int_t numEntries() const =0
virtual const RooArgSet * get() const
RooAbsDataStore(std::string_view name, std::string_view title, const RooArgSet &vars)
virtual RooAbsArg * addColumn(RooAbsArg &var, Bool_t adjustRange=kTRUE)=0
void printClassName(std::ostream &os) const override
Print class name of dataset.
std::map< RooFit::Detail::DataKey, RooSpan< const double > > RealSpans
std::map< RooFit::Detail::DataKey, RooSpan< const RooAbsCategory::value_type > > CategorySpans
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.
The TNamed class is the base class for all named ROOT classes.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
A TTree represents a columnar dataset.
Namespace for dispatching RooFit computations to various backends.