FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
BDTNode Class Reference

Public Member Functions

 BDTNode (BDTNode *left, BDTNode *right, int selector, double cutValue, bool cutType, int nodeType, double purity, double response)
 
virtual ~BDTNode ()
 
virtual bool GoesRight (const std::vector< double > &inputValues) const
 
BDTNodeGetRight (void)
 
virtual bool GoesLeft (const std::vector< double > &inputValues) const
 
BDTNodeGetLeft (void)
 
double GetPurity (void) const
 
int GetNodeType (void) const
 
double GetResponse (void) const
 
 BDTNode (BDTNode *left, BDTNode *right, int selector, double cutValue, bool cutType, int nodeType, double purity, double response)
 
virtual ~BDTNode ()
 
virtual bool GoesRight (const std::vector< double > &inputValues) const
 
BDTNodeGetRight (void)
 
virtual bool GoesLeft (const std::vector< double > &inputValues) const
 
BDTNodeGetLeft (void)
 
double GetPurity (void) const
 
int GetNodeType (void) const
 
double GetResponse (void) const
 
 BDTNode (BDTNode *left, BDTNode *right, int selector, double cutValue, bool cutType, int nodeType, double purity, double response)
 
virtual ~BDTNode ()
 
virtual bool GoesRight (const std::vector< double > &inputValues) const
 
BDTNodeGetRight (void)
 
virtual bool GoesLeft (const std::vector< double > &inputValues) const
 
BDTNodeGetLeft (void)
 
double GetPurity (void) const
 
int GetNodeType (void) const
 
double GetResponse (void) const
 
 BDTNode (BDTNode *left, BDTNode *right, int selector, double cutValue, bool cutType, int nodeType, double purity, double response)
 
virtual ~BDTNode ()
 
virtual bool GoesRight (const std::vector< double > &inputValues) const
 
BDTNodeGetRight (void)
 
virtual bool GoesLeft (const std::vector< double > &inputValues) const
 
BDTNodeGetLeft (void)
 
double GetPurity (void) const
 
int GetNodeType (void) const
 
double GetResponse (void) const
 
 BDTNode (BDTNode *left, BDTNode *right, int selector, double cutValue, bool cutType, int nodeType, double purity, double response)
 
virtual ~BDTNode ()
 
virtual bool GoesRight (const std::vector< double > &inputValues) const
 
BDTNodeGetRight (void)
 
virtual bool GoesLeft (const std::vector< double > &inputValues) const
 
BDTNodeGetLeft (void)
 
double GetPurity (void) const
 
int GetNodeType (void) const
 
double GetResponse (void) const
 

Private Attributes

BDTNodefLeft
 
BDTNodefRight
 
int fSelector
 
double fCutValue
 
bool fCutType
 
int fNodeType
 
double fPurity
 
double fResponse
 

Detailed Description

Definition at line 86 of file TMVAClassification_BDT.class.C.

Constructor & Destructor Documentation

BDTNode::BDTNode ( BDTNode left,
BDTNode right,
int  selector,
double  cutValue,
bool  cutType,
int  nodeType,
double  purity,
double  response 
)
inline

Definition at line 91 of file TMVAClassification_BDT.class.C.

93  :
94  fLeft ( left ),
95  fRight ( right ),
96  fSelector ( selector ),
97  fCutValue ( cutValue ),
98  fCutType ( cutType ),
99  fNodeType ( nodeType ),
100  fPurity ( purity ),
101  fResponse ( response ){
102  }
BDTNode::~BDTNode ( )
virtual

Definition at line 134 of file TMVAClassification_BDT.class.C.

References fLeft, and fRight.

135 {
136  if (fLeft != NULL) delete fLeft;
137  if (fRight != NULL) delete fRight;
138 };
BDTNode::BDTNode ( BDTNode left,
BDTNode right,
int  selector,
double  cutValue,
bool  cutType,
int  nodeType,
double  purity,
double  response 
)
inline

Definition at line 95 of file noise_hits/weights_3fr_mom_15/TMVAClassification_BDT.class.C.

97  :
98  fLeft ( left ),
99  fRight ( right ),
100  fSelector ( selector ),
101  fCutValue ( cutValue ),
102  fCutType ( cutType ),
103  fNodeType ( nodeType ),
104  fPurity ( purity ),
105  fResponse ( response ){
106  }
virtual BDTNode::~BDTNode ( )
virtual
BDTNode::BDTNode ( BDTNode left,
BDTNode right,
int  selector,
double  cutValue,
bool  cutType,
int  nodeType,
double  purity,
double  response 
)
inline

Definition at line 95 of file noise_hits/weights_3fr_mom_1_5/TMVAClassification_BDT.class.C.

97  :
98  fLeft ( left ),
99  fRight ( right ),
100  fSelector ( selector ),
101  fCutValue ( cutValue ),
102  fCutType ( cutType ),
103  fNodeType ( nodeType ),
104  fPurity ( purity ),
105  fResponse ( response ){
106  }
virtual BDTNode::~BDTNode ( )
virtual
BDTNode::BDTNode ( BDTNode left,
BDTNode right,
int  selector,
double  cutValue,
bool  cutType,
int  nodeType,
double  purity,
double  response 
)
inline

Definition at line 95 of file noise_hits/weights_mom1_5/TMVAClassification_BDT.class.C.

97  :
98  fLeft ( left ),
99  fRight ( right ),
100  fSelector ( selector ),
101  fCutValue ( cutValue ),
102  fCutType ( cutType ),
103  fNodeType ( nodeType ),
104  fPurity ( purity ),
105  fResponse ( response ){
106  }
virtual BDTNode::~BDTNode ( )
virtual
BDTNode::BDTNode ( BDTNode left,
BDTNode right,
int  selector,
double  cutValue,
bool  cutType,
int  nodeType,
double  purity,
double  response 
)
inline

Definition at line 95 of file noise_hits/weights_mom_15/TMVAClassification_BDT.class.C.

97  :
98  fLeft ( left ),
99  fRight ( right ),
100  fSelector ( selector ),
101  fCutValue ( cutValue ),
102  fCutType ( cutType ),
103  fNodeType ( nodeType ),
104  fPurity ( purity ),
105  fResponse ( response ){
106  }
virtual BDTNode::~BDTNode ( )
virtual

Member Function Documentation

BDTNode* BDTNode::GetLeft ( void  )
inline

Definition at line 112 of file TMVAClassification_BDT.class.C.

References fLeft.

Referenced by ReadBDT::GetMvaValue__().

112 { return fLeft; };
BDTNode* BDTNode::GetLeft ( void  )
inline

Definition at line 116 of file noise_hits/weights_3fr_mom_15/TMVAClassification_BDT.class.C.

References fLeft.

116 { return fLeft; };
BDTNode* BDTNode::GetLeft ( void  )
inline

Definition at line 116 of file noise_hits/weights_3fr_mom_1_5/TMVAClassification_BDT.class.C.

References fLeft.

116 { return fLeft; };
BDTNode* BDTNode::GetLeft ( void  )
inline

Definition at line 116 of file noise_hits/weights_mom_15/TMVAClassification_BDT.class.C.

References fLeft.

116 { return fLeft; };
BDTNode* BDTNode::GetLeft ( void  )
inline

Definition at line 116 of file noise_hits/weights_mom1_5/TMVAClassification_BDT.class.C.

References fLeft.

116 { return fLeft; };
int BDTNode::GetNodeType ( void  ) const
inline

Definition at line 118 of file TMVAClassification_BDT.class.C.

References fNodeType.

Referenced by ReadBDT::GetMvaValue__().

118 { return fNodeType; }
int BDTNode::GetNodeType ( void  ) const
inline

Definition at line 122 of file noise_hits/weights_mom_15/TMVAClassification_BDT.class.C.

References fNodeType.

122 { return fNodeType; }
int BDTNode::GetNodeType ( void  ) const
inline
int BDTNode::GetNodeType ( void  ) const
inline
int BDTNode::GetNodeType ( void  ) const
inline

Definition at line 122 of file noise_hits/weights_mom1_5/TMVAClassification_BDT.class.C.

References fNodeType.

122 { return fNodeType; }
double BDTNode::GetPurity ( void  ) const
inline

Definition at line 116 of file TMVAClassification_BDT.class.C.

References fPurity.

116 { return fPurity; }
double BDTNode::GetPurity ( void  ) const
inline

Definition at line 120 of file noise_hits/weights_mom_15/TMVAClassification_BDT.class.C.

References fPurity.

120 { return fPurity; }
double BDTNode::GetPurity ( void  ) const
inline

Definition at line 120 of file noise_hits/weights_3fr_mom_1_5/TMVAClassification_BDT.class.C.

References fPurity.

120 { return fPurity; }
double BDTNode::GetPurity ( void  ) const
inline

Definition at line 120 of file noise_hits/weights_mom1_5/TMVAClassification_BDT.class.C.

References fPurity.

120 { return fPurity; }
double BDTNode::GetPurity ( void  ) const
inline

Definition at line 120 of file noise_hits/weights_3fr_mom_15/TMVAClassification_BDT.class.C.

References fPurity.

120 { return fPurity; }
double BDTNode::GetResponse ( void  ) const
inline

Definition at line 119 of file TMVAClassification_BDT.class.C.

References fResponse.

Referenced by ReadBDT::GetMvaValue__().

119 {return fResponse;}
double BDTNode::GetResponse ( void  ) const
inline

Definition at line 123 of file noise_hits/weights_mom_15/TMVAClassification_BDT.class.C.

References fResponse.

123 {return fResponse;}
double BDTNode::GetResponse ( void  ) const
inline
double BDTNode::GetResponse ( void  ) const
inline

Definition at line 123 of file noise_hits/weights_mom1_5/TMVAClassification_BDT.class.C.

References fResponse.

123 {return fResponse;}
double BDTNode::GetResponse ( void  ) const
inline

Definition at line 123 of file noise_hits/weights_3fr_mom_15/TMVAClassification_BDT.class.C.

References fResponse.

123 {return fResponse;}
BDTNode* BDTNode::GetRight ( void  )
inline

Definition at line 108 of file TMVAClassification_BDT.class.C.

References fRight.

Referenced by ReadBDT::GetMvaValue__().

108 {return fRight; };
BDTNode* BDTNode::GetRight ( void  )
inline

Definition at line 112 of file noise_hits/weights_3fr_mom_1_5/TMVAClassification_BDT.class.C.

References fRight.

112 {return fRight; };
BDTNode* BDTNode::GetRight ( void  )
inline

Definition at line 112 of file noise_hits/weights_3fr_mom_15/TMVAClassification_BDT.class.C.

References fRight.

112 {return fRight; };
BDTNode* BDTNode::GetRight ( void  )
inline

Definition at line 112 of file noise_hits/weights_mom1_5/TMVAClassification_BDT.class.C.

References fRight.

112 {return fRight; };
BDTNode* BDTNode::GetRight ( void  )
inline

Definition at line 112 of file noise_hits/weights_mom_15/TMVAClassification_BDT.class.C.

References fRight.

112 {return fRight; };
bool BDTNode::GoesLeft ( const std::vector< double > &  inputValues) const
virtual

Definition at line 151 of file TMVAClassification_BDT.class.C.

References GoesRight().

152 {
153  // test event if it decends the tree at this node to the left
154  if (!this->GoesRight(inputValues)) return true;
155  else return false;
156 }
virtual bool GoesRight(const std::vector< double > &inputValues) const
virtual bool BDTNode::GoesLeft ( const std::vector< double > &  inputValues) const
virtual
virtual bool BDTNode::GoesLeft ( const std::vector< double > &  inputValues) const
virtual
virtual bool BDTNode::GoesLeft ( const std::vector< double > &  inputValues) const
virtual
virtual bool BDTNode::GoesLeft ( const std::vector< double > &  inputValues) const
virtual
bool BDTNode::GoesRight ( const std::vector< double > &  inputValues) const
virtual

Definition at line 141 of file TMVAClassification_BDT.class.C.

References fCutType, fCutValue, and fSelector.

Referenced by ReadBDT::GetMvaValue__(), and GoesLeft().

142 {
143  // test event if it decends the tree at this node to the right
144  bool result;
145  result = (inputValues[fSelector] > fCutValue );
146  if (fCutType == true) return result; //the cuts are selecting Signal ;
147  else return !result;
148 }
virtual bool BDTNode::GoesRight ( const std::vector< double > &  inputValues) const
virtual
virtual bool BDTNode::GoesRight ( const std::vector< double > &  inputValues) const
virtual
virtual bool BDTNode::GoesRight ( const std::vector< double > &  inputValues) const
virtual
virtual bool BDTNode::GoesRight ( const std::vector< double > &  inputValues) const
virtual

Member Data Documentation

bool BDTNode::fCutType
private

Definition at line 127 of file TMVAClassification_BDT.class.C.

Referenced by GoesRight().

double BDTNode::fCutValue
private

Definition at line 126 of file TMVAClassification_BDT.class.C.

Referenced by GoesRight().

BDTNode * BDTNode::fLeft
private

Definition at line 123 of file TMVAClassification_BDT.class.C.

Referenced by GetLeft(), and ~BDTNode().

int BDTNode::fNodeType
private

Definition at line 128 of file TMVAClassification_BDT.class.C.

Referenced by GetNodeType().

double BDTNode::fPurity
private

Definition at line 129 of file TMVAClassification_BDT.class.C.

Referenced by GetPurity().

double BDTNode::fResponse
private

Definition at line 130 of file TMVAClassification_BDT.class.C.

Referenced by GetResponse().

BDTNode * BDTNode::fRight
private

Definition at line 124 of file TMVAClassification_BDT.class.C.

Referenced by GetRight(), and ~BDTNode().

int BDTNode::fSelector
private

Definition at line 125 of file TMVAClassification_BDT.class.C.

Referenced by GoesRight().


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