A++ » TMVA » TMVA::BinarySearchTreeNode

class TMVA::BinarySearchTreeNode: public TMVA::Node


BinarySearchTreeNode

Node for the BinarySearch  Tree


Function Members (Methods)

public:
virtual~BinarySearchTreeNode()
virtual voidAddAttributesToNode(void* node) const
virtual voidAddContentToNode(stringstream& s) const
void*TMVA::Node::AddXMLTo(void* parent) const
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(const TMVA::Event* e = __null, UInt_t signalClass = 0)
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(TMVA::BinarySearchTreeNode* parent, char pos)
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(const TMVA::BinarySearchTreeNode& n, TMVA::BinarySearchTreeNode* parent = __null)
static TClass*Class()
Int_tTMVA::Node::CountMeAndAllDaughters() const
virtual TMVA::Node*CreateNode() const
virtual Bool_tEqualsMe(const TMVA::Event&) const
UInt_tGetClass() const
intTMVA::Node::GetCount()
UInt_tTMVA::Node::GetDepth() const
const vector<Float_t>&GetEventV() const
virtual TMVA::Node*TMVA::Node::GetLeft() const
virtual TMVA::Node*TMVA::Node::GetParent() const
virtual TMVA::BinaryTree*TMVA::Node::GetParentTree() const
charTMVA::Node::GetPos() const
virtual TMVA::Node*TMVA::Node::GetRight() const
Short_tGetSelector() const
const vector<Float_t>&GetTargets() const
Float_tGetWeight() const
virtual Bool_tGoesLeft(const TMVA::Event&) const
virtual Bool_tGoesRight(const TMVA::Event&) const
virtual TClass*IsA() const
TMVA::NodeTMVA::Node::Node()
TMVA::NodeTMVA::Node::Node(const TMVA::Node& n)
TMVA::NodeTMVA::Node::Node(TMVA::Node* p, char pos)
TMVA::BinarySearchTreeNode&operator=(const TMVA::BinarySearchTreeNode&)
virtual voidPrint(ostream& os) const
virtual voidPrintRec(ostream& os) const
voidTMVA::Node::ReadXML(void* node, UInt_t tmva_Version_Code = 262657)
voidTMVA::Node::SetDepth(UInt_t d)
virtual voidTMVA::Node::SetLeft(TMVA::Node* l)
virtual voidTMVA::Node::SetParent(TMVA::Node* p)
virtual voidTMVA::Node::SetParentTree(TMVA::BinaryTree* t)
voidTMVA::Node::SetPos(char s)
virtual voidTMVA::Node::SetRight(TMVA::Node* r)
voidSetSelector(Short_t i)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
private:
virtual voidReadAttributes(void* node, UInt_t tmva_Version_Code = 262657)
virtual voidReadContent(stringstream& s)
virtual Bool_tReadDataRecord(istream& is, UInt_t tmva_Version_Code = 262657)

Data Members

protected:
UInt_tTMVA::Node::fDepthdepth of the node within the tree (seen from root node)
TMVA::Node*TMVA::Node::fLeftpointers to the two "daughter" nodes
TMVA::Node*TMVA::Node::fParentthe previous (parent) node
TMVA::BinaryTree*TMVA::Node::fParentTreepointer to the parent tree to which the Node belongs
charTMVA::Node::fPosposition, i.e. it is a left (l) or right (r) daughter
TMVA::Node*TMVA::Node::fRightpointers to the two "daughter" nodes
private:
UInt_tfClass
vector<Float_t>fEventV
Short_tfSelectorindex of variable used in node selection (decision tree)
vector<Float_t>fTargets
Float_tfWeight

Class Charts

Inheritance Chart:
TMVA::Node
TMVA::BinarySearchTreeNode

Function documentation

BinarySearchTreeNode(const TMVA::Event* e = __null, UInt_t signalClass = 0)
 constructor of a node for the search tree
BinarySearchTreeNode(TMVA::BinarySearchTreeNode* parent, char pos)
 constructor of a daughter node as a daughter of 'p'
BinarySearchTreeNode(const TMVA::BinarySearchTreeNode& n, TMVA::BinarySearchTreeNode* parent = __null)
 copy constructor
Node* CreateNode() const
 destructor
{ return new BinarySearchTreeNode(); }
Bool_t GoesRight(const TMVA::Event& ) const
 test event if it decends the tree at this node to the right
Bool_t GoesLeft(const TMVA::Event& ) const
 test event if it decends the tree at this node to the left
Bool_t EqualsMe(const TMVA::Event& ) const
 test event if it is equal to the event that "makes the node" (just for the "search tree"
void SetSelector(Short_t i)
 set index of variable used for discrimination at this node
{ fSelector = i; }
Short_t GetSelector() const
 return index of variable used for discrimination at this node
{ return fSelector; }
const std::vector<Float_t> & GetEventV() const
{ return fEventV; }
Float_t GetWeight() const
{ return fWeight; }
UInt_t GetClass() const
      Bool_t                       IsSignal()  const { return (fClass == fSignalClass); }
{ return fClass; }
const std::vector<Float_t> & GetTargets() const
{ return fTargets; }
void Print(ostream& os) const
 printout of the node
void PrintRec(ostream& os) const
 recursive printout of the node and it daughters
void AddAttributesToNode(void* node) const
void AddContentToNode(stringstream& s) const
void ReadAttributes(void* node, UInt_t tmva_Version_Code = 262657)
 Read the data block
Bool_t ReadDataRecord(istream& is, UInt_t tmva_Version_Code = 262657)
void ReadContent(stringstream& s)