class TMVA::VariableTransformBase: public TObject


Base class for input variable transformations. Implementations are

TMVA::VariableIdentityTransform
TMVA::VariableDecorrTransform
TMVA::VariablePCATransform


Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~VariableTransformBase()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidApplyTransformation(TMVA::Types::ESBType type = Types::kMaxSBType) const
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
voidCreateEvent() const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tFindVar(const TString& var) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual TMVA::Event&GetEvent() const
TMVA::Event&GetEventRaw() const
virtual const char*TObject::GetIconName() const
virtual const char*GetName() const
UInt_tGetNVariables() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual vector<TString>*GetTransformationStrings(TMVA::Types::ESBType type = Types::kMaxSBType) const
virtual UInt_tTObject::GetUniqueID() const
TMVA::Ranking*GetVariableRanking() const
TMVA::Types::EVariableTransformGetVariableTransform() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tIsCreated() const
Bool_tIsEnabled() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsNormalised() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
virtual voidMakeFunction(ostream& fout, const TString& fncName, Int_t part)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
voidPlotVariables(TTree* theTree)
virtual voidTObject::Pop()
virtual Bool_tPrepareTransformation(TTree* inputTree)
virtual voidTObject::Print(Option_t* option = "") const
virtual voidPrintTransformation(ostream&)
voidPrintVariableRanking() const
virtual Int_tTObject::Read(const char* name)
Bool_tReadEvent(TTree* tr, UInt_t evidx, TMVA::Types::ESBType type) const
virtual voidReadTransformationFromStream(istream& istr)
voidReadVarsFromStream(istream& istr)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEnabled(Bool_t e)
voidSetNormalise(Bool_t n)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRootOutputBaseDir(TDirectory* dir)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUseSignalTransform(Bool_t e = kTRUE)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
const TMVA::VariableInfo&Variable(Int_t ivar) const
TMVA::VariableInfo&Variable(Int_t ivar)
const TMVA::VariableInfo&Variable(const TString& var) const
TMVA::VariableInfo&Variable(const TString& var)
const vector<TMVA::VariableInfo>&Variables() const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidWriteTransformationToStream(ostream& o) const
voidWriteVarsToStream(ostream& o, const TString& prefix = "") const
protected:
voidCalcNorm(TTree*)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TDirectory*GetOutputBaseDir() const
voidTObject::MakeZombie()
voidResetBranchAddresses(TTree* tree) const
voidSetCreated(Bool_t c = kTRUE)
voidSetName(const TString& c)
private:
voidUpdateNorm(Int_t ivar, Double_t x)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TMVA::Event*fEventthis is the event
TMVA::Event*fEventRawthis is the untransformed event
TMVA::MsgLoggerfLoggermessage logger
Bool_tfUseSignalTransformtrue if transformation bases on signal data
private:
Bool_tfCreatedhas been created
Size_tfCurrentEvtIdxcurrent event index
TTree*fCurrentTreepointer to tree
Bool_tfEnabledhas been enabled
Bool_tfNormalisenormalise input variables
TDirectory*fOutputBaseDirdirectory
TMVA::Ranking*fRankingranking object
TStringfTransformName
TMVA::Types::EVariableTransformfVariableTransformDecorrelation, PCA, etc.
vector<TMVA::VariableInfo>fVariablesevent variables [saved to weight file]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

~VariableTransformBase()
 destructor
void ResetBranchAddresses(TTree* tree) const
 reset the trees branch addresses and have them point to the event
void CreateEvent()
 the fEvent is used to hold the event after the
 transformation. It should not hold any connections to the
 outside world, all its Variables shold be stored locally, and
 the external link pointers should be 0 [creating the event from
 the fVariables list, does not always guarantie that, so it has
 to be explicitely ensured]

 in addition all variables need to be float
Bool_t ReadEvent(TTree* tr, UInt_t evidx, TMVA::Types::ESBType type) const
 read event from a tree into memory
 after the reading the event transformation is called
void UpdateNorm(Int_t ivar, Double_t x)
 update min and max of a given variable and a given transformation method
void CalcNorm(TTree* )
 method to calculate minimum, maximum, mean, and RMS for all
 variables used in the MVA
void PlotVariables(TTree* theTree)
 create histograms from the input variables
 - histograms for all input variables
 - scatter plots for all pairs of input variables
void PrintVariableRanking()
 prints ranking of input variables
void WriteVarsToStream(ostream& o, const TString& prefix = "") const
 write the list of variables (name, min, max) for a given data
 transformation method to the stream
void ReadVarsFromStream(istream& istr)
 Read the variables (name, min, max) for a given data
 transformation method from the stream. In the stream we only
 expect the limits which will be set
void ApplyTransformation(TMVA::Types::ESBType type = Types::kMaxSBType) const
Bool_t PrepareTransformation(TTree* inputTree)
void SetEnabled(Bool_t e)
 accessors
{ fEnabled = e; }
void SetNormalise(Bool_t n)
{ fNormalise = n; }
Bool_t IsEnabled()
{ return fEnabled; }
Bool_t IsCreated()
{ return fCreated; }
Bool_t IsNormalised()
{ return fNormalise; }
TMVA::Event& GetEvent()
TMVA::Event& GetEventRaw()
std::vector<TString>* GetTransformationStrings(TMVA::Types::ESBType type = Types::kMaxSBType) const
 provides string vector describing explicit transformation
void SetUseSignalTransform(Bool_t e = kTRUE)
{ fUseSignalTransform = e; }
const char* GetName()
{ return fTransformName; }
UInt_t GetNVariables()
{ return fVariables.size(); }
void SetRootOutputBaseDir(TDirectory* dir)
{ fOutputBaseDir = dir; }
const std::vector<TMVA::VariableInfo>& Variables()
{ return fVariables; }
Int_t FindVar(const TString& var) const
void WriteTransformationToStream(ostream& o) const
void ReadTransformationFromStream(istream& istr)
Ranking* GetVariableRanking()
 variable ranking
{ return fRanking; }
Types::EVariableTransform GetVariableTransform()
{ return fVariableTransform; }
void PrintTransformation(ostream& )
{}
void MakeFunction(ostream& fout, const TString& fncName, Int_t part)
 writer of function code
void SetCreated(Bool_t c = kTRUE)
{ fCreated = c; }
void SetName(const TString& c)
{ fTransformName = c; }
TDirectory* GetOutputBaseDir()
{ return fOutputBaseDir; }

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
Last change: root/tmva $Id: VariableTransformBase.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.