Logo ROOT   master
Reference Guide
TMVA::BDTEventWrapper Class Reference

Definition at line 31 of file BDTEventWrapper.h.

Public Member Functions

 BDTEventWrapper (const Event *)
 Constructor. More...
 
 ~BDTEventWrapper ()
 Destructor. More...
 
Double_t GetCumulativeWeight (Bool_t type) const
 Get the accumulated weight. More...
 
Double_t GetVal () const
 
Double_t GetVal (Int_t var) const
 
const Eventoperator* () const
 
Bool_t operator< (const BDTEventWrapper &other) const
 
void SetCumulativeWeight (Bool_t type, Double_t weight)
 Set the accumulated weight, for sorted signal/background events. More...
 

Static Public Member Functions

static void SetVarIndex (Int_t iVar)
 

Static Private Member Functions

static Int_tGetVarIndex ()
 

Private Attributes

Double_t fBkgWeight
 
const EventfEvent
 
Double_t fSigWeight
 

#include <TMVA/BDTEventWrapper.h>

Constructor & Destructor Documentation

◆ BDTEventWrapper()

BDTEventWrapper::BDTEventWrapper ( const Event e)

Constructor.

Definition at line 36 of file BDTEventWrapper.cxx.

◆ ~BDTEventWrapper()

BDTEventWrapper::~BDTEventWrapper ( )

Destructor.

Definition at line 45 of file BDTEventWrapper.cxx.

Member Function Documentation

◆ GetCumulativeWeight()

Double_t BDTEventWrapper::GetCumulativeWeight ( Bool_t  type) const

Get the accumulated weight.

Parameters
fType- true for signal, false for background
Returns
the cumulative weight for sorted signal/background events

Definition at line 64 of file BDTEventWrapper.cxx.

◆ GetVal() [1/2]

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

Definition at line 65 of file BDTEventWrapper.h.

◆ GetVal() [2/2]

Double_t TMVA::BDTEventWrapper::GetVal ( Int_t  var) const
inline

Definition at line 68 of file BDTEventWrapper.h.

◆ GetVarIndex()

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

Definition at line 73 of file BDTEventWrapper.h.

◆ operator*()

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

Definition at line 66 of file BDTEventWrapper.h.

◆ operator<()

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

Definition at line 82 of file BDTEventWrapper.h.

◆ SetCumulativeWeight()

void BDTEventWrapper::SetCumulativeWeight ( Bool_t  type,
Double_t  weight 
)

Set the accumulated weight, for sorted signal/background events.

Parameters
fType- true for signal, false for background
weight- the total weight

Definition at line 54 of file BDTEventWrapper.cxx.

◆ SetVarIndex()

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.

Member Data Documentation

◆ fBkgWeight

Double_t TMVA::BDTEventWrapper::fBkgWeight
private

Definition at line 77 of file BDTEventWrapper.h.

◆ fEvent

const Event* TMVA::BDTEventWrapper::fEvent
private

Definition at line 73 of file BDTEventWrapper.h.

◆ fSigWeight

Double_t TMVA::BDTEventWrapper::fSigWeight
private

Definition at line 78 of file BDTEventWrapper.h.

Libraries for TMVA::BDTEventWrapper:
[legend]

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