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. ...
RooAbsDataStore is the abstract base class for data collection that use a TTree as internal storage m...
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 const RooArgSet * get() const
virtual RooAbsDataStore * clone(const RooArgSet &vars, 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 RooAbsDataStore * clone(const char *newname=0) 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 Double_t sumEntries() const
RooVectorDataStore is the abstract base class for data collection that use a TTree as internal storag...
virtual Bool_t valid() const
Return true if currently loaded coordinate is considered valid within the current range definitions o...
Double_t * _extWgtErrHiArray
External weight array - low error.
const RooAbsArg * _cacheOwner
TTree holding the cached function values.
virtual ~RooTreeDataStore()
Destructor.
virtual Double_t weightError(RooAbsData::ErrorType etype=RooAbsData::Poisson) const
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...
const RooArgSet & cachedVars() const
virtual void append(RooAbsDataStore &other)
RooRealVar represents a fundamental (non-derived) real valued object.
void restoreAlternateBuffers()
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual Int_t fill()
Interface function to TTree::Fill.
static Int_t _defTreeBufSize
Int_t getBranchBufferSize() const
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.
void select(Int_t replica=1, Int_t color=kGreen)
RooArgSet varsNoWeight(const RooArgSet &allVars, const char *wgtName=0)
Utility function for constructors Return RooArgSet that is copy of allVars minus variable matching wg...
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.
void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)
Initialize cache of dataset: attach variables of cache ArgSet to the corresponding TTree branches...
Stat_t GetEntries() const
Interface function to TTree::GetEntries.
RooAbsDataStore * merge(const RooArgSet &allvars, std::list< RooAbsDataStore * > dstoreList)
Merge columns of supplied data set(s) with this data set.
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...
virtual const TTree * tree() const
A TTree object has a header with a name and a title.
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...
virtual void checkInit() const
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.
virtual Double_t weight() const
Return the weight of the n-th data point (n='index') in memory.
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 Bool_t isWeighted() const