CMS 3D CMS Logo

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

#include <Tree.h>

Public Member Functions

void addXMLAttributes (TXMLEngine *xml, Node *node, XMLNodePointer_t np)
 
void buildTree (Int_t nodeLimit)
 
void calcError ()
 
NodefilterEvent (Event *e)
 
NodefilterEventRecursive (Node *node, Event *e)
 
void filterEvents (std::vector< Event * > &tEvents)
 
void filterEventsRecursive (Node *node)
 
Int_t getNumTerminalNodes ()
 
NodegetRootNode ()
 
void getSplitValues (std::vector< std::vector< Double_t >> &v)
 
void getSplitValuesRecursive (Node *node, std::vector< std::vector< Double_t >> &v)
 
std::list< Node * > & getTerminalNodes ()
 
void loadFromXML (const char *filename)
 
void loadFromXMLRecursive (TXMLEngine *xml, XMLNodePointer_t node, Node *tnode)
 
void rankVariables (std::vector< Double_t > &v)
 
void rankVariablesRecursive (Node *node, std::vector< Double_t > &v)
 
void saveToXML (const char *filename)
 
void saveToXMLRecursive (TXMLEngine *xml, Node *node, XMLNodePointer_t np)
 
void setRootNode (Node *sRootNode)
 
void setTerminalNodes (std::list< Node * > &sTNodes)
 
 Tree ()
 
 Tree (std::vector< std::vector< Event * > > &cEvents)
 
 ~Tree ()
 

Private Attributes

Int_t numTerminalNodes
 
Double_t rmsError
 
NoderootNode
 
std::list< Node * > terminalNodes
 

Detailed Description

Definition at line 18 of file Tree.h.

Constructor & Destructor Documentation

Tree::Tree ( )

Definition at line 28 of file Tree.cc.

Tree::Tree ( std::vector< std::vector< Event * > > &  cEvents)

Definition at line 36 of file Tree.cc.

Tree::~Tree ( )

Definition at line 48 of file Tree.cc.

Member Function Documentation

void Tree::addXMLAttributes ( TXMLEngine *  xml,
Node node,
XMLNodePointer_t  np 
)

Definition at line 322 of file Tree.cc.

void Tree::buildTree ( Int_t  nodeLimit)

Definition at line 108 of file Tree.cc.

void Tree::calcError ( )

Definition at line 92 of file Tree.cc.

Node * Tree::filterEvent ( Event e)

Definition at line 203 of file Tree.cc.

Node * Tree::filterEventRecursive ( Node node,
Event e 
)

Definition at line 215 of file Tree.cc.

void Tree::filterEvents ( std::vector< Event * > &  tEvents)

Definition at line 169 of file Tree.cc.

void Tree::filterEventsRecursive ( Node node)

Definition at line 185 of file Tree.cc.

Int_t Tree::getNumTerminalNodes ( )

Definition at line 83 of file Tree.cc.

Node * Tree::getRootNode ( )

Definition at line 64 of file Tree.cc.

void Tree::getSplitValues ( std::vector< std::vector< Double_t >> &  v)

Definition at line 301 of file Tree.cc.

void Tree::getSplitValuesRecursive ( Node node,
std::vector< std::vector< Double_t >> &  v 
)

Definition at line 271 of file Tree.cc.

std::list< Node * > & Tree::getTerminalNodes ( )

Definition at line 76 of file Tree.cc.

void Tree::loadFromXML ( const char *  filename)

Definition at line 381 of file Tree.cc.

void Tree::loadFromXMLRecursive ( TXMLEngine *  xml,
XMLNodePointer_t  node,
Node tnode 
)

Definition at line 407 of file Tree.cc.

void Tree::rankVariables ( std::vector< Double_t > &  v)

Definition at line 263 of file Tree.cc.

void Tree::rankVariablesRecursive ( Node node,
std::vector< Double_t > &  v 
)

Definition at line 230 of file Tree.cc.

void Tree::saveToXML ( const char *  filename)

Definition at line 333 of file Tree.cc.

void Tree::saveToXMLRecursive ( TXMLEngine *  xml,
Node node,
XMLNodePointer_t  np 
)

Definition at line 359 of file Tree.cc.

void Tree::setRootNode ( Node sRootNode)

Definition at line 59 of file Tree.cc.

void Tree::setTerminalNodes ( std::list< Node * > &  sTNodes)

Definition at line 71 of file Tree.cc.

Member Data Documentation

Int_t emtf::Tree::numTerminalNodes
private

Definition at line 56 of file Tree.h.

Double_t emtf::Tree::rmsError
private

Definition at line 57 of file Tree.h.

Node* emtf::Tree::rootNode
private

Definition at line 54 of file Tree.h.

std::list<Node*> emtf::Tree::terminalNodes
private

Definition at line 55 of file Tree.h.