#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 27 of file TreeReader.cc.
References operator=().
PhysicsTools::TreeReader::TreeReader | ( | TTree * | tree, |
bool | skipTarget = false , |
||
bool | skipWeight = false |
||
) |
Definition at line 29 of file TreeReader.cc.
References automaticAdd().
|
virtual |
Definition at line 33 of file TreeReader.cc.
void PhysicsTools::TreeReader::addBranch | ( | const std::string & | expression, |
AtomicId | name = AtomicId() , |
||
bool | opt = true |
||
) |
Definition at line 60 of file TreeReader.cc.
References MicroEventContent_cff::branch, Exception, Skims_PA_cff::name, and runTheMatrix::opt.
Referenced by automaticAdd().
void PhysicsTools::TreeReader::addBranch | ( | TBranch * | branch, |
AtomicId | name = AtomicId() , |
||
bool | opt = true |
||
) |
Definition at line 71 of file TreeReader.cc.
References addTypeMulti(), addTypeSingle(), MicroEventContent_cff::branch, electrons_cff::branchName, Exception, trackerHitRTTI::multi, Skims_PA_cff::name, runTheMatrix::opt, dqmiodumpindices::typeName, 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 418 of file TreeReader.cc.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< Float_t > * | value | ||
) |
Definition at line 419 of file TreeReader.cc.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< Int_t > * | value | ||
) |
Definition at line 420 of file TreeReader.cc.
void PhysicsTools::TreeReader::addMulti | ( | AtomicId | name, |
const std::vector< Bool_t > * | value | ||
) |
Definition at line 421 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const T * | value, | ||
bool | opt = false |
||
) |
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 418 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Float_t * | value, | ||
bool | opt | ||
) |
Definition at line 419 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Int_t * | value, | ||
bool | opt | ||
) |
Definition at line 420 of file TreeReader.cc.
void PhysicsTools::TreeReader::addSingle | ( | AtomicId | name, |
const Bool_t * | value, | ||
bool | opt | ||
) |
Definition at line 421 of file TreeReader.cc.
void PhysicsTools::TreeReader::addTypeMulti | ( | AtomicId | name, |
const void * | value, | ||
char | type | ||
) |
Definition at line 173 of file TreeReader.cc.
References Exception, createfilelist::int, multiBool, multiDouble, multiFloat, multiInt, Skims_PA_cff::name, upToDate, Value, and valueMap.
Referenced by addBranch().
void PhysicsTools::TreeReader::addTypeSingle | ( | AtomicId | name, |
const void * | value, | ||
char | type, | ||
bool | opt | ||
) |
Definition at line 128 of file TreeReader.cc.
References Exception, createfilelist::int, Skims_PA_cff::name, runTheMatrix::opt, singleBool, singleDouble, singleFloat, singleInt, upToDate, Value, and valueMap.
Referenced by addBranch().
void PhysicsTools::TreeReader::automaticAdd | ( | bool | skipTarget = false , |
bool | skipWeight = false |
||
) |
Definition at line 213 of file TreeReader.cc.
References addBranch(), MicroEventContent_cff::branch, Exception, and getGTfromDQMFile::obj.
Referenced by TreeReader().
double PhysicsTools::TreeReader::fill | ( | const MVAComputer * | mva | ) |
Definition at line 276 of file TreeReader.cc.
References PhysicsTools::Variable::ValueList::clear(), beam_dqm_sourceclient-live_cfg::mva, mps_fire::result, valueMap, and values.
Variable::ValueList PhysicsTools::TreeReader::fill | ( | void | ) |
Definition at line 286 of file TreeReader.cc.
References PhysicsTools::Variable::ValueList::clear(), mps_fire::result, valueMap, and values.
Referenced by loop().
uint64_t PhysicsTools::TreeReader::loop | ( | const MVAComputer * | mva | ) |
Definition at line 260 of file TreeReader.cc.
References mps_splice::entry, Exception, fill(), beam_dqm_sourceclient-live_cfg::mva, update(), and upToDate.
TreeReader & PhysicsTools::TreeReader::operator= | ( | const TreeReader & | orig | ) |
Definition at line 35 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 234 of file TreeReader.cc.
References multiBool, multiDouble, multiFloat, multiInt, singleBool, singleDouble, singleFloat, singleInt, upToDate, and valueMap.
Referenced by operator=().
Definition at line 117 of file TreeReader.cc.
References Skims_PA_cff::name, runTheMatrix::opt, and valueMap.
void PhysicsTools::TreeReader::setTree | ( | TTree * | tree | ) |
void PhysicsTools::TreeReader::update | ( | ) |
Definition at line 250 of file TreeReader.cc.
References Exception, upToDate, and valueMap.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), loop(), and MatrixUtil.Steps::overwrite().
std::vector< AtomicId > PhysicsTools::TreeReader::variables | ( | ) | const |
Definition at line 296 of file TreeReader.cc.
References mps_fire::result, and valueMap.
|
friend |
Definition at line 91 of file TreeReader.h.
Referenced by addTypeMulti(), and addTypeSingle().
|
static |
Definition at line 54 of file TreeReader.h.
|
private |
Definition at line 99 of file TreeReader.h.
Referenced by addTypeMulti(), operator=(), and reset().
|
private |
Definition at line 96 of file TreeReader.h.
Referenced by addTypeMulti(), operator=(), and reset().
|
private |
Definition at line 97 of file TreeReader.h.
Referenced by addTypeMulti(), operator=(), and reset().
|
private |
Definition at line 98 of file TreeReader.h.
Referenced by addTypeMulti(), operator=(), and reset().
|
private |
Definition at line 104 of file TreeReader.h.
Referenced by addTypeSingle(), operator=(), and reset().
|
private |
Definition at line 101 of file TreeReader.h.
Referenced by addTypeSingle(), operator=(), and reset().
|
private |
Definition at line 102 of file TreeReader.h.
Referenced by addTypeSingle(), operator=(), and reset().
|
private |
Definition at line 103 of file TreeReader.h.
Referenced by addTypeSingle(), operator=(), and reset().
|
private |
Definition at line 94 of file TreeReader.h.
Referenced by svgfig.SVG::__str__(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), operator=(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), python.cmstools.EventTree::SetAlias(), and setTree().
|
private |
Definition at line 108 of file TreeReader.h.
Referenced by addTypeMulti(), addTypeSingle(), loop(), reset(), setTree(), and update().
Definition at line 106 of file TreeReader.h.
Referenced by addBranch(), addTypeMulti(), addTypeSingle(), fill(), operator=(), reset(), setOptional(), update(), and variables().
|
private |
Definition at line 107 of file TreeReader.h.
Referenced by fill(), PhysicsTools::TreeReader::Value::fill(), and genericValidation.ValidationWithPlotsSummaryBase.SummaryItem::value().