16 #ifndef ROO_TREE_DATA_STORE 17 #define ROO_TREE_DATA_STORE 86 virtual void reset() ;
141 void createTree(
const char* name,
const char* title) ;
virtual Bool_t changeObservableName(const char *from, const char *to)
Change name of internal observable named 'from' into 'to'.
virtual RooArgSet * addColumns(const RooArgList &varList)
Utility function to add multiple columns in one call See addColumn() for details. ...
virtual const RooArgSet * get() const
RooAbsDataStore is the abstract base class for data collection that use a TTree as internal storage m...
RooAbsDataStore * merge(const RooArgSet &allvars, std::list< RooAbsDataStore *> dstoreList)
Merge columns of supplied data set(s) with this data set.
virtual void attachBuffers(const RooArgSet &extObs)
void loadValues(const TTree *t, const RooFormulaVar *select=0, const char *rangeName=0, Int_t nStart=0, Int_t nStop=2000000000)
Load values from tree 't' into this data collection, optionally selecting events using 'select' RooFo...
virtual RooAbsDataStore * clone(const char *newname=0) const
void Reset(Option_t *option=0)
Interface function to TTree::Reset.
Bool_t _defCtor
Object owning cache contents.
Int_t GetEntry(Int_t entry=0, Int_t getall=0)
Interface function to TTree::GetEntry.
void setBranchBufferSize(Int_t size)
RooTreeDataStore is the abstract base class for data collection that use a TTree as internal storage ...
virtual Bool_t isWeighted() const
const RooArgSet & cachedVars() const
virtual RooAbsArg * addColumn(RooAbsArg &var, Bool_t adjustRange=kTRUE)
Add a new column to the data set which holds the pre-calculated values of 'newVar'.
#define ClassDef(name, id)
Double_t * _extWgtErrLoArray
External weight array.
virtual void checkInit() const
RooVectorDataStore is the abstract base class for data collection that use a TTree as internal storag...
Stat_t GetEntries() const
Interface function to TTree::GetEntries.
Double_t * _extWgtErrHiArray
External weight array - low error.
const RooAbsArg * _cacheOwner
TTree holding the cached function values.
virtual const TTree * tree() const
virtual ~RooTreeDataStore()
Destructor.
virtual Bool_t valid() const
Return true if currently loaded coordinate is considered valid within the current range definitions o...
virtual void setArgStatus(const RooArgSet &set, Bool_t active)
Activate or deactivate the branch status of the TTree branch associated with the given set of dataset...
virtual void append(RooAbsDataStore &other)
RooRealVar represents a fundamental (non-derived) real valued object.
void restoreAlternateBuffers()
virtual Int_t fill()
Interface function to TTree::Fill.
static Int_t _defTreeBufSize
void setExternalWeightArray(Double_t *arrayWgt, Double_t *arrayWgtErrLo, Double_t *arrayWgtErrHi, Double_t *arraySumW2)
Int_t Fill()
Interface function to TTree::Fill.
virtual Int_t numEntries() const
Double_t * _extSumW2Array
External weight array - high error.
RooArgSet varsNoWeight(const RooArgSet &allVars, const char *wgtName=0)
Utility function for constructors Return RooArgSet that is copy of allVars minus variable matching wg...
virtual Double_t weight() const
Return the weight of the n-th data point (n='index') in memory.
RooArgSet _attachedBuffers
void initialize()
One-time initialization common to all constructor forms.
RooArgSet _varsww
Was object constructed with default ctor?
Double_t _curWgt
External sum of weights array.
Int_t getBranchBufferSize() const
void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)
Initialize cache of dataset: attach variables of cache ArgSet to the corresponding TTree branches...
virtual void resetCache()
Remove tree with values of cached observables and clear list of cached observables.
virtual void cacheArgs(const RooAbsArg *owner, RooArgSet &varSet, const RooArgSet *nset=0, Bool_t skipZeroWeights=kFALSE)
Cache given RooAbsArgs with this tree: The tree is given direct write access of the args internal cac...
A TTree object has a header with a name and a title.
float type_of_call hi(const int &, const int &)
virtual Double_t weightError(RooAbsData::ErrorType etype=RooAbsData::Poisson) const
virtual RooAbsDataStore * clone(const RooArgSet &vars, const char *newname=0) const
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
void createTree(const char *name, const char *title)
Create TTree object that lives in memory, independent of current location of gDirectory.
void Draw(Option_t *option="")
Default Draw method for all objects.
RooRealVar * weightVar(const RooArgSet &allVars, const char *wgtName=0)
Utility function for constructors Return pointer to weight variable if it is defined.
virtual void resetBuffers()
virtual const RooAbsArg * cacheOwner()
virtual Double_t sumEntries() const