#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<typename T > | |
void | addSingle (AtomicId name, const T *value, bool opt=false) |
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 edm::hlt::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(), edm::hlt::Exception, python.Node::leaf, trackerHitRTTI::multi, mergeVDriftHistosByStation::name, and valueMap.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< T > * | value | ||
) |
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const T * | value, | ||
bool | opt = false |
||
) |
Referenced by PhysicsTools::TreeTrainer::addTree().
void PhysicsTools::TreeReader::addTypeMulti | ( | AtomicId | name, |
const void * | value, | ||
char | type | ||
) |
Definition at line 199 of file TreeReader.cc.
References edm::hlt::Exception, getHLTprescales::index, multiBool, multiDouble, multiFloat, multiInt, mergeVDriftHistosByStation::name, pos, 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 edm::hlt::Exception, getHLTprescales::index, mergeVDriftHistosByStation::name, pos, 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(), edm::hlt::Exception, 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(), query::result, valueMap, and values.
Variable::ValueList PhysicsTools::TreeReader::fill | ( | void | ) |
Definition at line 330 of file TreeReader.cc.
References PhysicsTools::Variable::ValueList::clear(), 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, edm::hlt::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=().
Definition at line 142 of file TreeReader.cc.
void PhysicsTools::TreeReader::setTree | ( | TTree * | tree | ) |
void PhysicsTools::TreeReader::update | ( | void | ) |
Definition at line 284 of file TreeReader.cc.
References edm::hlt::Exception, 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 |
|
friend |
Definition at line 106 of file TreeReader.h.
Referenced by addTypeMulti(), and addTypeSingle().
|
static |
Definition at line 57 of file TreeReader.h.
|
private |
Definition at line 71 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 68 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 69 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 70 of file TreeReader.h.
Referenced by addTypeMulti(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 76 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 73 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 74 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 75 of file TreeReader.h.
Referenced by addTypeSingle(), PhysicsTools::TreeReader::Value::fill(), operator=(), reset(), and PhysicsTools::TreeReader::Value::update().
|
private |
Definition at line 60 of file TreeReader.h.
Referenced by svgfig.SVG::__str__(), addBranch(), automaticAdd(), loop(), operator=(), 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().