ROOT  6.06/09
Reference Guide
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
TMVA::BDTEventWrapper Class Reference

Definition at line 31 of file BDTEventWrapper.h.

Public Member Functions

 BDTEventWrapper (const Event *)
 
 ~BDTEventWrapper ()
 
Bool_t operator< (const BDTEventWrapper &other) const
 
void SetCumulativeWeight (Bool_t type, Double_t weight)
 
Double_t GetCumulativeWeight (Bool_t type) const
 
Double_t GetVal () const
 
const Eventoperator* () const
 

Static Public Member Functions

static void SetVarIndex (Int_t iVar)
 

Static Private Member Functions

static Int_tGetVarIndex ()
 

Private Attributes

const EventfEvent
 
Double_t fBkgWeight
 
Double_t fSigWeight
 

#include <TMVA/BDTEventWrapper.h>

+ Collaboration diagram for TMVA::BDTEventWrapper:

Constructor & Destructor Documentation

BDTEventWrapper::BDTEventWrapper ( const Event e)

Definition at line 29 of file BDTEventWrapper.cxx.

BDTEventWrapper::~BDTEventWrapper ( )

Definition at line 36 of file BDTEventWrapper.cxx.

Member Function Documentation

Double_t BDTEventWrapper::GetCumulativeWeight ( Bool_t  type) const
Parameters
fType- true for signal, false for background
Returns
the cumulative weight for sorted signal/background events

Definition at line 51 of file BDTEventWrapper.cxx.

Double_t TMVA::BDTEventWrapper::GetVal ( ) const
inline
Returns
value of variable fVarIndex for this event

Definition at line 65 of file BDTEventWrapper.h.

Referenced by operator<().

static Int_t& TMVA::BDTEventWrapper::GetVarIndex ( )
inlinestaticprivate

Definition at line 72 of file BDTEventWrapper.h.

Referenced by GetVal(), and SetVarIndex().

const Event* TMVA::BDTEventWrapper::operator* ( ) const
inline

Definition at line 66 of file BDTEventWrapper.h.

Bool_t TMVA::BDTEventWrapper::operator< ( const BDTEventWrapper other) const
inline

Definition at line 81 of file BDTEventWrapper.h.

void BDTEventWrapper::SetCumulativeWeight ( Bool_t  type,
Double_t  weight 
)
Parameters
fType- true for signal, false for background
weight- the total weight

Definition at line 40 of file BDTEventWrapper.cxx.

static void TMVA::BDTEventWrapper::SetVarIndex ( Int_t  iVar)
inlinestatic
Parameters
iVar- index of the variable in fEvent to use

Definition at line 59 of file BDTEventWrapper.h.

Referenced by TMVA::MethodBDT::DeterminePreselectionCuts(), and TMVA::DecisionTree::TrainNodeFull().

Member Data Documentation

Double_t TMVA::BDTEventWrapper::fBkgWeight
private

Definition at line 76 of file BDTEventWrapper.h.

Referenced by BDTEventWrapper(), GetCumulativeWeight(), and SetCumulativeWeight().

const Event* TMVA::BDTEventWrapper::fEvent
private

Definition at line 72 of file BDTEventWrapper.h.

Referenced by GetVal(), and operator*().

Double_t TMVA::BDTEventWrapper::fSigWeight
private

Definition at line 77 of file BDTEventWrapper.h.

Referenced by BDTEventWrapper(), GetCumulativeWeight(), and SetCumulativeWeight().


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