CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Public Attributes | Private Attributes | Friends
PhysicsTools::TreeReader Class Reference

#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)
 
TreeReaderoperator= (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< AtomicIdvariables () 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< BoolsingleBool
 
std::vector< Double_t > singleDouble
 
std::vector< Float_t > singleFloat
 
std::vector< Int_t > singleInt
 
TTree * tree
 
bool upToDate
 
std::map< AtomicId, ValuevalueMap
 
Variable::ValueList values
 

Friends

class Value
 

Detailed Description

Definition at line 19 of file TreeReader.h.

Constructor & Destructor Documentation

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.

PhysicsTools::TreeReader::TreeReader ( TTree *  tree,
bool  skipTarget = false,
bool  skipWeight = false 
)

Definition at line 35 of file TreeReader.cc.

PhysicsTools::TreeReader::~TreeReader ( )
virtual

Definition at line 41 of file TreeReader.cc.

Member Function Documentation

void PhysicsTools::TreeReader::addBranch ( const std::string &  expression,
AtomicId  name = AtomicId(),
bool  opt = true 
)

Definition at line 72 of file TreeReader.cc.

void PhysicsTools::TreeReader::addBranch ( TBranch *  branch,
AtomicId  name = AtomicId(),
bool  opt = true 
)

Definition at line 89 of file TreeReader.cc.

template<typename T >
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.

template<typename T >
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const T value,
bool  opt = false 
)
template<>
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const Double_t *  value,
bool  opt 
)
template<>
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const Float_t *  value,
bool  opt 
)
template<>
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const Int_t *  value,
bool  opt 
)
template<>
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const Bool_t *  value,
bool  opt 
)
template<>
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const Double_t *  value,
bool  opt 
)

Definition at line 481 of file TreeReader.cc.

template<>
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const Float_t *  value,
bool  opt 
)

Definition at line 482 of file TreeReader.cc.

template<>
void PhysicsTools::TreeReader::addSingle ( AtomicId  name,
const Int_t *  value,
bool  opt 
)

Definition at line 483 of file TreeReader.cc.

template<>
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.

void PhysicsTools::TreeReader::addTypeSingle ( AtomicId  name,
const void *  value,
char  type,
bool  opt 
)

Definition at line 153 of file TreeReader.cc.

void PhysicsTools::TreeReader::automaticAdd ( bool  skipTarget = false,
bool  skipWeight = false 
)

Definition at line 241 of file TreeReader.cc.

double PhysicsTools::TreeReader::fill ( const MVAComputer mva)

Definition at line 318 of file TreeReader.cc.

Variable::ValueList PhysicsTools::TreeReader::fill ( void  )

Definition at line 330 of file TreeReader.cc.

uint64_t PhysicsTools::TreeReader::loop ( const MVAComputer mva)

Definition at line 298 of file TreeReader.cc.

Referenced by PhysicsTools::TreeTrainer::iteration().

TreeReader & PhysicsTools::TreeReader::operator= ( const TreeReader orig)

Definition at line 45 of file TreeReader.cc.

void PhysicsTools::TreeReader::reset ( void  )

Definition at line 267 of file TreeReader.cc.

void PhysicsTools::TreeReader::setOptional ( AtomicId  name,
bool  opt,
double  optVal = kOptVal 
)

Definition at line 142 of file TreeReader.cc.

void PhysicsTools::TreeReader::setTree ( TTree *  tree)

Definition at line 66 of file TreeReader.cc.

void PhysicsTools::TreeReader::update ( void  )

Definition at line 284 of file TreeReader.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

std::vector< AtomicId > PhysicsTools::TreeReader::variables ( ) const

Definition at line 342 of file TreeReader.cc.

Friends And Related Function Documentation

friend class Value
friend

Definition at line 93 of file TreeReader.h.

Member Data Documentation

const double PhysicsTools::TreeReader::kOptVal = -999.0
static

Definition at line 57 of file TreeReader.h.

std::vector<std::pair<void*, std::vector<Bool_t> > > PhysicsTools::TreeReader::multiBool
private

Definition at line 101 of file TreeReader.h.

std::vector<std::pair<void*, std::vector<Double_t> > > PhysicsTools::TreeReader::multiDouble
private

Definition at line 98 of file TreeReader.h.

std::vector<std::pair<void*, std::vector<Float_t> > > PhysicsTools::TreeReader::multiFloat
private

Definition at line 99 of file TreeReader.h.

std::vector<std::pair<void*, std::vector<Int_t> > > PhysicsTools::TreeReader::multiInt
private

Definition at line 100 of file TreeReader.h.

std::vector<Bool> PhysicsTools::TreeReader::singleBool
private

Definition at line 106 of file TreeReader.h.

std::vector<Double_t> PhysicsTools::TreeReader::singleDouble
private

Definition at line 103 of file TreeReader.h.

std::vector<Float_t> PhysicsTools::TreeReader::singleFloat
private

Definition at line 104 of file TreeReader.h.

std::vector<Int_t> PhysicsTools::TreeReader::singleInt
private

Definition at line 105 of file TreeReader.h.

TTree* PhysicsTools::TreeReader::tree
private
bool PhysicsTools::TreeReader::upToDate
private

Definition at line 110 of file TreeReader.h.

std::map<AtomicId, Value> PhysicsTools::TreeReader::valueMap
private

Definition at line 108 of file TreeReader.h.

Variable::ValueList PhysicsTools::TreeReader::values
private

Definition at line 109 of file TreeReader.h.