library: libTMVA
#include "BinarySearchTreeNode.h"

TMVA::BinarySearchTreeNode


class description - header file - source file
viewCVS header - viewCVS source

class TMVA::BinarySearchTreeNode: public TMVA::Node

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
virtual~BinarySearchTreeNode()
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(TMVA::Event* e = NULL, Bool_t o = kFALSE)
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(TMVA::BinarySearchTreeNode* p, char pos)
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(const TMVA::BinarySearchTreeNode& n, TMVA::BinarySearchTreeNode* parent = NULL)
static TClass*Class()
Int_tTMVA::Node::CountMeAndAllDaughters() const
virtual Bool_tEqualsMe(const TMVA::Event&) const
intTMVA::Node::GetCount()
UInt_tTMVA::Node::GetDepth() const
TMVA::Event*GetEvent() const
Bool_tGetEventOwnership()
TMVA::Node*TMVA::Node::GetLeft() const
TMVA::Node*TMVA::Node::GetParent() const
TMVA::BinaryTree*TMVA::Node::GetParentTree() const
charTMVA::Node::GetPos() const
TMVA::Node*TMVA::Node::GetRight() const
Short_tGetSelector() const
virtual Bool_tGoesLeft(const TMVA::Event&) const
virtual Bool_tGoesRight(const TMVA::Event&) const
virtual TClass*IsA() const
TMVA::BinarySearchTreeNode&operator=(const TMVA::BinarySearchTreeNode&)
virtual voidPrint(ostream& os) const
virtual voidPrintRec(ostream& os) const
virtual voidReadRec(istream& is, char& pos, UInt_t& depth, TMVA::Node* parent = NULL)
voidTMVA::Node::SetDepth(const UInt_t d)
voidSetEvent(TMVA::Event* e)
voidSetEventOwnership(const Bool_t b)
voidTMVA::Node::SetLeft(TMVA::Node* l)
voidTMVA::Node::SetParent(TMVA::Node* p)
voidTMVA::Node::SetParentTree(TMVA::BinaryTree* t)
voidTMVA::Node::SetPos(const char s)
voidTMVA::Node::SetRight(TMVA::Node* r)
voidSetSelector(const Short_t i)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
TMVA::Event*fEventevent that forms the node (search tree)
Bool_tfEventOwnershipflag if Event* is owned by the node or not
Short_tfSelectorindex of variable used in node selection (decision tree)

Class Description

                                                                      
 Node for the BinarySearch or Decision Trees 
                        
 for the binary search tree, it basically consists of the EVENT, and 
 pointers to the parent and daughters
                                                                       
 in case of the Decision Tree, it specifies parent and daughters, as
 well as "which variable is used" in the selection of this node, including
 the respective cut value.
______________________________________________________________________
Bool_t GoesRight(const TMVA::Event& e)
 check if the event fed into the node goes/decends to the right daughter
Bool_t GoesLeft(const TMVA::Event& e)
 check if the event fed into the node goes/decends to the left daughter
Bool_t EqualsMe(const TMVA::Event& e)
 check if the event fed into the node actually equals the event
 that forms the node (in case of a search tree)
void Print(ostream& os)
print the node
void PrintRec(ostream& os )
recursively print the node and its daughters (--> print the 'tree')
void ReadRec(istream& is, char &pos, UInt_t &depth, TMVA::Node* parent )
recursively read the node and its daughters (--> print the 'tree')
BinarySearchTreeNode( Event* e = NULL, Bool_t o=kFALSE )
 constructor of a node for the search tree
{}
BinarySearchTreeNode( BinarySearchTreeNode* p, char pos )
 constructor of a daughter node as a daughter of 'p'
{}
void SetSelector( const Short_t i)
 set index of variable used for discrimination at this node
 return index of variable used for discrimination at this node 
{ fSelector = i; }
Short_t GetSelector()
 set the EVENT that forms this node (in search tree)
{ return fSelector; }
void SetEvent( Event* e )
{ fEvent = e; }
Event* GetEvent()
 return the EVENT that forms this node (in search tree)
{ return fEvent; }
Bool_t GetEventOwnership( void )
 return true/false if the EVENT* that forms the node is owned by the node or not 
 set if the EVENT* that forms the node is owned by the node or not 
{ return fEventOwnership; }
void SetEventOwnership( const Bool_t b )
{ fEventOwnership = b; }

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last update: root/tmva $Id: BinarySearchTreeNode.cxx,v 1.4 2006/11/20 15:35:28 brun Exp $


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.