CMS 3D CMS Logo

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

#include <ForestHelper.h>

Public Types

enum  { VERSION = 1 }
 
typedef
L1TMuonEndCapForest::DForest 
DForest
 
typedef
L1TMuonEndCapForest::DForestColl 
DForestColl
 
typedef
L1TMuonEndCapForest::DForestMap 
DForestMap
 
typedef L1TMuonEndCapForest::DTree DTree
 
typedef
L1TMuonEndCapForest::DTreeNode 
DTreeNode
 

Public Member Functions

double evaluate (int mode, const std::vector< double > &data) const
 
 ForestHelper (L1TMuonEndCapForest *w)
 
const L1TMuonEndCapForestgetReadInstance () const
 
L1TMuonEndCapForestgetWriteInstance ()
 
void initializeFromXML (const char *dirname, const std::vector< int > &modes, int ntrees)
 
void print (std::ostream &) const
 
 ~ForestHelper ()
 

Static Public Member Functions

static ForestHelperreadAndWriteFromEventSetup (const L1TMuonEndCapForest *es)
 
static const ForestHelperreadFromEventSetup (const L1TMuonEndCapForest *es)
 

Private Member Functions

void check_write ()
 
double evalTreeRecursive (const std::vector< double > &data, const DTree &tree, int index) const
 
 ForestHelper (const L1TMuonEndCapForest *es)
 
void loadTreeFromXMLRecursive (TXMLEngine *xml, XMLNodePointer_t xnode, DTree &tree, unsigned index)
 
void useCopy ()
 

Private Attributes

const L1TMuonEndCapForestread_
 
bool we_own_write_
 
L1TMuonEndCapForestwrite_
 

Detailed Description

Definition at line 39 of file ForestHelper.h.

Member Typedef Documentation

Definition at line 45 of file ForestHelper.h.

Definition at line 46 of file ForestHelper.h.

Definition at line 47 of file ForestHelper.h.

Definition at line 44 of file ForestHelper.h.

Definition at line 43 of file ForestHelper.h.

Member Enumeration Documentation

anonymous enum
Enumerator
VERSION 

Definition at line 41 of file ForestHelper.h.

Constructor & Destructor Documentation

ForestHelper::~ForestHelper ( )

Definition at line 36 of file ForestHelper.cc.

ForestHelper::ForestHelper ( L1TMuonEndCapForest w)

Definition at line 20 of file ForestHelper.cc.

ForestHelper::ForestHelper ( const L1TMuonEndCapForest es)
private

Definition at line 28 of file ForestHelper.cc.

Member Function Documentation

void l1t::ForestHelper::check_write ( )
inlineprivate

Definition at line 72 of file ForestHelper.h.

References assert(), and write_.

72 { assert(write_); }
assert(m_qm.get())
L1TMuonEndCapForest * write_
Definition: ForestHelper.h:75
double ForestHelper::evalTreeRecursive ( const std::vector< double > &  data,
const DTree tree,
int  index 
) const
private

Definition at line 210 of file ForestHelper.cc.

double ForestHelper::evaluate ( int  mode,
const std::vector< double > &  data 
) const

Definition at line 128 of file ForestHelper.cc.

const L1TMuonEndCapForest* l1t::ForestHelper::getReadInstance ( ) const
inline

Definition at line 66 of file ForestHelper.h.

References read_.

66 {return read_;}
const L1TMuonEndCapForest * read_
Definition: ForestHelper.h:74
L1TMuonEndCapForest* l1t::ForestHelper::getWriteInstance ( )
inline

Definition at line 67 of file ForestHelper.h.

References write_.

Referenced by L1TMuonEndCapForestESProducer::produce().

67 {return write_; }
L1TMuonEndCapForest * write_
Definition: ForestHelper.h:75
void ForestHelper::initializeFromXML ( const char *  dirname,
const std::vector< int > &  modes,
int  ntrees 
)
void ForestHelper::loadTreeFromXMLRecursive ( TXMLEngine *  xml,
XMLNodePointer_t  xnode,
DTree tree,
unsigned  index 
)
private

Definition at line 147 of file ForestHelper.cc.

void ForestHelper::print ( std::ostream &  myStr) const

Definition at line 42 of file ForestHelper.cc.

ForestHelper * ForestHelper::readAndWriteFromEventSetup ( const L1TMuonEndCapForest es)
static

Definition at line 14 of file ForestHelper.cc.

const ForestHelper * ForestHelper::readFromEventSetup ( const L1TMuonEndCapForest es)
static

Definition at line 10 of file ForestHelper.cc.

void ForestHelper::useCopy ( )
private

Definition at line 30 of file ForestHelper.cc.

Member Data Documentation

const L1TMuonEndCapForest* l1t::ForestHelper::read_
private

Definition at line 74 of file ForestHelper.h.

Referenced by getReadInstance().

bool l1t::ForestHelper::we_own_write_
private

Definition at line 76 of file ForestHelper.h.

L1TMuonEndCapForest* l1t::ForestHelper::write_
private

Definition at line 75 of file ForestHelper.h.

Referenced by check_write(), and getWriteInstance().