RooTreeDataStore Class Reference

#include <RooTreeDataStore.h>

Inheritance diagram for RooTreeDataStore:

RooAbsDataStore RooAbsDataStore RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed List of all members.

Public Member Functions

 RooTreeDataStore ()
 RooTreeDataStore (TTree *t, const RooArgSet &vars, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, const char *wgtVarName=0)
virtual RooAbsDataStoreclone (const RooArgSet &vars, const char *newname=0) const
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, TTree &t, const RooFormulaVar &select, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, TTree &t, const char *selExpr=0, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, const RooAbsDataStore &tds, const RooFormulaVar &select, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, const RooAbsDataStore &tds, const char *selExpr=0, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, RooAbsDataStore &tds, const RooArgSet &vars, const RooFormulaVar *cutVar, const char *cutRange, Int_t nStart, Int_t nStop, Bool_t, const char *wgtVarName=0)
 RooTreeDataStore (const RooTreeDataStore &other, const char *newname=0)
 RooTreeDataStore (const RooTreeDataStore &other, const RooArgSet &vars, const char *newname=0)
virtual ~RooTreeDataStore ()
virtual Int_t fill ()
virtual const RooArgSetget (Int_t index) const
virtual Double_t weight () const
virtual Double_t weightError (RooAbsData::ErrorType etype=RooAbsData::Poisson) const
virtual void weightError (Double_t &lo, Double_t &hi, RooAbsData::ErrorType etype=RooAbsData::Poisson) const
virtual Double_t weight (Int_t index) const
virtual Bool_t isWeighted () const
virtual Bool_t changeObservableName (const char *from, const char *to)
virtual RooAbsArgaddColumn (RooAbsArg &var, Bool_t adjustRange=kTRUE)
virtual RooArgSetaddColumns (const RooArgList &varList)
RooAbsDataStoremerge (const RooArgSet &allvars, std::list< RooAbsDataStore * > dstoreList)
virtual void append (RooAbsDataStore &other)
virtual Bool_t valid () const
virtual Int_t numEntries () const
virtual void reset ()
TTreetree ()
virtual const TTreetree () const
Stat_t GetEntries () const
void Reset (Option_t *option=0)
Int_t Fill ()
Int_t GetEntry (Int_t entry=0, Int_t getall=0)
void Draw (Option_t *option="")
virtual void cacheArgs (const RooAbsArg *owner, RooArgSet &varSet, const RooArgSet *nset=0)
virtual const RooAbsArgcacheOwner ()
virtual void setArgStatus (const RooArgSet &set, Bool_t active)
virtual void resetCache ()
void loadValues (const TTree *t, const RooFormulaVar *select=0, const char *rangeName=0, Int_t nStart=0, Int_t nStop=2000000000)
void loadValues (const RooAbsDataStore *tds, const RooFormulaVar *select=0, const char *rangeName=0, Int_t nStart=0, Int_t nStop=2000000000)
virtual void checkInit () const
void setExternalWeightArray (Double_t *arrayWgt, Double_t *arrayWgtErrLo, Double_t *arrayWgtErrHi, Double_t *arraySumW2)
const RooArgSetrow ()
 RooTreeDataStore ()
 RooTreeDataStore (TTree *t, const RooArgSet &vars, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, const char *wgtVarName=0)
virtual RooAbsDataStoreclone (const RooArgSet &vars, const char *newname=0) const
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, TTree &t, const RooFormulaVar &select, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, TTree &t, const char *selExpr=0, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, const RooAbsDataStore &tds, const RooFormulaVar &select, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, const RooArgSet &vars, const RooAbsDataStore &tds, const char *selExpr=0, const char *wgtVarName=0)
 RooTreeDataStore (const char *name, const char *title, RooAbsDataStore &tds, const RooArgSet &vars, const RooFormulaVar *cutVar, const char *cutRange, Int_t nStart, Int_t nStop, Bool_t, const char *wgtVarName=0)
 RooTreeDataStore (const RooTreeDataStore &other, const char *newname=0)
 RooTreeDataStore (const RooTreeDataStore &other, const RooArgSet &vars, const char *newname=0)
virtual ~RooTreeDataStore ()
virtual Int_t fill ()
virtual const RooArgSetget (Int_t index) const
virtual Double_t weight () const
virtual Double_t weightError (RooAbsData::ErrorType etype=RooAbsData::Poisson) const
virtual void weightError (Double_t &lo, Double_t &hi, RooAbsData::ErrorType etype=RooAbsData::Poisson) const
virtual Double_t weight (Int_t index) const
virtual Bool_t isWeighted () const
virtual Bool_t changeObservableName (const char *from, const char *to)
virtual RooAbsArgaddColumn (RooAbsArg &var, Bool_t adjustRange=kTRUE)
virtual RooArgSetaddColumns (const RooArgList &varList)
RooAbsDataStoremerge (const RooArgSet &allvars, std::list< RooAbsDataStore * > dstoreList)
virtual void append (RooAbsDataStore &other)
virtual Bool_t valid () const
virtual Int_t numEntries () const
virtual void reset ()
TTreetree ()
virtual const TTreetree () const
Stat_t GetEntries () const
void Reset (Option_t *option=0)
Int_t Fill ()
Int_t GetEntry (Int_t entry=0, Int_t getall=0)
void Draw (Option_t *option="")
virtual void cacheArgs (const RooAbsArg *owner, RooArgSet &varSet, const RooArgSet *nset=0)
virtual const RooAbsArgcacheOwner ()
virtual void setArgStatus (const RooArgSet &set, Bool_t active)
virtual void resetCache ()
void loadValues (const TTree *t, const RooFormulaVar *select=0, const char *rangeName=0, Int_t nStart=0, Int_t nStop=2000000000)
void loadValues (const RooAbsDataStore *tds, const RooFormulaVar *select=0, const char *rangeName=0, Int_t nStart=0, Int_t nStop=2000000000)
virtual void checkInit () const
void setExternalWeightArray (Double_t *arrayWgt, Double_t *arrayWgtErrLo, Double_t *arrayWgtErrHi, Double_t *arraySumW2)
const RooArgSetrow ()

Protected Member Functions

RooArgSet varsNoWeight (const RooArgSet &allVars, const char *wgtName=0)
RooRealVarweightVar (const RooArgSet &allVars, const char *wgtName=0)
void initialize ()
void attachCache (const RooAbsArg *newOwner, const RooArgSet &cachedVars)
void setBranchBufferSize (Int_t size)
Int_t getBranchBufferSize () const
void createTree (const char *name, const char *title)
RooArgSet varsNoWeight (const RooArgSet &allVars, const char *wgtName=0)
RooRealVarweightVar (const RooArgSet &allVars, const char *wgtName=0)
void initialize ()
void attachCache (const RooAbsArg *newOwner, const RooArgSet &cachedVars)
void setBranchBufferSize (Int_t size)
Int_t getBranchBufferSize () const
void createTree (const char *name, const char *title)

Protected Attributes

TTree_tree
TTree_cacheTree
const RooAbsArg_cacheOwner
 TTree holding the cached function values.
Bool_t _defCtor
 Object owning cache contents.
RooArgSet _varsww
 Was object constructed with default ctor?
RooRealVar_wgtVar
Double_t_extWgtArray
Double_t_extWgtErrLoArray
 External weight array.
Double_t_extWgtErrHiArray
 External weight array - low error.
Double_t_extSumW2Array
 External weight array - high error.
Double_t _curWgt
 External sum of weights array.
Double_t _curWgtErrLo
Double_t _curWgtErrHi
Double_t _curWgtErr
TTree_tree
TTree_cacheTree
const RooAbsArg_cacheOwner
 TTree holding the cached function values.
RooRealVar_wgtVar
Double_t_extWgtArray
Double_t_extWgtErrLoArray
 External weight array.
Double_t_extWgtErrHiArray
 External weight array - low error.
Double_t_extSumW2Array
 External weight array - high error.

Static Protected Attributes

static Int_t _defTreeBufSize

Detailed Description

Definition at line 29 of file RooTreeDataStore.h.


Constructor & Destructor Documentation

RooTreeDataStore::RooTreeDataStore (  ) 

Definition at line 50 of file RooTreeDataStore.cxx.

Referenced by clone().

RooTreeDataStore::RooTreeDataStore ( TTree t,
const RooArgSet vars,
const char *  wgtVarName = 0 
)

Definition at line 70 of file RooTreeDataStore.cxx.

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
const char *  wgtVarName = 0 
)

Definition at line 88 of file RooTreeDataStore.cxx.

References initialize().

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
TTree t,
const RooFormulaVar select,
const char *  wgtVarName = 0 
)

Definition at line 112 of file RooTreeDataStore.cxx.

References initialize(), loadValues(), select(), and t.

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
TTree t,
const char *  selExpr = 0,
const char *  wgtVarName = 0 
)

Definition at line 136 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_vars, initialize(), loadValues(), select(), and t.

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
const RooAbsDataStore tds,
const RooFormulaVar select,
const char *  wgtVarName = 0 
)

Definition at line 167 of file RooTreeDataStore.cxx.

References initialize(), loadValues(), and select().

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
const RooAbsDataStore tds,
const char *  selExpr = 0,
const char *  wgtVarName = 0 
)

Definition at line 191 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_vars, initialize(), loadValues(), and select().

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
RooAbsDataStore tds,
const RooArgSet vars,
const RooFormulaVar cutVar,
const char *  cutRange,
Int_t  nStart,
Int_t  nStop,
Bool_t  ,
const char *  wgtVarName = 0 
)

Definition at line 223 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_cachedVars, _cacheOwner, _cacheTree, _tree, attachCache(), RooAbsArg::attachDataStore(), RooAbsArg::cloneTree(), TTree::CopyEntries(), createTree(), initialize(), and loadValues().

RooTreeDataStore::RooTreeDataStore ( const RooTreeDataStore other,
const char *  newname = 0 
)

Definition at line 328 of file RooTreeDataStore.cxx.

References initialize(), and loadValues().

RooTreeDataStore::RooTreeDataStore ( const RooTreeDataStore other,
const RooArgSet vars,
const char *  newname = 0 
)

Definition at line 350 of file RooTreeDataStore.cxx.

References initialize(), and loadValues().

RooTreeDataStore::~RooTreeDataStore (  )  [virtual]

Definition at line 374 of file RooTreeDataStore.cxx.

References _cacheTree, and _tree.

RooTreeDataStore::RooTreeDataStore (  ) 

RooTreeDataStore::RooTreeDataStore ( TTree t,
const RooArgSet vars,
const char *  wgtVarName = 0 
)

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
const char *  wgtVarName = 0 
)

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
TTree t,
const RooFormulaVar select,
const char *  wgtVarName = 0 
)

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
TTree t,
const char *  selExpr = 0,
const char *  wgtVarName = 0 
)

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
const RooAbsDataStore tds,
const RooFormulaVar select,
const char *  wgtVarName = 0 
)

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
const RooArgSet vars,
const RooAbsDataStore tds,
const char *  selExpr = 0,
const char *  wgtVarName = 0 
)

RooTreeDataStore::RooTreeDataStore ( const char *  name,
const char *  title,
RooAbsDataStore tds,
const RooArgSet vars,
const RooFormulaVar cutVar,
const char *  cutRange,
Int_t  nStart,
Int_t  nStop,
Bool_t  ,
const char *  wgtVarName = 0 
)

RooTreeDataStore::RooTreeDataStore ( const RooTreeDataStore other,
const char *  newname = 0 
)

RooTreeDataStore::RooTreeDataStore ( const RooTreeDataStore other,
const RooArgSet vars,
const char *  newname = 0 
)

virtual RooTreeDataStore::~RooTreeDataStore (  )  [virtual]


Member Function Documentation

virtual RooAbsDataStore* RooTreeDataStore::clone ( const RooArgSet vars,
const char *  newname = 0 
) const [inline, virtual]

Implements RooAbsDataStore.

Definition at line 37 of file RooTreeDataStore.h.

References RooTreeDataStore().

Int_t RooTreeDataStore::fill (  )  [virtual]

Implements RooAbsDataStore.

Definition at line 641 of file RooTreeDataStore.cxx.

References _tree, and TTree::Fill().

Referenced by append(), and loadValues().

const RooArgSet * RooTreeDataStore::get ( Int_t  index  )  const [virtual]

Implements RooAbsDataStore.

Definition at line 650 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_cacheIter, _curWgt, _curWgtErr, _curWgtErrHi, _curWgtErrLo, RooAbsDataStore::_doDirtyProp, _extSumW2Array, _extWgtArray, _extWgtErrHiArray, _extWgtErrLoArray, RooAbsDataStore::_iterator, RooAbsDataStore::_vars, _wgtVar, checkInit(), RooAbsArg::clearValueDirty(), RooRealVar::getAsymErrorHi(), RooRealVar::getAsymErrorLo(), RooRealVar::getError(), RooRealVar::getVal(), RooRealVar::hasAsymError(), TIterator::Next(), TIterator::Reset(), RooAbsArg::setValueDirty(), and sqrt().

Double_t RooTreeDataStore::weight (  )  const [virtual]

Implements RooAbsDataStore.

Definition at line 720 of file RooTreeDataStore.cxx.

References _curWgt.

Referenced by weight(), and weightError().

Double_t RooTreeDataStore::weightError ( RooAbsData::ErrorType  etype = RooAbsData::Poisson  )  const [virtual]

Implements RooAbsDataStore.

Definition at line 728 of file RooTreeDataStore.cxx.

References _extWgtArray, _wgtVar, RooRealVar::getAsymErrorHi(), RooRealVar::getAsymErrorLo(), RooRealVar::getError(), RooRealVar::hasAsymError(), and hi.

void RooTreeDataStore::weightError ( Double_t lo,
Double_t hi,
RooAbsData::ErrorType  etype = RooAbsData::Poisson 
) const [virtual]

Implements RooAbsDataStore.

Definition at line 759 of file RooTreeDataStore.cxx.

References _curWgtErr, _curWgtErrHi, _curWgtErrLo, _extWgtArray, _wgtVar, RooAbsData::Auto, Form(), RooRealVar::getAsymErrorHi(), RooRealVar::getAsymErrorLo(), RooRealVar::getError(), TNamed::GetName(), RooHistError::getPoissonInterval(), RooRealVar::hasAsymError(), RooHistError::instance(), RooAbsData::None, RooAbsData::Poisson, RooAbsData::SumW2, and weight().

Double_t RooTreeDataStore::weight ( Int_t  index  )  const [virtual]

Implements RooAbsDataStore.

Definition at line 710 of file RooTreeDataStore.cxx.

References RooAbsDataStore::get(), and weight().

virtual Bool_t RooTreeDataStore::isWeighted (  )  const [inline, virtual]

Implements RooAbsDataStore.

Definition at line 66 of file RooTreeDataStore.h.

References _extWgtArray, and _wgtVar.

Bool_t RooTreeDataStore::changeObservableName ( const char *  from,
const char *  to 
) [virtual]

Implements RooAbsDataStore.

Definition at line 823 of file RooTreeDataStore.cxx.

References _tree, RooAbsDataStore::_vars, RooAbsArg::cleanBranchName(), coutE, TString::Data(), RooAbsCollection::find(), Form(), TTree::GetBranch(), TNamed::GetName(), RooFit::InputArguments, kFALSE, kTRUE, and TNamed::SetName().

RooAbsArg * RooTreeDataStore::addColumn ( RooAbsArg var,
Bool_t  adjustRange = kTRUE 
) [virtual]

Implements RooAbsDataStore.

Definition at line 875 of file RooTreeDataStore.cxx.

References _defTreeBufSize, _tree, RooAbsDataStore::_vars, _varsww, RooArgSet::add(), checkInit(), RooAbsArg::cloneTree(), RooAbsArg::copyCache(), coutE, RooAbsArg::createFundamental(), RooAbsArg::fillTreeBranch(), RooAbsDataStore::get(), GetEntries(), TNamed::GetName(), i, RooFit::InputArguments, RooAbsArg::isFundamental(), kFALSE, RooAbsArg::recursiveRedirectServers(), and RooAbsArg::syncCache().

RooArgSet * RooTreeDataStore::addColumns ( const RooArgList varList  )  [virtual]

Implements RooAbsDataStore.

Definition at line 944 of file RooTreeDataStore.cxx.

References _defTreeBufSize, _tree, RooAbsDataStore::_vars, RooArgSet::add(), TList::Add(), RooArgSet::addOwned(), checkInit(), RooAbsArg::copyCache(), coutE, RooAbsArg::createFundamental(), RooAbsCollection::createIterator(), TList::Delete(), RooAbsArg::fillTreeBranch(), RooAbsCollection::find(), RooAbsDataStore::get(), GetEntries(), TNamed::GetName(), i, RooFit::InputArguments, RooAbsArg::isFundamental(), kFALSE, TIterator::Next(), RooAbsArg::recursiveRedirectServers(), TIterator::Reset(), and RooAbsArg::syncCache().

RooAbsDataStore* RooTreeDataStore::merge ( const RooArgSet allvars,
std::list< RooAbsDataStore * >  dstoreList 
) [virtual]

Implements RooAbsDataStore.

void RooTreeDataStore::append ( RooAbsDataStore other  )  [virtual]

Implements RooAbsDataStore.

Definition at line 1051 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_vars, _wgtVar, fill(), RooAbsDataStore::get(), i, RooAbsDataStore::numEntries(), RooRealVar::setVal(), and RooAbsDataStore::weight().

Bool_t RooTreeDataStore::valid (  )  const [virtual]

Implements RooAbsDataStore.

Definition at line 630 of file RooTreeDataStore.cxx.

References kTRUE.

Int_t RooTreeDataStore::numEntries (  )  const [virtual]

Implements RooAbsDataStore.

Definition at line 1067 of file RooTreeDataStore.cxx.

References _tree, and TTree::GetEntries().

void RooTreeDataStore::reset (  )  [virtual]

Implements RooAbsDataStore.

Definition at line 1075 of file RooTreeDataStore.cxx.

References Reset().

TTree& RooTreeDataStore::tree (  )  [inline]

Definition at line 87 of file RooTreeDataStore.h.

References _tree.

Referenced by RooDataSet::RooDataSet().

virtual const TTree* RooTreeDataStore::tree (  )  const [inline, virtual]

Reimplemented from RooAbsDataStore.

Definition at line 88 of file RooTreeDataStore.h.

References _tree.

Stat_t RooTreeDataStore::GetEntries (  )  const

Definition at line 1187 of file RooTreeDataStore.cxx.

References _tree, and TTree::GetEntries().

Referenced by addColumn(), addColumns(), and cacheArgs().

void RooTreeDataStore::Reset ( Option_t option = 0  ) 

Definition at line 1195 of file RooTreeDataStore.cxx.

References _tree, and TTree::Reset().

Referenced by reset().

Int_t RooTreeDataStore::Fill (  ) 

Definition at line 1203 of file RooTreeDataStore.cxx.

References _tree, and TTree::Fill().

Int_t RooTreeDataStore::GetEntry ( Int_t  entry = 0,
Int_t  getall = 0 
)

Definition at line 1211 of file RooTreeDataStore.cxx.

References _cacheTree, _tree, and TTree::GetEntry().

void RooTreeDataStore::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 1222 of file RooTreeDataStore.cxx.

References _tree, and TTree::Draw().

void RooTreeDataStore::cacheArgs ( const RooAbsArg owner,
RooArgSet varSet,
const RooArgSet nset = 0 
) [virtual]

Implements RooAbsDataStore.

Definition at line 1083 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_cachedVars, _cacheOwner, _cacheTree, _defTreeBufSize, RooAbsDataStore::_vars, RooArgSet::add(), RooAbsArg::attachToTree(), checkInit(), RooAbsCollection::createIterator(), TTree::Fill(), RooAbsArg::fillTreeBranch(), RooAbsDataStore::get(), GetEntries(), RooAbsCollection::getSize(), i, TIterator::Next(), RooAbsArg::redirectServers(), TIterator::Reset(), RooAbsArg::setValueDirty(), and RooAbsArg::syncCache().

virtual const RooAbsArg* RooTreeDataStore::cacheOwner (  )  [inline, virtual]

Implements RooAbsDataStore.

Definition at line 100 of file RooTreeDataStore.h.

References _cacheOwner.

void RooTreeDataStore::setArgStatus ( const RooArgSet set,
Bool_t  active 
) [virtual]

Implements RooAbsDataStore.

Definition at line 1134 of file RooTreeDataStore.cxx.

References _tree, RooAbsDataStore::_vars, coutE, RooAbsCollection::createIterator(), RooAbsCollection::find(), TNamed::GetName(), RooFit::InputArguments, TIterator::Next(), and RooAbsArg::setTreeBranchStatus().

void RooTreeDataStore::resetCache (  )  [virtual]

Implements RooAbsDataStore.

Definition at line 1156 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_cachedVars, _cacheTree, createTree(), TNamed::GetName(), TNamed::GetTitle(), and RooAbsCollection::removeAll().

void RooTreeDataStore::loadValues ( const TTree t,
const RooFormulaVar select = 0,
const char *  rangeName = 0,
Int_t  nStart = 0,
Int_t  nStop = 2000000000 
)

Definition at line 447 of file RooTreeDataStore.cxx.

References _defTreeBufSize, _varsww, RooAbsArg::ADirty, RooAbsArg::attachToTree(), RooAbsArg::branchNodeServerList(), TDirectory::cd(), TNamed::Clone(), TTree::CloneTree(), RooAbsArg::copyCache(), coutI, RooAbsCollection::createIterator(), RooFit::Eval, fill(), gDirectory, TTree::GetEntries(), TTree::GetEntry(), TTree::GetEntryNumber(), TNamed::GetName(), TDirectory::GetPath(), RooFormulaVar::getVal(), gROOT, i, RooAbsArg::isValid(), kFALSE, kTRUE, TIterator::Next(), pwd(), RooAbsArg::recursiveRedirectServers(), TIterator::Reset(), select(), TTree::SetDirectory(), RooAbsArg::setOperMode(), TNamed::SetTitle(), RooAbsCollection::snapshot(), and t.

Referenced by RooDataSet::RooDataSet(), and RooTreeDataStore().

void RooTreeDataStore::loadValues ( const RooAbsDataStore tds,
const RooFormulaVar select = 0,
const char *  rangeName = 0,
Int_t  nStart = 0,
Int_t  nStop = 2000000000 
)

Definition at line 560 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_cachedVars, _varsww, RooAbsArg::ADirty, RooAbsCollection::assignValueOnly(), RooAbsArg::branchNodeServerList(), RooAbsCollection::createIterator(), fill(), RooAbsDataStore::get(), TNamed::GetTitle(), RooFormulaVar::getVal(), i, RooAbsArg::inRange(), RooAbsArg::isValid(), kFALSE, kTRUE, TIterator::Next(), RooAbsDataStore::numEntries(), RooAbsArg::recursiveRedirectServers(), TIterator::Reset(), select(), RooAbsArg::setOperMode(), and TNamed::SetTitle().

void RooTreeDataStore::checkInit (  )  const [virtual]

Reimplemented from RooAbsDataStore.

Definition at line 1174 of file RooTreeDataStore.cxx.

References _defCtor, initialize(), and kFALSE.

Referenced by addColumn(), addColumns(), cacheArgs(), and get().

void RooTreeDataStore::setExternalWeightArray ( Double_t arrayWgt,
Double_t arrayWgtErrLo,
Double_t arrayWgtErrHi,
Double_t arraySumW2 
) [inline]

Definition at line 109 of file RooTreeDataStore.h.

References _extSumW2Array, _extWgtArray, _extWgtErrHiArray, and _extWgtErrLoArray.

const RooArgSet& RooTreeDataStore::row (  )  [inline]

Definition at line 116 of file RooTreeDataStore.h.

References _varsww.

RooArgSet RooTreeDataStore::varsNoWeight ( const RooArgSet allVars,
const char *  wgtName = 0 
) [protected]

Definition at line 270 of file RooTreeDataStore.cxx.

References RooAbsCollection::find(), kTRUE, and RooAbsCollection::remove().

RooRealVar * RooTreeDataStore::weightVar ( const RooArgSet allVars,
const char *  wgtName = 0 
) [protected]

Definition at line 288 of file RooTreeDataStore.cxx.

References RooAbsCollection::find().

void RooTreeDataStore::initialize (  )  [protected]

Definition at line 388 of file RooTreeDataStore.cxx.

References _defTreeBufSize, _tree, _varsww, RooAbsArg::attachToTree(), RooAbsCollection::createIterator(), createTree(), TNamed::GetName(), TNamed::GetTitle(), and TIterator::Next().

Referenced by checkInit(), and RooTreeDataStore().

void RooTreeDataStore::attachCache ( const RooAbsArg newOwner,
const RooArgSet cachedVars 
) [protected, virtual]

Implements RooAbsDataStore.

Definition at line 304 of file RooTreeDataStore.cxx.

References RooAbsDataStore::_cachedVars, _cacheOwner, _cacheTree, _defTreeBufSize, RooArgSet::add(), RooAbsArg::attachToTree(), RooAbsCollection::createIterator(), TIterator::Next(), and RooAbsCollection::removeAll().

Referenced by RooTreeDataStore().

void RooTreeDataStore::setBranchBufferSize ( Int_t  size  )  [inline, protected]

Definition at line 127 of file RooTreeDataStore.h.

References _defTreeBufSize.

Int_t RooTreeDataStore::getBranchBufferSize (  )  const [inline, protected]

Definition at line 128 of file RooTreeDataStore.h.

References _defTreeBufSize.

void RooTreeDataStore::createTree ( const char *  name,
const char *  title 
) [protected]

Definition at line 410 of file RooTreeDataStore.cxx.

References _cacheTree, _tree, TDirectory::cd(), gDirectory, TNamed::GetName(), TDirectory::GetPath(), gROOT, pwd(), TDirectory::RecursiveRemove(), and TTree::SetDirectory().

Referenced by initialize(), resetCache(), and RooTreeDataStore().

virtual RooAbsDataStore* RooTreeDataStore::clone ( const RooArgSet vars,
const char *  newname = 0 
) const [inline, virtual]

Implements RooAbsDataStore.

Definition at line 37 of file RooTreeDataStore.h.

References RooTreeDataStore().

virtual Int_t RooTreeDataStore::fill (  )  [virtual]

Implements RooAbsDataStore.

virtual const RooArgSet* RooTreeDataStore::get ( Int_t  index  )  const [virtual]

Implements RooAbsDataStore.

virtual Double_t RooTreeDataStore::weight (  )  const [virtual]

Implements RooAbsDataStore.

virtual Double_t RooTreeDataStore::weightError ( RooAbsData::ErrorType  etype = RooAbsData::Poisson  )  const [virtual]

Implements RooAbsDataStore.

virtual void RooTreeDataStore::weightError ( Double_t lo,
Double_t hi,
RooAbsData::ErrorType  etype = RooAbsData::Poisson 
) const [virtual]

Implements RooAbsDataStore.

virtual Double_t RooTreeDataStore::weight ( Int_t  index  )  const [virtual]

Implements RooAbsDataStore.

virtual Bool_t RooTreeDataStore::isWeighted (  )  const [inline, virtual]

Implements RooAbsDataStore.

Definition at line 66 of file RooTreeDataStore.h.

References _extWgtArray, and _wgtVar.

virtual Bool_t RooTreeDataStore::changeObservableName ( const char *  from,
const char *  to 
) [virtual]

Implements RooAbsDataStore.

virtual RooAbsArg* RooTreeDataStore::addColumn ( RooAbsArg var,
Bool_t  adjustRange = kTRUE 
) [virtual]

Implements RooAbsDataStore.

virtual RooArgSet* RooTreeDataStore::addColumns ( const RooArgList varList  )  [virtual]

Implements RooAbsDataStore.

RooAbsDataStore* RooTreeDataStore::merge ( const RooArgSet allvars,
std::list< RooAbsDataStore * >  dstoreList 
) [virtual]

Implements RooAbsDataStore.

virtual void RooTreeDataStore::append ( RooAbsDataStore other  )  [virtual]

Implements RooAbsDataStore.

virtual Bool_t RooTreeDataStore::valid (  )  const [virtual]

Implements RooAbsDataStore.

virtual Int_t RooTreeDataStore::numEntries (  )  const [virtual]

Implements RooAbsDataStore.

virtual void RooTreeDataStore::reset (  )  [virtual]

Implements RooAbsDataStore.

TTree& RooTreeDataStore::tree (  )  [inline]

Definition at line 87 of file RooTreeDataStore.h.

References _tree.

virtual const TTree* RooTreeDataStore::tree (  )  const [inline, virtual]

Reimplemented from RooAbsDataStore.

Definition at line 88 of file RooTreeDataStore.h.

References _tree.

Stat_t RooTreeDataStore::GetEntries (  )  const

void RooTreeDataStore::Reset ( Option_t option = 0  ) 

Int_t RooTreeDataStore::Fill (  ) 

Int_t RooTreeDataStore::GetEntry ( Int_t  entry = 0,
Int_t  getall = 0 
)

void RooTreeDataStore::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

virtual void RooTreeDataStore::cacheArgs ( const RooAbsArg owner,
RooArgSet varSet,
const RooArgSet nset = 0 
) [virtual]

Implements RooAbsDataStore.

virtual const RooAbsArg* RooTreeDataStore::cacheOwner (  )  [inline, virtual]

Implements RooAbsDataStore.

Definition at line 100 of file RooTreeDataStore.h.

References _cacheOwner.

virtual void RooTreeDataStore::setArgStatus ( const RooArgSet set,
Bool_t  active 
) [virtual]

Implements RooAbsDataStore.

virtual void RooTreeDataStore::resetCache (  )  [virtual]

Implements RooAbsDataStore.

void RooTreeDataStore::loadValues ( const TTree t,
const RooFormulaVar select = 0,
const char *  rangeName = 0,
Int_t  nStart = 0,
Int_t  nStop = 2000000000 
)

void RooTreeDataStore::loadValues ( const RooAbsDataStore tds,
const RooFormulaVar select = 0,
const char *  rangeName = 0,
Int_t  nStart = 0,
Int_t  nStop = 2000000000 
)

virtual void RooTreeDataStore::checkInit (  )  const [virtual]

Reimplemented from RooAbsDataStore.

void RooTreeDataStore::setExternalWeightArray ( Double_t arrayWgt,
Double_t arrayWgtErrLo,
Double_t arrayWgtErrHi,
Double_t arraySumW2 
) [inline]

Definition at line 109 of file RooTreeDataStore.h.

References _extSumW2Array, _extWgtArray, _extWgtErrHiArray, and _extWgtErrLoArray.

const RooArgSet& RooTreeDataStore::row (  )  [inline]

Definition at line 116 of file RooTreeDataStore.h.

References _varsww.

RooArgSet RooTreeDataStore::varsNoWeight ( const RooArgSet allVars,
const char *  wgtName = 0 
) [protected]

RooRealVar* RooTreeDataStore::weightVar ( const RooArgSet allVars,
const char *  wgtName = 0 
) [protected]

void RooTreeDataStore::initialize (  )  [protected]

void RooTreeDataStore::attachCache ( const RooAbsArg newOwner,
const RooArgSet cachedVars 
) [protected, virtual]

Implements RooAbsDataStore.

void RooTreeDataStore::setBranchBufferSize ( Int_t  size  )  [inline, protected]

Definition at line 127 of file RooTreeDataStore.h.

References _defTreeBufSize.

Int_t RooTreeDataStore::getBranchBufferSize (  )  const [inline, protected]

Definition at line 128 of file RooTreeDataStore.h.

References _defTreeBufSize.

void RooTreeDataStore::createTree ( const char *  name,
const char *  title 
) [protected]


Member Data Documentation

Int_t RooTreeDataStore::_defTreeBufSize [static, protected]

Definition at line 130 of file RooTreeDataStore.h.

Referenced by addColumn(), addColumns(), attachCache(), cacheArgs(), getBranchBufferSize(), initialize(), loadValues(), and setBranchBufferSize().

TTree* RooTreeDataStore::_tree [protected]

Definition at line 133 of file RooTreeDataStore.h.

Referenced by addColumn(), addColumns(), changeObservableName(), createTree(), Draw(), fill(), Fill(), GetEntries(), GetEntry(), initialize(), numEntries(), Reset(), RooTreeDataStore(), setArgStatus(), tree(), and ~RooTreeDataStore().

TTree* RooTreeDataStore::_cacheTree [protected]

Definition at line 134 of file RooTreeDataStore.h.

Referenced by attachCache(), cacheArgs(), createTree(), GetEntry(), resetCache(), RooTreeDataStore(), and ~RooTreeDataStore().

const RooAbsArg* RooTreeDataStore::_cacheOwner [protected]

TTree holding the cached function values.

Definition at line 135 of file RooTreeDataStore.h.

Referenced by attachCache(), cacheArgs(), cacheOwner(), and RooTreeDataStore().

Bool_t RooTreeDataStore::_defCtor [mutable, protected]

Object owning cache contents.

Definition at line 136 of file RooTreeDataStore.h.

Referenced by checkInit().

RooArgSet RooTreeDataStore::_varsww [protected]

Was object constructed with default ctor?

Definition at line 138 of file RooTreeDataStore.h.

Referenced by addColumn(), initialize(), loadValues(), and row().

RooRealVar* RooTreeDataStore::_wgtVar [protected]

Definition at line 139 of file RooTreeDataStore.h.

Referenced by append(), get(), isWeighted(), and weightError().

Double_t* RooTreeDataStore::_extWgtArray [protected]

Definition at line 141 of file RooTreeDataStore.h.

Referenced by get(), isWeighted(), setExternalWeightArray(), and weightError().

Double_t* RooTreeDataStore::_extWgtErrLoArray [protected]

External weight array.

Definition at line 142 of file RooTreeDataStore.h.

Referenced by get(), and setExternalWeightArray().

Double_t* RooTreeDataStore::_extWgtErrHiArray [protected]

External weight array - low error.

Definition at line 143 of file RooTreeDataStore.h.

Referenced by get(), and setExternalWeightArray().

Double_t* RooTreeDataStore::_extSumW2Array [protected]

External weight array - high error.

Definition at line 144 of file RooTreeDataStore.h.

Referenced by get(), and setExternalWeightArray().

Double_t RooTreeDataStore::_curWgt [mutable, protected]

External sum of weights array.

Definition at line 146 of file RooTreeDataStore.h.

Referenced by get(), and weight().

Double_t RooTreeDataStore::_curWgtErrLo [mutable, protected]

Definition at line 147 of file RooTreeDataStore.h.

Referenced by get(), and weightError().

Double_t RooTreeDataStore::_curWgtErrHi [mutable, protected]

Definition at line 148 of file RooTreeDataStore.h.

Referenced by get(), and weightError().

Double_t RooTreeDataStore::_curWgtErr [mutable, protected]

Definition at line 149 of file RooTreeDataStore.h.

Referenced by get(), and weightError().

TTree* RooTreeDataStore::_tree [protected]

Definition at line 133 of file RooTreeDataStore.h.

TTree* RooTreeDataStore::_cacheTree [protected]

Definition at line 134 of file RooTreeDataStore.h.

const RooAbsArg* RooTreeDataStore::_cacheOwner [protected]

TTree holding the cached function values.

Definition at line 135 of file RooTreeDataStore.h.

RooRealVar* RooTreeDataStore::_wgtVar [protected]

Definition at line 139 of file RooTreeDataStore.h.

Double_t* RooTreeDataStore::_extWgtArray [protected]

Definition at line 141 of file RooTreeDataStore.h.

Double_t* RooTreeDataStore::_extWgtErrLoArray [protected]

External weight array.

Definition at line 142 of file RooTreeDataStore.h.

Double_t* RooTreeDataStore::_extWgtErrHiArray [protected]

External weight array - low error.

Definition at line 143 of file RooTreeDataStore.h.

Double_t* RooTreeDataStore::_extSumW2Array [protected]

External weight array - high error.

Definition at line 144 of file RooTreeDataStore.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:34:04 2011 for ROOT_528-00b_version by  doxygen 1.5.1