16#ifndef ROO_ABS_DATA_STORE
17#define ROO_ABS_DATA_STORE
53 std::size_t nStart, std::size_t nStop) = 0 ;
75 std::cerr <<
"This functionality is not yet implemented for this data store." << std::endl;
76 throw std::logic_error(
"getCategoryBatches() not implemented in RooAbsDataStore.");
116 void printArgs(std::ostream& os)
const override;
145 std::size_t nStart=0, std::size_t nStop = std::numeric_limits<std::size_t>::max()) = 0 ;
#define ClassDefOverride(name, id)
static void indent(ostringstream &buf, int indent_level)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
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...
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 void cacheArgs(const RooAbsArg *cacheOwner, RooArgSet &varSet, const RooArgSet *nset=nullptr, bool skipZeroWeights=false)=0
virtual RooAbsData::CategorySpans getCategoryBatches(std::size_t, std::size_t) const
virtual void loadValues(const RooAbsDataStore *tds, const RooFormulaVar *select=nullptr, const char *rangeName=nullptr, std::size_t nStart=0, std::size_t nStop=std::numeric_limits< std::size_t >::max())=0
const RooArgSet & cachedVars() const
virtual void append(RooAbsDataStore &other)=0
RooAbsDataStore(const RooAbsDataStore &other, const RooArgSet &vars, const char *newname=nullptr)
virtual const RooArgSet * get(Int_t index) const =0
virtual std::unique_ptr< RooAbsDataStore > reduce(RooStringView name, RooStringView title, const RooArgSet &vars, const RooFormulaVar *cutVar, const char *cutRange, std::size_t nStart, std::size_t nStop)=0
virtual void resetBuffers()=0
virtual RooAbsDataStore * clone(const char *newname=nullptr) const =0
virtual const TTree * tree() const
void printArgs(std::ostream &os) const override
Print argument of dataset, i.e. the observable names.
virtual bool isWeighted() const =0
void Print(Option_t *options=nullptr) const override
This method must be overridden when a class wants to print itself.
RooAbsDataStore(const RooAbsDataStore &other, const char *newname=nullptr)
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 bool changeObservableName(const char *from, const char *to)=0
virtual double sumEntries() const
virtual void setArgStatus(const RooArgSet &set, bool active)=0
bool _doDirtyProp
Switch do (de)activate dirty state propagation when loading a data point.
virtual void weightError(double &lo, double &hi, RooAbsData::ErrorType etype=RooAbsData::Poisson) const =0
virtual void setExternalWeightArray(const double *, const double *, const double *, const double *)
void printValue(std::ostream &os) const override
Print value of the dataset, i.e. the sum of weights contained in the dataset.
RooAbsDataStore(RooStringView name, RooStringView title, const RooArgSet &vars)
virtual RooAbsDataStore * merge(const RooArgSet &allvars, std::list< RooAbsDataStore * > dstoreList)=0
virtual bool hasFilledCache() const
void printTitle(std::ostream &os) const override
Print title of dataset.
RooArgSet * addColumns(const RooArgList &varList)
virtual double weightError(RooAbsData::ErrorType etype=RooAbsData::Poisson) const =0
virtual RooAbsArg * addColumn(RooAbsArg &var, bool adjustRange=true)=0
void printMultiline(std::ostream &os, Int_t content, bool verbose, TString indent) const override
Detailed printing interface.
double weight(Int_t index) const
virtual void resetCache()=0
virtual void forceCacheUpdate()
virtual void setDirtyProp(bool flag)
virtual void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)=0
int defaultPrintContents(Option_t *) const override
Define default print options, for a given print style.
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, bool)
virtual RooAbsDataStore * clone(const RooArgSet &vars, const char *newname=nullptr) const =0
virtual double weight() const =0
virtual Int_t numEntries() const =0
virtual const RooArgSet * get() const
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=nullptr)
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 RooStringView is a wrapper around a C-syle string that can also be constructed from a std::string...
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
A TTree represents a columnar dataset.