ROOT logo
ROOT » TMVA » TMVA::BDTEventWrapper

class TMVA::BDTEventWrapper

Function Members (Methods)

Data Members

private:
Double_tfBkgWeightcumulative background weight for splitting
const TMVA::Event*fEventpointer to the event
Double_tfSigWeightsame for the signal weights
static Int_tfVarIndexindex of the variable to sort on

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

BDTEventWrapper(const Event* e)
 constuctor
~BDTEventWrapper()
 destructor
void SetCumulativeWeight(Bool_t type, Double_t weight)
 Set the accumulated weight, for sorted signal/background events

    * @param fType - true for signal, false for background
    * @param weight - the total weight

Double_t GetCumulativeWeight(Bool_t type) const
 Get the accumulated weight
Bool_t operator<(const TMVA::BDTEventWrapper& other) const
BDTEventWrapper( const Event* )
void SetVarIndex(Int_t iVar)
 Set the index of the variable to compare on

       * @param iVar - index of the variable in fEvent to use

{ if (iVar >= 0) fVarIndex = iVar; }
Double_t GetVal() const
 Return the value of variable fVarIndex for this event

       * @return value of variable fVarIndex for this event

{ return fEvent->GetValue(fVarIndex); }
const Event* operator*() const
{ return fEvent; }