class TMVA::Event


 Event

 Storage class for an event. It is used by all TMVA methods
 during the training. Events are collected in Dataset


Function Members (Methods)

public:
~Event()
~Event()
vector<TBranch*>&Branches()
voidCopyVarValues(const TMVA::Event& other)
TMVA::EventEvent()
TMVA::EventEvent(const TMVA::Event&)
TMVA::EventEvent(const TMVA::Event&)
TMVA::EventEvent(const vector<TMVA::VariableInfo>&, Bool_t AllowExternalLinks = kTRUE)
TMVA::EventEvent(const TMVA::kNN::VarVec& vec, Double_t weight, Short_t type)
Float_tGetBoostWeight() const
TMVA::kNN::VarTypeGetDist(const TMVA::Event& other) const
TMVA::kNN::VarTypeGetDist(TMVA::kNN::VarType var, UInt_t ivar) const
TMVA::kNN::VarTypeGetDist(const TMVA::kNN::VarType var1, const UInt_t ivar) const
void*GetExternalLink(UInt_t ivar) const
UInt_tGetNVar() const
UInt_tGetNVars() const
Short_tGetType() const
Float_tGetVal(UInt_t ivar) const
Float_tGetValFloat(UInt_t ivar) const
Float_tGetValueNormalized(UInt_t ivar) const
TMVA::kNN::VarTypeGetVar(UInt_t i) const
TMVA::kNN::VarTypeGetVar(const UInt_t i) const
Char_tGetVarType(UInt_t ivar) const
Float_tGetWeight() const
Double_tGetWeight() const
Bool_tIsFloat(UInt_t ivar) const
Bool_tIsInt(UInt_t ivar) const
Bool_tIsSignal() const
TMVA::Event&operator=(const TMVA::Event&)
voidPrint() const
voidPrint(ostream& o) const
voidPrint(ostream& os) const
voidSetBoostWeight(Float_t w)
voidSetBranchAddresses(TTree* tr)
voidSetType(Int_t t)
voidSetType(TMVA::Types::ESBType t)
voidSetVal(UInt_t ivar, Float_t val)
voidSetValFloatNoCheck(UInt_t ivar, Float_t val)
voidSetWeight(Float_t w)
Int_tType() const
private:
voidInitPointers(bool AllowExternalLink = kTRUE)

Data Members

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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Event(const vector<TMVA::VariableInfo>& , Bool_t AllowExternalLinks = kTRUE)
 constructor
Event( const Event& event )
 copy constructor
~Event()
 Event destructor
void InitPointers(bool AllowExternalLink = kTRUE)
 sets the links of fVarPtr to the internal arrays that hold the
 integer and float variables
void SetBranchAddresses(TTree* tr)
 sets the branch addresses of the associated
 tree to the local memory as given by fVarPtr
void CopyVarValues(const TMVA::Event& other)
 copies only the variable values
void SetVal(UInt_t ivar, Float_t val)
 set variable ivar to val
Float_t GetVal(UInt_t ivar) const
 return value of variable ivar
Float_t GetValueNormalized(UInt_t ivar) const
 returns the value of variable ivar, normalized to [-1,1]
void Print(std::ostream& o)
 print method
Event(const vector<TMVA::VariableInfo>& , Bool_t AllowExternalLinks = kTRUE)
Event( const Event& )
~Event()
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 SetType(Types::ESBType t)
{ fType=(t==Types::kSignal)?1:0; }
void SetValFloatNoCheck(UInt_t ivar, Float_t val)
{ *((Float_t*)fVarPtr[ivar]) = val; }
Char_t GetVarType(UInt_t ivar) const
{ return fVariables[ivar].GetVarType(); }
Bool_t IsInt(UInt_t ivar) const
{ return (fVariables[ivar].GetVarType()=='I'); }
Bool_t IsFloat(UInt_t ivar) const
{ return (fVariables[ivar].GetVarType()=='F'); }
Float_t GetValFloat(UInt_t ivar) const
{ return *((Float_t*)fVarPtr[ivar]); }
UInt_t GetNVars()
{ return fVariables.size(); }
void* GetExternalLink(UInt_t ivar) const
{ return fVariables[ivar].GetExternalLink(); }
void Print(std::ostream & o)

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
Last change: root/tmva $Id: Event.h 21630 2008-01-10 19:40:44Z brun $
Last generated: 2008-06-25 08:48
Copyright (c) 2005: *

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.