Public Member Functions | Private Attributes | List of all members
BDTANode Class Reference

Public Member Functions

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

Private Attributes

BDTANodefLeft
 
BDTANodefRight
 
int fSelector
 
double fCutValue
 
bool fCutType
 
int fNodeType
 
double fPurity
 
double fResponse
 

Detailed Description

Definition at line 99 of file CLAShower_BDTA.class.C.

Constructor & Destructor Documentation

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

Definition at line 104 of file CLAShower_BDTA.class.C.

References GoesRight(), and ~BDTANode().

106  :
107  fLeft ( left ),
108  fRight ( right ),
109  fSelector ( selector ),
110  fCutValue ( cutValue ),
111  fCutType ( cutType ),
112  fNodeType ( nodeType ),
113  fPurity ( purity ),
114  fResponse ( response ){
115  }
BDTANode * fLeft
BDTANode * fRight
BDTANode::~BDTANode ( )
virtual

Definition at line 147 of file CLAShower_BDTA.class.C.

References fLeft, and fRight.

Referenced by BDTANode(), and GetResponse().

148 {
149  if (fLeft != NULL) delete fLeft;
150  if (fRight != NULL) delete fRight;
151 };
BDTANode * fLeft
BDTANode * fRight
BDTANode::BDTANode ( BDTANode left,
BDTANode right,
int  selector,
double  cutValue,
bool  cutType,
int  nodeType,
double  purity,
double  response 
)
inline

Definition at line 104 of file SA_BDTA.class.C.

References GoesRight(), and ~BDTANode().

106  :
107  fLeft ( left ),
108  fRight ( right ),
109  fSelector ( selector ),
110  fCutValue ( cutValue ),
111  fCutType ( cutType ),
112  fNodeType ( nodeType ),
113  fPurity ( purity ),
114  fResponse ( response ){
115  }
BDTANode * fLeft
BDTANode * fRight
virtual BDTANode::~BDTANode ( )
virtual

Member Function Documentation

BDTANode* BDTANode::GetLeft ( void  )
inline

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

References fLeft.

Referenced by ReadBDTA::GetMvaValue__(), and ReadBDTA::NormVariable().

125 { return fLeft; };
BDTANode * fLeft
BDTANode* BDTANode::GetLeft ( void  )
inline

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

References fLeft.

125 { return fLeft; };
BDTANode * fLeft
int BDTANode::GetNodeType ( void  ) const
inline

Definition at line 131 of file CLAShower_BDTA.class.C.

References fNodeType.

Referenced by ReadBDTA::GetMvaValue__(), and ReadBDTA::NormVariable().

131 { return fNodeType; }
int BDTANode::GetNodeType ( void  ) const
inline

Definition at line 131 of file SA_BDTA.class.C.

References fNodeType.

131 { return fNodeType; }
double BDTANode::GetPurity ( void  ) const
inline

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

References fPurity.

Referenced by ReadBDTA::GetMvaValue__(), and ReadBDTA::NormVariable().

129 { return fPurity; }
double BDTANode::GetPurity ( void  ) const
inline

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

References fPurity.

129 { return fPurity; }
double BDTANode::GetResponse ( void  ) const
inline
double BDTANode::GetResponse ( void  ) const
inline

Definition at line 132 of file CLAShower_BDTA.class.C.

References fResponse.

132 {return fResponse;}
BDTANode* BDTANode::GetRight ( void  )
inline

Definition at line 121 of file SA_BDTA.class.C.

References fRight, and GoesLeft().

121 {return fRight; };
BDTANode * fRight
BDTANode* BDTANode::GetRight ( void  )
inline

Definition at line 121 of file CLAShower_BDTA.class.C.

References fRight, and GoesLeft().

Referenced by ReadBDTA::GetMvaValue__(), and ReadBDTA::NormVariable().

121 {return fRight; };
BDTANode * fRight
virtual bool BDTANode::GoesLeft ( const std::vector< double > &  inputValues) const
virtual
bool BDTANode::GoesLeft ( const std::vector< double > &  inputValues) const
virtual

Definition at line 164 of file CLAShower_BDTA.class.C.

References GoesRight().

Referenced by GetResponse(), and GetRight().

165 {
166  // test event if it decends the tree at this node to the left
167  if (!this->GoesRight(inputValues)) return true;
168  else return false;
169 }
virtual bool GoesRight(const std::vector< double > &inputValues) const
bool BDTANode::GoesRight ( const std::vector< double > &  inputValues) const
virtual

Definition at line 154 of file CLAShower_BDTA.class.C.

References fCutType, fCutValue, fSelector, and fillBadChanDBTables::result.

Referenced by BDTANode(), ReadBDTA::GetMvaValue__(), GetResponse(), GoesLeft(), and ReadBDTA::NormVariable().

155 {
156  // test event if it decends the tree at this node to the right
157  bool result;
158  result = (inputValues[fSelector] > fCutValue );
159  if (fCutType == true) return result; //the cuts are selecting Signal ;
160  else return !result;
161 }
virtual bool BDTANode::GoesRight ( const std::vector< double > &  inputValues) const
virtual

Member Data Documentation

bool BDTANode::fCutType
private

Definition at line 140 of file CLAShower_BDTA.class.C.

Referenced by GetResponse(), and GoesRight().

double BDTANode::fCutValue
private

Definition at line 139 of file CLAShower_BDTA.class.C.

Referenced by GetResponse(), and GoesRight().

BDTANode * BDTANode::fLeft
private

Definition at line 136 of file CLAShower_BDTA.class.C.

Referenced by GetLeft(), GetResponse(), and ~BDTANode().

int BDTANode::fNodeType
private

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

Referenced by GetNodeType(), and GetResponse().

double BDTANode::fPurity
private

Definition at line 142 of file CLAShower_BDTA.class.C.

Referenced by GetPurity(), and GetResponse().

double BDTANode::fResponse
private

Definition at line 143 of file CLAShower_BDTA.class.C.

Referenced by GetResponse().

BDTANode * BDTANode::fRight
private

Definition at line 137 of file CLAShower_BDTA.class.C.

Referenced by GetResponse(), GetRight(), and ~BDTANode().

int BDTANode::fSelector
private

Definition at line 138 of file CLAShower_BDTA.class.C.

Referenced by GetResponse(), and GoesRight().


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