#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 L1TMuonEndCapForest * | getReadInstance () const |
L1TMuonEndCapForest * | getWriteInstance () |
void | initializeFromXML (const char *dirname, const std::vector< int > &modes, int ntrees) |
void | print (std::ostream &) const |
~ForestHelper () | |
Static Public Member Functions | |
static ForestHelper * | readAndWriteFromEventSetup (const L1TMuonEndCapForest *es) |
static const ForestHelper * | readFromEventSetup (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 L1TMuonEndCapForest * | read_ |
bool | we_own_write_ |
L1TMuonEndCapForest * | write_ |
Definition at line 39 of file ForestHelper.h.
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.
anonymous enum |
ForestHelper::~ForestHelper | ( | ) |
Definition at line 36 of file ForestHelper.cc.
ForestHelper::ForestHelper | ( | L1TMuonEndCapForest * | w | ) |
|
private |
|
inlineprivate |
|
private |
Definition at line 210 of file ForestHelper.cc.
References assert(), L1TMuonEndCapForest::DTreeNode::fitVal, L1TMuonEndCapForest::DTreeNode::ileft, cmsHarvester::index, L1TMuonEndCapForest::DTreeNode::iright, L1TMuonEndCapForest::DTreeNode::splitVal, and L1TMuonEndCapForest::DTreeNode::splitVar.
double ForestHelper::evaluate | ( | int | mode, |
const std::vector< double > & | data | ||
) | const |
Definition at line 128 of file ForestHelper.cc.
References x().
|
inline |
|
inline |
Definition at line 67 of file ForestHelper.h.
References write_.
Referenced by L1TMuonEndCapForestESProducer::produce().
void ForestHelper::initializeFromXML | ( | const char * | dirname, |
const std::vector< int > & | modes, | ||
int | ntrees | ||
) |
Definition at line 72 of file ForestHelper.cc.
References assert(), createBeamHaloJobs::directory, lut2db_cfg::filename, contentValuesFiles::fullPath, i, j, universalConfigTemplate::mode, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and ExtractAppInfoFromXML::xmldoc.
Referenced by L1TMuonEndCapForestESProducer::L1TMuonEndCapForestESProducer().
|
private |
Definition at line 147 of file ForestHelper.cc.
References assert(), i, and cmsHarvester::index.
void ForestHelper::print | ( | std::ostream & | myStr | ) | const |
Definition at line 42 of file ForestHelper.cc.
References KineDebug3::count(), gather_cfg::cout, L1TMuonEndCapForest::DTreeNode::fitVal, L1TMuonEndCapForest::DTreeNode::ileft, cmsHarvester::index, L1TMuonEndCapForest::DTreeNode::iright, universalConfigTemplate::mode, L1TMuonEndCapForest::DTreeNode::splitVal, L1TMuonEndCapForest::DTreeNode::splitVar, and MainPageGenerator::tree.
|
static |
Definition at line 14 of file ForestHelper.cc.
References useCopy(), and x().
|
static |
Definition at line 10 of file ForestHelper.cc.
|
private |
Definition at line 30 of file ForestHelper.cc.
Referenced by readAndWriteFromEventSetup().
|
private |
Definition at line 74 of file ForestHelper.h.
Referenced by getReadInstance().
|
private |
Definition at line 76 of file ForestHelper.h.
|
private |
Definition at line 75 of file ForestHelper.h.
Referenced by check_write(), and getWriteInstance().