ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::RuleCut Class Reference

Definition at line 36 of file RuleCut.h.

Public Member Functions

 RuleCut (const std::vector< const TMVA::Node * > &nodes)
 main constructor More...
 
 RuleCut (const RuleCut &other)
 
 RuleCut ()
 empty constructor More...
 
virtual ~RuleCut ()
 destructor More...
 
Bool_t EvalEvent (const Event &eve)
 
Bool_t GetCutRange (Int_t sel, Double_t &rmin, Double_t &rmax, Bool_t &dormin, Bool_t &dormax) const
 get cut range for a given selector More...
 
UInt_t GetNcuts () const
 get number of cuts More...
 
void SetNvars (UInt_t nc)
 
void SetNeve (Double_t n)
 
void SetPurity (Double_t ssb)
 
void SetSelector (Int_t i, UInt_t s)
 
void SetCutMin (Int_t i, Double_t v)
 
void SetCutMax (Int_t i, Double_t v)
 
void SetCutDoMin (Int_t i, Bool_t v)
 
void SetCutDoMax (Int_t i, Bool_t v)
 
UInt_t GetNvars () const
 
UInt_t GetSelector (Int_t is) const
 
Double_t GetCutMin (Int_t is) const
 
Double_t GetCutMax (Int_t is) const
 
Char_t GetCutDoMin (Int_t is) const
 
Char_t GetCutDoMax (Int_t is) const
 
Double_t GetCutNeve () const
 
Double_t GetPurity () const
 

Private Member Functions

void Copy (const RuleCut &other)
 
void MakeCuts (const std::vector< const TMVA::Node * > &nodes)
 Construct the cuts from the given array of nodes. More...
 
MsgLoggerLog () const
 

Private Attributes

std::vector< UInt_tfSelector
 
std::vector< Double_tfCutMin
 
std::vector< Double_tfCutMax
 
std::vector< Char_tfCutDoMin
 
std::vector< Char_tfCutDoMax
 
Double_t fCutNeve
 
Double_t fPurity
 
MsgLoggerfLogger
 

#include <TMVA/RuleCut.h>

Constructor & Destructor Documentation

TMVA::RuleCut::RuleCut ( const std::vector< const TMVA::Node * > &  nodes)

main constructor

Definition at line 34 of file RuleCut.cxx.

TMVA::RuleCut::RuleCut ( const RuleCut other)
inline

Definition at line 44 of file RuleCut.h.

TMVA::RuleCut::RuleCut ( )

empty constructor

Definition at line 45 of file RuleCut.cxx.

TMVA::RuleCut::~RuleCut ( )
virtual

destructor

Definition at line 55 of file RuleCut.cxx.

Member Function Documentation

void TMVA::RuleCut::Copy ( const RuleCut other)
inlineprivate

Definition at line 103 of file RuleCut.h.

Referenced by RuleCut().

Bool_t TMVA::RuleCut::EvalEvent ( const Event eve)
inline

Definition at line 120 of file RuleCut.h.

Referenced by TMVA::Rule::EvalEvent().

Char_t TMVA::RuleCut::GetCutDoMax ( Int_t  is) const
inline

Definition at line 77 of file RuleCut.h.

Referenced by Copy(), TMVA::MethodRuleFit::MakeClassRuleCuts(), and TMVA::Rule::RuleDist().

Char_t TMVA::RuleCut::GetCutDoMin ( Int_t  is) const
inline

Definition at line 76 of file RuleCut.h.

Referenced by Copy(), TMVA::MethodRuleFit::MakeClassRuleCuts(), and TMVA::Rule::RuleDist().

Double_t TMVA::RuleCut::GetCutMax ( Int_t  is) const
inline

Definition at line 75 of file RuleCut.h.

Referenced by Copy(), TMVA::MethodRuleFit::MakeClassRuleCuts(), and TMVA::Rule::RuleDist().

Double_t TMVA::RuleCut::GetCutMin ( Int_t  is) const
inline

Definition at line 74 of file RuleCut.h.

Referenced by Copy(), TMVA::MethodRuleFit::MakeClassRuleCuts(), and TMVA::Rule::RuleDist().

Double_t TMVA::RuleCut::GetCutNeve ( ) const
inline

Definition at line 78 of file RuleCut.h.

Referenced by Copy(), and TMVA::Rule::Rule().

Bool_t TMVA::RuleCut::GetCutRange ( Int_t  sel,
Double_t rmin,
Double_t rmax,
Bool_t dormin,
Bool_t dormax 
) const

get cut range for a given selector

Definition at line 170 of file RuleCut.cxx.

Referenced by TMVA::RuleFit::FillCorr(), and TMVA::RuleFit::FillCut().

UInt_t TMVA::RuleCut::GetNcuts ( ) const

get number of cuts

Definition at line 158 of file RuleCut.cxx.

Referenced by TMVA::Rule::GetNcuts(), and TMVA::MethodRuleFit::TrainTMVARuleFit().

UInt_t TMVA::RuleCut::GetNvars ( ) const
inline
Double_t TMVA::RuleCut::GetPurity ( void  ) const
inline

Definition at line 79 of file RuleCut.h.

Referenced by Copy(), and TMVA::Rule::Rule().

UInt_t TMVA::RuleCut::GetSelector ( Int_t  is) const
inline

Definition at line 73 of file RuleCut.h.

Referenced by Copy(), TMVA::MethodRuleFit::MakeClassRuleCuts(), and TMVA::Rule::RuleDist().

MsgLogger& TMVA::RuleCut::Log ( ) const
inlineprivate

Definition at line 98 of file RuleCut.h.

void TMVA::RuleCut::MakeCuts ( const std::vector< const TMVA::Node * > &  nodes)
private

Construct the cuts from the given array of nodes.

Definition at line 63 of file RuleCut.cxx.

Referenced by RuleCut().

void TMVA::RuleCut::SetCutDoMax ( Int_t  i,
Bool_t  v 
)
inline

Definition at line 69 of file RuleCut.h.

Referenced by TMVA::RuleFitAPI::ReadModelSum().

void TMVA::RuleCut::SetCutDoMin ( Int_t  i,
Bool_t  v 
)
inline

Definition at line 68 of file RuleCut.h.

Referenced by TMVA::RuleFitAPI::ReadModelSum().

void TMVA::RuleCut::SetCutMax ( Int_t  i,
Double_t  v 
)
inline

Definition at line 67 of file RuleCut.h.

Referenced by TMVA::RuleFitAPI::ReadModelSum().

void TMVA::RuleCut::SetCutMin ( Int_t  i,
Double_t  v 
)
inline

Definition at line 66 of file RuleCut.h.

Referenced by TMVA::RuleFitAPI::ReadModelSum().

void TMVA::RuleCut::SetNeve ( Double_t  n)
inline

Definition at line 63 of file RuleCut.h.

void TMVA::RuleCut::SetNvars ( UInt_t  nc)
inline

Definition at line 143 of file RuleCut.h.

Referenced by TMVA::RuleFitAPI::ReadModelSum().

void TMVA::RuleCut::SetPurity ( Double_t  ssb)
inline

Definition at line 64 of file RuleCut.h.

void TMVA::RuleCut::SetSelector ( Int_t  i,
UInt_t  s 
)
inline

Definition at line 65 of file RuleCut.h.

Referenced by TMVA::RuleFitAPI::ReadModelSum().

Member Data Documentation

std::vector<Char_t> TMVA::RuleCut::fCutDoMax
private

Definition at line 92 of file RuleCut.h.

Referenced by Copy(), GetCutDoMax(), and SetCutDoMax().

std::vector<Char_t> TMVA::RuleCut::fCutDoMin
private

Definition at line 91 of file RuleCut.h.

Referenced by Copy(), GetCutDoMin(), and SetCutDoMin().

std::vector<Double_t> TMVA::RuleCut::fCutMax
private

Definition at line 90 of file RuleCut.h.

Referenced by Copy(), GetCutMax(), and SetCutMax().

std::vector<Double_t> TMVA::RuleCut::fCutMin
private

Definition at line 89 of file RuleCut.h.

Referenced by Copy(), GetCutMin(), and SetCutMin().

Double_t TMVA::RuleCut::fCutNeve
private

Definition at line 93 of file RuleCut.h.

Referenced by Copy(), GetCutNeve(), and SetNeve().

MsgLogger* TMVA::RuleCut::fLogger
mutableprivate

Definition at line 97 of file RuleCut.h.

Referenced by Log().

Double_t TMVA::RuleCut::fPurity
private

Definition at line 94 of file RuleCut.h.

Referenced by Copy(), GetPurity(), and SetPurity().

std::vector<UInt_t> TMVA::RuleCut::fSelector
private

Definition at line 88 of file RuleCut.h.

Referenced by Copy(), GetNvars(), GetSelector(), and SetSelector().

Collaboration diagram for TMVA::RuleCut:
[legend]

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