ROOT 6.08/07 Reference Guide |
Definition at line 57 of file BinarySearchTreeNode.h.
Public Member Functions | |
BinarySearchTreeNode (const Event *e=NULL, UInt_t signalClass=0) | |
constructor of a node for the search tree More... | |
BinarySearchTreeNode (BinarySearchTreeNode *parent, char pos) | |
constructor of a daughter node as a daughter of 'p' More... | |
BinarySearchTreeNode (const BinarySearchTreeNode &n, BinarySearchTreeNode *parent=NULL) | |
copy constructor of a node. More... | |
virtual | ~BinarySearchTreeNode () |
node destructor More... | |
virtual void | AddAttributesToNode (void *node) const |
adding attributes to tree node More... | |
virtual void | AddContentToNode (std::stringstream &s) const |
adding attributes to tree node More... | |
virtual Node * | CreateNode () const |
virtual Bool_t | EqualsMe (const Event &) const |
check if the event fed into the node actually equals the event that forms the node (in case of a search tree) More... | |
UInt_t | GetClass () const |
const std::vector< Float_t > & | GetEventV () const |
Short_t | GetSelector () const |
const std::vector< Float_t > & | GetTargets () const |
Float_t | GetWeight () const |
virtual Bool_t | GoesLeft (const Event &) const |
check if the event fed into the node goes/decends to the left daughter More... | |
virtual Bool_t | GoesRight (const Event &) const |
check if the event fed into the node goes/decends to the right daughter More... | |
virtual void | Print (std::ostream &os) const |
print the node More... | |
virtual void | PrintRec (std::ostream &os) const |
recursively print the node and its daughters (–> print the 'tree') More... | |
void | SetSelector (Short_t i) |
Public Member Functions inherited from TMVA::Node | |
Node () | |
Node (Node *p, char pos) | |
constructor of a daughter node as a daughter of 'p' More... | |
Node (const Node &n) | |
copy constructor, make sure you don't just copy the poiter to the node, but that the parents/daugthers are initialized to 0 (and set by the copy constructors of the derived classes More... | |
virtual | ~Node () |
node destructor More... | |
void * | AddXMLTo (void *parent) const |
add attributes to XML More... | |
Int_t | CountMeAndAllDaughters () const |
recursively go through the part of the tree below this node and count all daughters More... | |
int | GetCount () |
retuns the global number of instantiated nodes More... | |
UInt_t | GetDepth () const |
virtual Node * | GetLeft () const |
virtual Node * | GetParent () const |
virtual TMVA::BinaryTree * | GetParentTree () const |
char | GetPos () const |
virtual Node * | GetRight () const |
void | ReadXML (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE) |
read attributes from XML More... | |
void | SetDepth (UInt_t d) |
virtual void | SetLeft (Node *l) |
virtual void | SetParent (Node *p) |
virtual void | SetParentTree (TMVA::BinaryTree *t) |
void | SetPos (char s) |
virtual void | SetRight (Node *r) |
Private Member Functions | |
virtual void | ReadAttributes (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE) |
read attributes from XML More... | |
virtual void | ReadContent (std::stringstream &s) |
read events from node More... | |
virtual Bool_t | ReadDataRecord (std::istream &is, UInt_t tmva_Version_Code=TMVA_VERSION_CODE) |
Read the data block. More... | |
Private Attributes | |
UInt_t | fClass |
std::vector< Float_t > | fEventV |
Short_t | fSelector |
std::vector< Float_t > | fTargets |
Float_t | fWeight |
Additional Inherited Members | |
Protected Attributes inherited from TMVA::Node | |
UInt_t | fDepth |
Node * | fLeft |
Node * | fParent |
BinaryTree * | fParentTree |
char | fPos |
Node * | fRight |
#include <TMVA/BinarySearchTreeNode.h>
constructor of a node for the search tree
Definition at line 58 of file BinarySearchTreeNode.cxx.
TMVA::BinarySearchTreeNode::BinarySearchTreeNode | ( | BinarySearchTreeNode * | parent, |
char | pos | ||
) |
constructor of a daughter node as a daughter of 'p'
Definition at line 77 of file BinarySearchTreeNode.cxx.
TMVA::BinarySearchTreeNode::BinarySearchTreeNode | ( | const BinarySearchTreeNode & | n, |
BinarySearchTreeNode * | parent = NULL |
||
) |
copy constructor of a node.
It will result in an explicit copy of the node and recursively all it's daughters
Definition at line 91 of file BinarySearchTreeNode.cxx.
|
virtual |
node destructor
Definition at line 112 of file BinarySearchTreeNode.cxx.
adding attributes to tree node
Implements TMVA::Node.
Definition at line 244 of file BinarySearchTreeNode.cxx.
|
virtual |
adding attributes to tree node
Implements TMVA::Node.
Definition at line 256 of file BinarySearchTreeNode.cxx.
|
inlinevirtual |
Implements TMVA::Node.
Definition at line 74 of file BinarySearchTreeNode.h.
check if the event fed into the node actually equals the event that forms the node (in case of a search tree)
Definition at line 138 of file BinarySearchTreeNode.cxx.
|
inline |
Definition at line 92 of file BinarySearchTreeNode.h.
|
inline |
Definition at line 90 of file BinarySearchTreeNode.h.
|
inline |
Definition at line 88 of file BinarySearchTreeNode.h.
|
inline |
Definition at line 95 of file BinarySearchTreeNode.h.
|
inline |
Definition at line 91 of file BinarySearchTreeNode.h.
check if the event fed into the node goes/decends to the left daughter
Implements TMVA::Node.
Definition at line 128 of file BinarySearchTreeNode.cxx.
check if the event fed into the node goes/decends to the right daughter
Implements TMVA::Node.
Definition at line 119 of file BinarySearchTreeNode.cxx.
|
virtual |
|
virtual |
recursively print the node and its daughters (–> print the 'tree')
Implements TMVA::Node.
Definition at line 171 of file BinarySearchTreeNode.cxx.
|
privatevirtual |
read attributes from XML
Implements TMVA::Node.
Definition at line 224 of file BinarySearchTreeNode.cxx.
|
privatevirtual |
read events from node
Implements TMVA::Node.
Definition at line 267 of file BinarySearchTreeNode.cxx.
|
privatevirtual |
Read the data block.
Implements TMVA::Node.
Definition at line 188 of file BinarySearchTreeNode.cxx.
Definition at line 86 of file BinarySearchTreeNode.h.
|
private |
Definition at line 116 of file BinarySearchTreeNode.h.
|
private |
Definition at line 112 of file BinarySearchTreeNode.h.
|
private |
Definition at line 118 of file BinarySearchTreeNode.h.
|
private |
Definition at line 113 of file BinarySearchTreeNode.h.
|
private |
Definition at line 115 of file BinarySearchTreeNode.h.