library: libTMVA
#include "Event.h"

TMVA::Event


class description - header file
viewCVS header

class TMVA::Event

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
~Event()
vector<TBranch*>&Branches()
voidCopyVarValues(const TMVA::Event& other)
TMVA::EventEvent(const vector<TMVA::VariableInfo>&)
TMVA::EventEvent(const TMVA::Event&)
Float_tGetBoostWeight() const
UInt_tGetNVars() const
Float_tGetVal(Int_t ivar) const
Float_tGetValFloat(Int_t ivar) const
Int_tGetValInt(Int_t ivar) const
Float_tGetValueNormalized(Int_t ivar) const
Float_tGetWeight() const
Bool_tIsFloat(Int_t ivar) const
Bool_tIsInt(Int_t ivar) const
Bool_tIsSignal() const
voidPrint(ostream& o) const
voidSetBoostWeight(Float_t w)
voidSetBranchAddresses(TTree* tr)
voidSetType(Int_t t)
voidSetVal(UInt_t ivar, Float_t val)
voidSetWeight(Float_t w)
Int_tType() const
Char_tVarType(Int_t ivar) const
private:
voidInitPointers(bool AllowExternalLink = kTRUE)

Data Members

private:
const vector<TMVA::VariableInfo>&fVariablesthe variables
void**fVarPtrarray containing values
Int_t*fVarPtrIinteger value
Float_t*fVarPtrFfloat value
Int_tfTypesignal or background type
Float_tfWeightevent weight (product of global and individual weights)
Float_tfBoostWeightinternal weight to be set by boosting algorithm
UInt_tfCountIthe number of Integer variables
UInt_tfCountFthe number of Float variables
vector<TBranch*>fBranchesTTree branches
TMVA::MsgLoggerfLoggermessage logger
static Int_tfgCountcount instances of Event

Class Description

Event( const std::vector<TMVA::VariableInfo>& )
Event( const Event& )
~Event()
{ fgCount--; }
void SetBranchAddresses(TTree* tr)
std::vector<TBranch*>& Branches()
{ return fBranches; }
Bool_t IsSignal()
{ return (fType==1); }
Float_t GetWeight()
{ return fWeight*fBoostWeight; }
Float_t GetBoostWeight()
{ return fBoostWeight; }
Int_t Type()
{ return fType; }
void SetWeight(Float_t w)
{ fWeight=w; }
void SetBoostWeight(Float_t w)
{ fBoostWeight=w; }
void SetType(Int_t t)
{ fType=t; }
void SetVal(UInt_t ivar, Float_t val)
void CopyVarValues( const Event& other )
Char_t VarType(Int_t ivar)
{ return fVariables[ivar].VarType(); }
Bool_t IsInt(Int_t ivar)
{ return (fVariables[ivar].VarType()=='I'); }
Bool_t IsFloat(Int_t ivar)
{ return (fVariables[ivar].VarType()=='F'); }
Float_t GetVal(Int_t ivar)
{ return *((Float_t*)fVarPtr[ivar]); }
Float_t GetValFloat(Int_t ivar)
{ return *((Float_t*)fVarPtr[ivar]); }
Int_t GetValInt(Int_t ivar)
{ return *((Int_t*)fVarPtr[ivar]); }
UInt_t GetNVars()
{ return fVariables.size(); }
Float_t GetValueNormalized(Int_t ivar)
void Print(std::ostream & o)
void InitPointers(bool AllowExternalLink = kTRUE)

Last update: Tue Nov 21 09:28:11 2006


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.