library: libTMVA
#include "Node.h"

TMVA::Node


class description - header file - source file - inheritance tree (.pdf)

class TMVA::Node

Inheritance Chart:
TMVA::Node
<-
TMVA::DecisionTreeNode

    public:
Node(TMVA::Event* e = NULL, Bool_t o = kFALSE) Node(TMVA::Node* p) Node(const TMVA::Node&) virtual ~Node() static TClass* Class() Int_t CountMeAndAllDaughters() const virtual Bool_t EqualsMe(const TMVA::Event*) const TMVA::Event* GetData() const Bool_t GetEventOwnership() TMVA::Node* GetLeft() const TMVA::Node* GetParent() const TMVA::Node* GetRight() const Short_t GetSelector() const virtual Bool_t GoesLeft(const TMVA::Event*) const virtual Bool_t GoesRight(const TMVA::Event*) const virtual TClass* IsA() const TMVA::Node& operator=(const TMVA::Node&) void Print(ostream& os) const virtual void PrintRec(ostream& os, Int_t depth = 0, const string pos = root) const virtual TMVA::NodeID ReadRec(ifstream& is, TMVA::NodeID nodeID, TMVA::Node* parent = NULL) void SetData(TMVA::Event* e) void SetEventOwnership(Bool_t b) void SetLeft(TMVA::Node* l) void SetParent(TMVA::Node* p) void SetRight(TMVA::Node* r) void SetSelector(Short_t i) void SetSelector(Int_t i) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TMVA::Event* fEvent event that forms the node (search tree) TMVA::Node* fLeft pointers to the two "daughter" nodes TMVA::Node* fRight pointers to the two "daughter" nodes TMVA::Node* fParent the previous (parent) node Short_t fSelector index of variable used in node selection (decision tree) Bool_t fEventOwnership flag if Event* is owned by the node or not

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.
______________________________________________________________________
~Node( void )
 node destructor
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)
Int_t CountMeAndAllDaughters( void )
recursively go through the part of the tree below this node and count all daughters
void Print(ostream& os)
print the node
void PrintRec(ostream& os, const Int_t Depth, const std::string pos )
recursively print the node and its daughters (--> print the 'tree')
TMVA::NodeID ReadRec(ifstream& is, TMVA::NodeID nodeID, TMVA::Node* Parent )
recursively read the node and its daughters (--> print the 'tree')
Node( Event* e =NULL, Bool_t o=kFALSE )
 constructor of a node for the search tree
Node( Node* p )
 constructor of a daughter node as a daughter of 'p'
Node* GetParent()
 return pointer to the parent node
void SetParent(Node* p)
 set pointer to the parent node
void SetSelector( Short_t i)
 set index of variable used for discrimination at this node
void SetSelector( Int_t i )
 set index of variable used for discrimination at this node
Short_t GetSelector()
 return index of variable used for discrimination at this node
void SetData( Event* e )
 set the EVENT that forms this node (in search tree)
Event* GetData()
 return the EVENT that forms this node (in search tree)
Bool_t GetEventOwnership( void )
 return true/false if the EVENT* that forms the node is owned by the node or not
void SetEventOwnership( Bool_t b )
 set if the EVENT* that forms the node is owned by the node or not

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last update: root/tmva $Id: Node.cxx,v 1.3 2006/05/23 19:35:06 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.