#include <RooTreeDataStore.h>
Inheritance diagram for RooTreeDataStore:
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 RooAbsDataStore * | clone (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 RooArgSet * | get (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 RooAbsArg * | addColumn (RooAbsArg &var, Bool_t adjustRange=kTRUE) |
virtual RooArgSet * | addColumns (const RooArgList &varList) |
RooAbsDataStore * | merge (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 () |
TTree & | tree () |
virtual const TTree * | tree () 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 RooAbsArg * | cacheOwner () |
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 RooArgSet & | row () |
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 RooAbsDataStore * | clone (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 RooArgSet * | get (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 RooAbsArg * | addColumn (RooAbsArg &var, Bool_t adjustRange=kTRUE) |
virtual RooArgSet * | addColumns (const RooArgList &varList) |
RooAbsDataStore * | merge (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 () |
TTree & | tree () |
virtual const TTree * | tree () 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 RooAbsArg * | cacheOwner () |
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 RooArgSet & | row () |
Protected Member Functions | |
RooArgSet | varsNoWeight (const RooArgSet &allVars, const char *wgtName=0) |
RooRealVar * | weightVar (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) |
RooRealVar * | weightVar (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 |
Definition at line 29 of file RooTreeDataStore.h.
RooTreeDataStore::RooTreeDataStore | ( | ) |
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 | |||
) |
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 | |||
) |
RooTreeDataStore::RooTreeDataStore | ( | const RooTreeDataStore & | other, | |
const RooArgSet & | vars, | |||
const char * | newname = 0 | |||
) |
RooTreeDataStore::~RooTreeDataStore | ( | ) | [virtual] |
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] |
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().
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().
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().
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] |
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 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.
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] |
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] |
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] |
Int_t RooTreeDataStore::getBranchBufferSize | ( | ) | const [inline, protected] |
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.
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.
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] |
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 | ( | ) |
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.
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] |
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] |
Int_t RooTreeDataStore::getBranchBufferSize | ( | ) | const [inline, protected] |
void RooTreeDataStore::createTree | ( | const char * | name, | |
const char * | title | |||
) | [protected] |
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] |
Double_t RooTreeDataStore::_curWgtErrLo [mutable, protected] |
Double_t RooTreeDataStore::_curWgtErrHi [mutable, protected] |
Double_t RooTreeDataStore::_curWgtErr [mutable, protected] |
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] |
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] |
Double_t* RooTreeDataStore::_extWgtErrHiArray [protected] |
Double_t* RooTreeDataStore::_extSumW2Array [protected] |