ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::TransformationHandler Class Reference

Definition at line 61 of file TransformationHandler.h.

Classes

struct  VariableStat
 

Public Member Functions

 TransformationHandler (DataSetInfo &, const TString &callerName)
 constructor More...
 
 ~TransformationHandler ()
 destructor More...
 
TString GetName () const
 return transformation name More...
 
TString GetVariableAxisTitle (const VariableInfo &info) const
 incorporates transformation type into title axis (usually for histograms) More...
 
const EventTransform (const Event *) const
 the transformation More...
 
const EventInverseTransform (const Event *, Bool_t suppressIfNoTargets=true) const
 
void SetTransformationReferenceClass (Int_t cls)
 overrides the setting for all classes! (this is put in basically for the likelihood-method) be careful with the usage this method More...
 
VariableTransformBaseAddTransformation (VariableTransformBase *, Int_t cls)
 
const TListGetTransformationList () const
 
Int_t GetNumOfTransformations () const
 
const std::vector< Event * > * CalcTransformations (const std::vector< Event * > &, Bool_t createNewVector=kFALSE)
 computation of transformation More...
 
void CalcStats (const std::vector< Event * > &events)
 
void AddStats (Int_t k, UInt_t ivar, Double_t mean, Double_t rms, Double_t min, Double_t max)
 
Double_t GetMean (Int_t ivar, Int_t cls=-1) const
 
Double_t GetRMS (Int_t ivar, Int_t cls=-1) const
 
Double_t GetMin (Int_t ivar, Int_t cls=-1) const
 
Double_t GetMax (Int_t ivar, Int_t cls=-1) const
 
void WriteToStream (std::ostream &o) const
 write transformatino to stream More...
 
void AddXMLTo (void *parent=0) const
 XML node describing the transformation return;. More...
 
void ReadFromStream (std::istream &istr)
 VariableTransformBase* trf = ((VariableTransformBase*)GetTransformationList().Last()); trf->ReadTransformationFromStream(fin);. More...
 
void ReadFromXML (void *trfsnode)
 
void MakeFunction (std::ostream &fout, const TString &fncName, Int_t part) const
 create transformation function More...
 
void PrintVariableRanking () const
 prints ranking of input variables More...
 
std::vector< TString > * GetTransformationStringsOfLastTransform () const
 returns string for transformation More...
 
const char * GetNameOfLastTransform () const
 returns string for transformation More...
 
void SetCallerName (const TString &name)
 
const TStringGetCallerName () const
 
TDirectoryGetRootDir () const
 
void SetRootDir (TDirectory *d)
 
void PlotVariables (const std::vector< Event * > &events, TDirectory *theDirectory=0)
 create histograms from the input variables More...
 

Private Member Functions

const TMVA::VariableInfoVariable (UInt_t ivar) const
 
const TMVA::VariableInfoTarget (UInt_t itgt) const
 
DataSetData ()
 
MsgLoggerLog () const
 message logger More...
 

Private Attributes

DataSetInfofDataSetInfo
 
TList fTransformations
 
std::vector< Int_tfTransformationsReferenceClasses
 list of transformations More...
 
std::vector< std::vector
< TMVA::TransformationHandler::VariableStat > > 
fVariableStats
 reference classes for the transformations More...
 
Int_t fNumC
 
std::vector< Ranking * > fRanking
 
TDirectoryfRootBaseDir
 ranking object More...
 
TString fCallerName
 if set put input var hists More...
 
MsgLoggerfLogger
 name of the caller for output More...
 

#include <TMVA/TransformationHandler.h>

Constructor & Destructor Documentation

TMVA::TransformationHandler::TransformationHandler ( DataSetInfo dsi,
const TString callerName 
)

constructor

Definition at line 62 of file TransformationHandler.cxx.

TMVA::TransformationHandler::~TransformationHandler ( )

destructor

Definition at line 79 of file TransformationHandler.cxx.

Member Function Documentation

void TMVA::TransformationHandler::AddStats ( Int_t  k,
UInt_t  ivar,
Double_t  mean,
Double_t  rms,
Double_t  min,
Double_t  max 
)

Definition at line 109 of file TransformationHandler.cxx.

TMVA::VariableTransformBase * TMVA::TransformationHandler::AddTransformation ( VariableTransformBase trf,
Int_t  cls 
)
void TMVA::TransformationHandler::AddXMLTo ( void parent = 0) const

XML node describing the transformation return;.

Definition at line 846 of file TransformationHandler.cxx.

void TMVA::TransformationHandler::CalcStats ( const std::vector< Event * > &  events)

Definition at line 239 of file TransformationHandler.cxx.

const std::vector< TMVA::Event * > * TMVA::TransformationHandler::CalcTransformations ( const std::vector< Event * > &  events,
Bool_t  createNewVector = kFALSE 
)

computation of transformation

Definition at line 195 of file TransformationHandler.cxx.

DataSet* TMVA::TransformationHandler::Data ( )
inlineprivate

Definition at line 130 of file TransformationHandler.h.

const TString& TMVA::TransformationHandler::GetCallerName ( ) const
inline

Definition at line 112 of file TransformationHandler.h.

Double_t TMVA::TransformationHandler::GetMax ( Int_t  ivar,
Int_t  cls = -1 
) const

Definition at line 978 of file TransformationHandler.cxx.

Referenced by TMVA::MethodBase::GetXmax().

Double_t TMVA::TransformationHandler::GetMean ( Int_t  ivar,
Int_t  cls = -1 
) const

Definition at line 920 of file TransformationHandler.cxx.

Referenced by TMVA::MethodBase::GetMean().

Double_t TMVA::TransformationHandler::GetMin ( Int_t  ivar,
Int_t  cls = -1 
) const

Definition at line 959 of file TransformationHandler.cxx.

Referenced by TMVA::MethodBase::GetXmin().

TString TMVA::TransformationHandler::GetName ( ) const

return transformation name

Definition at line 408 of file TransformationHandler.cxx.

const char * TMVA::TransformationHandler::GetNameOfLastTransform ( ) const

returns string for transformation

Definition at line 810 of file TransformationHandler.cxx.

Int_t TMVA::TransformationHandler::GetNumOfTransformations ( ) const
inline

Definition at line 85 of file TransformationHandler.h.

Double_t TMVA::TransformationHandler::GetRMS ( Int_t  ivar,
Int_t  cls = -1 
) const

Definition at line 940 of file TransformationHandler.cxx.

Referenced by TMVA::MethodBase::GetRMS().

TDirectory* TMVA::TransformationHandler::GetRootDir ( ) const
inline

Definition at line 115 of file TransformationHandler.h.

const TList& TMVA::TransformationHandler::GetTransformationList ( ) const
inline

Definition at line 84 of file TransformationHandler.h.

std::vector< TString > * TMVA::TransformationHandler::GetTransformationStringsOfLastTransform ( ) const

returns string for transformation

Definition at line 800 of file TransformationHandler.cxx.

TString TMVA::TransformationHandler::GetVariableAxisTitle ( const VariableInfo info) const

incorporates transformation type into title axis (usually for histograms)

Definition at line 423 of file TransformationHandler.cxx.

const TMVA::Event * TMVA::TransformationHandler::InverseTransform ( const Event ev,
Bool_t  suppressIfNoTargets = true 
) const

Definition at line 151 of file TransformationHandler.cxx.

MsgLogger& TMVA::TransformationHandler::Log ( ) const
inlineprivate

message logger

Definition at line 143 of file TransformationHandler.h.

void TMVA::TransformationHandler::MakeFunction ( std::ostream &  fout,
const TString fncName,
Int_t  part 
) const

create transformation function

Definition at line 371 of file TransformationHandler.cxx.

void TMVA::TransformationHandler::PlotVariables ( const std::vector< Event * > &  events,
TDirectory theDirectory = 0 
)

create histograms from the input variables

  • histograms for all input variables
  • scatter plots for all pairs of input variables

Definition at line 442 of file TransformationHandler.cxx.

void TMVA::TransformationHandler::PrintVariableRanking ( ) const

prints ranking of input variables

Definition at line 910 of file TransformationHandler.cxx.

Referenced by TMVA::Factory::WriteDataInformation().

void TMVA::TransformationHandler::ReadFromStream ( std::istream &  istr)

VariableTransformBase* trf = ((VariableTransformBase*)GetTransformationList().Last()); trf->ReadTransformationFromStream(fin);.

Definition at line 859 of file TransformationHandler.cxx.

void TMVA::TransformationHandler::ReadFromXML ( void trfsnode)

Definition at line 867 of file TransformationHandler.cxx.

void TMVA::TransformationHandler::SetCallerName ( const TString name)

Definition at line 90 of file TransformationHandler.cxx.

void TMVA::TransformationHandler::SetRootDir ( TDirectory d)
inline

Definition at line 116 of file TransformationHandler.h.

void TMVA::TransformationHandler::SetTransformationReferenceClass ( Int_t  cls)

overrides the setting for all classes! (this is put in basically for the likelihood-method) be careful with the usage this method

Definition at line 126 of file TransformationHandler.cxx.

const TMVA::VariableInfo& TMVA::TransformationHandler::Target ( UInt_t  itgt) const
inlineprivate

Definition at line 128 of file TransformationHandler.h.

const TMVA::Event * TMVA::TransformationHandler::Transform ( const Event ev) const

the transformation

Definition at line 136 of file TransformationHandler.cxx.

Referenced by TMVA::MethodBase::GetEvent().

const TMVA::VariableInfo& TMVA::TransformationHandler::Variable ( UInt_t  ivar) const
inlineprivate

Definition at line 127 of file TransformationHandler.h.

void TMVA::TransformationHandler::WriteToStream ( std::ostream &  o) const

write transformatino to stream

Definition at line 820 of file TransformationHandler.cxx.

Member Data Documentation

TString TMVA::TransformationHandler::fCallerName
private

if set put input var hists

Definition at line 141 of file TransformationHandler.h.

Referenced by GetCallerName().

DataSetInfo& TMVA::TransformationHandler::fDataSetInfo
private

Definition at line 132 of file TransformationHandler.h.

Referenced by Data(), Target(), and Variable().

MsgLogger* TMVA::TransformationHandler::fLogger
mutableprivate

name of the caller for output

Definition at line 142 of file TransformationHandler.h.

Referenced by Log().

Int_t TMVA::TransformationHandler::fNumC
private

Definition at line 137 of file TransformationHandler.h.

Referenced by TransformationHandler().

std::vector<Ranking*> TMVA::TransformationHandler::fRanking
private

Definition at line 139 of file TransformationHandler.h.

TDirectory* TMVA::TransformationHandler::fRootBaseDir
private

ranking object

Definition at line 140 of file TransformationHandler.h.

Referenced by GetRootDir(), and SetRootDir().

TList TMVA::TransformationHandler::fTransformations
private

Definition at line 133 of file TransformationHandler.h.

Referenced by GetNumOfTransformations(), and GetTransformationList().

std::vector< Int_t > TMVA::TransformationHandler::fTransformationsReferenceClasses
private

list of transformations

Definition at line 134 of file TransformationHandler.h.

std::vector<std::vector<TMVA::TransformationHandler::VariableStat> > TMVA::TransformationHandler::fVariableStats
private

reference classes for the transformations

Definition at line 135 of file TransformationHandler.h.

Referenced by TransformationHandler().

Collaboration diagram for TMVA::TransformationHandler:
[legend]

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