ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::BinarySearchTreeNode Class Reference

Definition at line 57 of file BinarySearchTreeNode.h.

Public Member Functions

 BinarySearchTreeNode (const Event *e=NULL, UInt_t signalClass=0)
 
 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 NodeCreateNode () const
 
virtual Bool_t GoesRight (const Event &) const
 check if the event fed into the node goes/decends to the right daughter More...
 
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 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...
 
void SetSelector (Short_t i)
 
Short_t GetSelector () const
 
const std::vector< Float_t > & GetEventV () const
 
Float_t GetWeight () const
 
UInt_t GetClass () const
 
const std::vector< Float_t > & GetTargets () const
 
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...
 
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...
 
- 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...
 
virtual NodeGetLeft () const
 
virtual NodeGetRight () const
 
virtual NodeGetParent () const
 
virtual void SetLeft (Node *l)
 
virtual void SetRight (Node *r)
 
virtual void SetParent (Node *p)
 
Int_t CountMeAndAllDaughters () const
 recursively go through the part of the tree below this node and count all daughters More...
 
voidAddXMLTo (void *parent) const
 add attributes to XML More...
 
void ReadXML (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
 read attributes from XML More...
 
void SetDepth (UInt_t d)
 
UInt_t GetDepth () const
 
void SetPos (char s)
 
char GetPos () const
 
virtual TMVA::BinaryTreeGetParentTree () const
 
virtual void SetParentTree (TMVA::BinaryTree *t)
 
int GetCount ()
 retuns the global number of instantiated nodes More...
 

Private Member Functions

virtual void ReadAttributes (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
 read attributes from XML More...
 
virtual Bool_t ReadDataRecord (std::istream &is, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
 Read the data block. More...
 
virtual void ReadContent (std::stringstream &s)
 read events from node More...
 

Private Attributes

std::vector< Float_tfEventV
 
std::vector< Float_tfTargets
 
Float_t fWeight
 
UInt_t fClass
 
Short_t fSelector
 

Additional Inherited Members

- Protected Attributes inherited from TMVA::Node
NodefParent
 
NodefLeft
 
NodefRight
 
char fPos
 
UInt_t fDepth
 
BinaryTreefParentTree
 

#include <TMVA/BinarySearchTreeNode.h>

Inheritance diagram for TMVA::BinarySearchTreeNode:
[legend]

Constructor & Destructor Documentation

TMVA::BinarySearchTreeNode::BinarySearchTreeNode ( const Event e = NULL,
UInt_t  signalClass = 0 
)

Referenced by BinarySearchTreeNode(), and CreateNode().

TMVA::BinarySearchTreeNode::BinarySearchTreeNode ( BinarySearchTreeNode parent,
char  pos 
)

constructor of a daughter node as a daughter of 'p'

Definition at line 75 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 89 of file BinarySearchTreeNode.cxx.

TMVA::BinarySearchTreeNode::~BinarySearchTreeNode ( )
virtual

node destructor

Definition at line 110 of file BinarySearchTreeNode.cxx.

Member Function Documentation

void TMVA::BinarySearchTreeNode::AddAttributesToNode ( void node) const
virtual

adding attributes to tree node

Implements TMVA::Node.

Definition at line 242 of file BinarySearchTreeNode.cxx.

void TMVA::BinarySearchTreeNode::AddContentToNode ( std::stringstream &  s) const
virtual

adding attributes to tree node

Implements TMVA::Node.

Definition at line 254 of file BinarySearchTreeNode.cxx.

virtual Node* TMVA::BinarySearchTreeNode::CreateNode ( ) const
inlinevirtual

Implements TMVA::Node.

Definition at line 74 of file BinarySearchTreeNode.h.

Bool_t TMVA::BinarySearchTreeNode::EqualsMe ( const Event e) const
virtual

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 136 of file BinarySearchTreeNode.cxx.

UInt_t TMVA::BinarySearchTreeNode::GetClass ( ) const
inline

Definition at line 92 of file BinarySearchTreeNode.h.

Referenced by TMVA::BinarySearchTree::CalcStatistics().

const std::vector<Float_t>& TMVA::BinarySearchTreeNode::GetEventV ( ) const
inline
Short_t TMVA::BinarySearchTreeNode::GetSelector ( ) const
inline

Definition at line 88 of file BinarySearchTreeNode.h.

Referenced by TMVA::BinarySearchTree::SearchVolume().

const std::vector<Float_t>& TMVA::BinarySearchTreeNode::GetTargets ( ) const
inline

Definition at line 95 of file BinarySearchTreeNode.h.

Float_t TMVA::BinarySearchTreeNode::GetWeight ( ) const
inline
Bool_t TMVA::BinarySearchTreeNode::GoesLeft ( const Event e) const
virtual

check if the event fed into the node goes/decends to the left daughter

Implements TMVA::Node.

Definition at line 126 of file BinarySearchTreeNode.cxx.

Bool_t TMVA::BinarySearchTreeNode::GoesRight ( const Event e) const
virtual

check if the event fed into the node goes/decends to the right daughter

Implements TMVA::Node.

Definition at line 117 of file BinarySearchTreeNode.cxx.

void TMVA::BinarySearchTreeNode::Print ( std::ostream &  os) const
virtual

print the node

Implements TMVA::Node.

Definition at line 148 of file BinarySearchTreeNode.cxx.

void TMVA::BinarySearchTreeNode::PrintRec ( std::ostream &  os) const
virtual

recursively print the node and its daughters (–> print the 'tree')

Implements TMVA::Node.

Definition at line 169 of file BinarySearchTreeNode.cxx.

void TMVA::BinarySearchTreeNode::ReadAttributes ( void node,
UInt_t  tmva_Version_Code = TMVA_VERSION_CODE 
)
privatevirtual

read attributes from XML

Implements TMVA::Node.

Definition at line 222 of file BinarySearchTreeNode.cxx.

void TMVA::BinarySearchTreeNode::ReadContent ( std::stringstream &  s)
privatevirtual

read events from node

Implements TMVA::Node.

Definition at line 265 of file BinarySearchTreeNode.cxx.

Bool_t TMVA::BinarySearchTreeNode::ReadDataRecord ( std::istream &  is,
UInt_t  tmva_Version_Code = TMVA_VERSION_CODE 
)
privatevirtual

Read the data block.

Implements TMVA::Node.

Definition at line 186 of file BinarySearchTreeNode.cxx.

void TMVA::BinarySearchTreeNode::SetSelector ( Short_t  i)
inline

Definition at line 86 of file BinarySearchTreeNode.h.

Referenced by TMVA::BinarySearchTree::Insert().

Member Data Documentation

UInt_t TMVA::BinarySearchTreeNode::fClass
private

Definition at line 116 of file BinarySearchTreeNode.h.

Referenced by GetClass().

std::vector<Float_t> TMVA::BinarySearchTreeNode::fEventV
private

Definition at line 112 of file BinarySearchTreeNode.h.

Referenced by GetEventV().

Short_t TMVA::BinarySearchTreeNode::fSelector
private

Definition at line 118 of file BinarySearchTreeNode.h.

Referenced by GetSelector(), and SetSelector().

std::vector<Float_t> TMVA::BinarySearchTreeNode::fTargets
private

Definition at line 113 of file BinarySearchTreeNode.h.

Referenced by GetTargets().

Float_t TMVA::BinarySearchTreeNode::fWeight
private

Definition at line 115 of file BinarySearchTreeNode.h.

Referenced by GetWeight().

Collaboration diagram for TMVA::BinarySearchTreeNode:
[legend]

The documentation for this class was generated from the following files: