16#ifndef ROO_COMPOSITE_DATA_STORE
17#define ROO_COMPOSITE_DATA_STORE
84 virtual void reset() ;
100 std::size_t nStart=0, std::size_t nStop = std::numeric_limits<std::size_t>::max());
106 std::cerr <<
"This functionality is not yet implemented for composite data stores." << std::endl;
107 throw std::logic_error(
"getBatches() not implemented for RooCompositeDataStore.");
typedef void(GLAPIENTRYP _GLUfuncptr)(void)
#define WRITE_TSTRING_COMPATIBLE_CONSTRUCTOR(Class_t)
#define ClassDef(name, id)
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...
const RooArgSet & cachedVars() const
virtual Double_t weight() const =0
virtual const RooArgSet * get() const
std::map< RooFit::Detail::DataKey, RooSpan< const double > > RealSpans
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooCategory is an object to represent discrete states.
RooCompositeDataStore combines several disjunct datasets into one.
virtual RooAbsArg * addColumn(RooAbsArg &var, Bool_t adjustRange=kTRUE)
WVE ownership issue here!! Caller (a RooAbsData) should take ownership of all arguments,...
virtual void resetCache()
std::unique_ptr< std::vector< double > > _weightBuffer
Index associated with current event.
Int_t _curIndex
Datastore associated with current event.
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())
virtual Bool_t changeObservableName(const char *from, const char *to)
Change name of internal observable named 'from' into 'to'.
std::map< Int_t, RooAbsDataStore * > _dataMap
virtual RooAbsDataStore * clone(const RooArgSet &vars, const char *newname=0) const
virtual void attachBuffers(const RooArgSet &extObs)
void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)
Initialize cache of dataset: attach variables of cache ArgSet to the corresponding TTree branches.
virtual Double_t weightError(RooAbsData::ErrorType etype=RooAbsData::Poisson) const
virtual void resetBuffers()
Bool_t _ownComps
Buffer for weights in case a batch of values is requested.
virtual const RooAbsArg * cacheOwner()
RooAbsData::RealSpans getBatches(std::size_t first, std::size_t len) const
Retrieve batches for all observables in this data store.
virtual Double_t sumEntries() const
Forward fill request to appropriate subset.
virtual void setArgStatus(const RooArgSet &set, Bool_t active)
virtual RooArgSet * addColumns(const RooArgList &varList)
WVE ownership issue here!! Caller (a RooAbsData) should take ownership of all arguments,...
virtual RooSpan< const double > getWeightBatch(std::size_t first, std::size_t len) const
Get the weights of the events in the range [first, first+len).
virtual Int_t numEntries() const
virtual void append(RooAbsDataStore &other)
virtual Bool_t isWeighted() const
virtual RooAbsDataStore * clone(const char *newname=0) const
virtual Double_t weight() const
virtual void cacheArgs(const RooAbsArg *owner, RooArgSet &varSet, const RooArgSet *nset=0, Bool_t skipZeroWeights=kFALSE)
RooAbsDataStore * _curStore
virtual ~RooCompositeDataStore()
Destructor.
RooAbsDataStore * merge(const RooArgSet &allvars, std::list< RooAbsDataStore * > dstoreList)
virtual Bool_t hasFilledCache() const
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, Bool_t)
Forward recalculate request to all subsets.
virtual void forceCacheUpdate()
virtual const RooArgSet * get() const
virtual Int_t fill()
Forward fill request to appropriate subset.
A simple container to hold a batch of data values.