#include <TreeReader.h>
Classes | |
struct | Bool |
class | Value |
Public Member Functions | |
void | addBranch (const std::string &expression, AtomicId name=AtomicId(), bool opt=true) |
void | addBranch (TBranch *branch, AtomicId name=AtomicId(), bool opt=true) |
template<typename T > | |
void | addMulti (AtomicId name, const std::vector< T > *value) |
template<> | |
void | addMulti (AtomicId name, const std::vector< Double_t > *value) |
template<> | |
void | addMulti (AtomicId name, const std::vector< Float_t > *value) |
template<> | |
void | addMulti (AtomicId name, const std::vector< Int_t > *value) |
template<> | |
void | addMulti (AtomicId name, const std::vector< Bool_t > *value) |
template<typename T > | |
void | addSingle (AtomicId name, const T *value, bool opt=false) |
template<> | |
void | addSingle (AtomicId name, const Double_t *value, bool opt) |
template<> | |
void | addSingle (AtomicId name, const Float_t *value, bool opt) |
template<> | |
void | addSingle (AtomicId name, const Int_t *value, bool opt) |
template<> | |
void | addSingle (AtomicId name, const Bool_t *value, bool opt) |
template<> | |
void | addSingle (AtomicId name, const Double_t *value, bool opt) |
template<> | |
void | addSingle (AtomicId name, const Float_t *value, bool opt) |
template<> | |
void | addSingle (AtomicId name, const Int_t *value, bool opt) |
template<> | |
void | addSingle (AtomicId name, const Bool_t *value, bool opt) |
void | addTypeMulti (AtomicId name, const void *value, char type) |
void | addTypeSingle (AtomicId name, const void *value, char type, bool opt) |
void | automaticAdd (bool skipTarget=false, bool skipWeight=false) |
double | fill (const MVAComputer *mva) |
Variable::ValueList | fill () |
uint64_t | loop (const MVAComputer *mva) |
TreeReader & | operator= (const TreeReader &orig) |
void | reset () |
void | setOptional (AtomicId name, bool opt, double optVal=kOptVal) |
void | setTree (TTree *tree) |
TreeReader () | |
TreeReader (const TreeReader &orig) | |
TreeReader (TTree *tree, bool skipTarget=false, bool skipWeight=false) | |
void | update () |
std::vector< AtomicId > | variables () const |
virtual | ~TreeReader () |
Static Public Attributes | |
static const double | kOptVal = -999.0 |
Private Attributes | |
std::vector< std::pair< void *, std::vector< Bool_t > > > | multiBool |
std::vector< std::pair< void *, std::vector< Double_t > > > | multiDouble |
std::vector< std::pair< void *, std::vector< Float_t > > > | multiFloat |
std::vector< std::pair< void *, std::vector< Int_t > > > | multiInt |
std::vector< Bool > | singleBool |
std::vector< Double_t > | singleDouble |
std::vector< Float_t > | singleFloat |
std::vector< Int_t > | singleInt |
TTree * | tree |
bool | upToDate |
std::map< AtomicId, Value > | valueMap |
Variable::ValueList | values |
Friends | |
class | Value |
Definition at line 19 of file TreeReader.h.
PhysicsTools::TreeReader::TreeReader | ( | ) |
Definition at line 25 of file TreeReader.cc.
PhysicsTools::TreeReader::TreeReader | ( | const TreeReader & | orig | ) |
Definition at line 30 of file TreeReader.cc.
References operator=().
PhysicsTools::TreeReader::TreeReader | ( | TTree * | tree, |
bool | skipTarget = false , |
||
bool | skipWeight = false |
||
) |
Definition at line 35 of file TreeReader.cc.
References automaticAdd().
|
virtual |
Definition at line 41 of file TreeReader.cc.
void PhysicsTools::TreeReader::addBranch | ( | const std::string & | expression, |
AtomicId | name = AtomicId() , |
||
bool | opt = true |
||
) |
Definition at line 72 of file TreeReader.cc.
References Exception, and tree.
Referenced by automaticAdd().
void PhysicsTools::TreeReader::addBranch | ( | TBranch * | branch, |
AtomicId | name = AtomicId() , |
||
bool | opt = true |
||
) |
Definition at line 89 of file TreeReader.cc.
References addTypeMulti(), addTypeSingle(), Exception, python.Node::leaf, trackerHitRTTI::multi, mergeVDriftHistosByStation::name, and valueMap.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< T > * | value | ||
) |
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< Double_t > * | value | ||
) |
Definition at line 481 of file TreeReader.cc.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< Float_t > * | value | ||
) |
Definition at line 482 of file TreeReader.cc.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< Int_t > * | value | ||
) |
Definition at line 483 of file TreeReader.cc.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< Bool_t > * | value | ||
) |
Definition at line 484 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const T * | value, | ||
bool | opt = false |
||
) |
Referenced by PhysicsTools::TreeTrainer::addTree().
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Double_t * | value, | ||
bool | opt | ||
) |
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Float_t * | value, | ||
bool | opt | ||
) |
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Int_t * | value, | ||
bool | opt | ||
) |
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Bool_t * | value, | ||
bool | opt | ||
) |
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Double_t * | value, | ||
bool | opt | ||
) |
Definition at line 481 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Float_t * | value, | ||
bool | opt | ||
) |
Definition at line 482 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Int_t * | value, | ||
bool | opt | ||
) |
Definition at line 483 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Bool_t * | value, | ||
bool | opt | ||
) |
Definition at line 484 of file TreeReader.cc.
void PhysicsTools::TreeReader::addTypeMulti | ( | AtomicId | name, |
const void * | value, | ||
char | type | ||
) |
Definition at line 199 of file TreeReader.cc.
References Exception, cmsHarvester::index, multiBool, multiDouble, multiFloat, multiInt, mergeVDriftHistosByStation::name, upToDate, Value, and valueMap.
Referenced by addBranch().
void PhysicsTools::TreeReader::addTypeSingle | ( | AtomicId | name, |
const void * | value, | ||
char | type, | ||
bool | opt | ||
) |
Definition at line 153 of file TreeReader.cc.
References Exception, cmsHarvester::index, mergeVDriftHistosByStation::name, singleBool, singleDouble, singleFloat, singleInt, upToDate, Value, and valueMap.
Referenced by addBranch().
void PhysicsTools::TreeReader::automaticAdd | ( | bool | skipTarget = false , |
bool | skipWeight = false |
||
) |
Definition at line 241 of file TreeReader.cc.
References addBranch(), Exception, getDQMSummary::iter, getGTfromDQMFile::obj, and tree.
Referenced by TreeReader().
double PhysicsTools::TreeReader::fill | ( | const MVAComputer * | mva | ) |
Definition at line 318 of file TreeReader.cc.
References PhysicsTools::Variable::ValueList::clear(), PhysicsTools::MVAComputer::eval(), getDQMSummary::iter, query::result, valueMap, and values.
Variable::ValueList PhysicsTools::TreeReader::fill | ( | void | ) |
Definition at line 330 of file TreeReader.cc.
References PhysicsTools::Variable::ValueList::clear(), getDQMSummary::iter, query::result, valueMap, and values.
Referenced by loop().
uint64_t PhysicsTools::TreeReader::loop | ( | const MVAComputer * | mva | ) |
Definition at line 298 of file TreeReader.cc.
References python.tagInventory::entries, Exception, fill(), tree, update(), and upToDate.
Referenced by PhysicsTools::TreeTrainer::iteration().
TreeReader & PhysicsTools::TreeReader::operator= | ( | const TreeReader & | orig | ) |
Definition at line 45 of file TreeReader.cc.
References multiBool, multiDouble, multiFloat, multiInt, reset(), singleBool, singleDouble, singleFloat, singleInt, tree, and valueMap.
Referenced by TreeReader().
void PhysicsTools::TreeReader::reset | ( | void | ) |
Definition at line 267 of file TreeReader.cc.
References multiBool, multiDouble, multiFloat, multiInt, singleBool, singleDouble, singleFloat, singleInt, upToDate, and valueMap.
Referenced by operator=().
void PhysicsTools::TreeReader::setTree | ( | TTree * | tree | ) |
void PhysicsTools::TreeReader::update | ( | void | ) |
Definition at line 284 of file TreeReader.cc.
References Exception, getDQMSummary::iter, tree, upToDate, and valueMap.
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), loop(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
std::vector< AtomicId > PhysicsTools::TreeReader::variables | ( | ) | const |
Definition at line 342 of file TreeReader.cc.
References getDQMSummary::iter, query::result, and valueMap.
|
friend |
Definition at line 93 of file TreeReader.h.
Referenced by addTypeMulti(), and addTypeSingle().
|
static |
Definition at line 57 of file TreeReader.h.
|
private |
Definition at line 101 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 98 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 99 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 100 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 106 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 103 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 104 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 105 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 96 of file TreeReader.h.
Referenced by svgfig.SVG::__str__(), addBranch(), automaticAdd(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), loop(), operator=(), MetTreeProducer.MetTreeProducer::process(), python.cmstools.EventTree::SetAlias(), setTree(), update(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 110 of file TreeReader.h.
Referenced by addTypeMulti(), addTypeSingle(), loop(), reset(), setTree(), and update().
Definition at line 108 of file TreeReader.h.
Referenced by addBranch(), addTypeMulti(), addTypeSingle(), fill(), operator=(), reset(), setOptional(), update(), and variables().
|
private |
Definition at line 109 of file TreeReader.h.
Referenced by fill(), PhysicsTools::TreeReader::Value::fill(), and python.seqvaluedict.seqdict::items().