ROOT  6.06/08
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::DataInputHandler Class Reference

Definition at line 82 of file DataInputHandler.h.

Public Member Functions

 DataInputHandler ()
 constructor More...
 
 ~DataInputHandler ()
 destructor More...
 
void AddSignalTree (TTree *tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
 add a signal tree to the dataset to be used as input More...
 
void AddBackgroundTree (TTree *tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
 add a background tree to the dataset to be used as input More...
 
void AddSignalTree (const TString &tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
 add a signal tree to the dataset to be used as input More...
 
void AddBackgroundTree (const TString &tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
 add a background tree to the dataset to be used as input More...
 
void AddInputTrees (TTree *inputTree, const TCut &SigCut, const TCut &BgCut)
 define the input trees for signal and background from single input tree, containing both signal and background events distinguished by the type identifiers: SigCut and BgCut More...
 
void AddTree (TTree *tree, const TString &className, Double_t weight=1.0, const TCut &cut="", Types::ETreeType tt=Types::kMaxTreeType)
 add tree of className events for tt (Training;Testing..) type as input .. More...
 
void AddTree (const TString &tr, const TString &className, Double_t weight=1.0, const TCut &cut="", Types::ETreeType tt=Types::kMaxTreeType)
 add a className tree to the dataset to be used as input More...
 
std::vector< TString > * GetClassList () const
 
UInt_t GetEntries (const TString &name) const
 
UInt_t GetNTrees (const TString &name) const
 
UInt_t GetNSignalTrees () const
 
UInt_t GetNBackgroundTrees () const
 
UInt_t GetSignalEntries () const
 
UInt_t GetBackgroundEntries () const
 
UInt_t GetEntries () const
 return number of entries in tree More...
 
const TreeInfo & SignalTreeInfo (Int_t i) const
 
const TreeInfo & BackgroundTreeInfo (Int_t i) const
 
std::vector< TreeInfo >::const_iterator begin (const TString &className) const
 
std::vector< TreeInfo >::const_iterator end (const TString &className) const
 
std::vector< TreeInfo >::const_iterator Sbegin () const
 
std::vector< TreeInfo >::const_iterator Send () const
 
std::vector< TreeInfo >::const_iterator Bbegin () const
 
std::vector< TreeInfo >::const_iterator Bend () const
 
void ClearSignalTreeList ()
 
void ClearBackgroundTreeList ()
 
void ClearTreeList (const TString &className)
 

Private Member Functions

UInt_t GetEntries (const std::vector< TreeInfo > &tiV) const
 return number of entries in tree More...
 
TTree * ReadInputTree (const TString &dataFile)
 create trees from these ascii files More...
 
MsgLogger & Log () const
 

Private Attributes

std::map< TString, std::vector< TreeInfo > > fInputTrees
 
std::map< std::string, Bool_t > fExplicitTrainTest
 list of input trees per class (classname is given as first parameter in the map) More...
 
MsgLogger * fLogger
 if set to true the user has specified training and testing data explicitly More...
 

#include <TMVA/DataInputHandler.h>

+ Collaboration diagram for TMVA::DataInputHandler:

Constructor & Destructor Documentation

§ DataInputHandler()

TMVA::DataInputHandler::DataInputHandler ( )

constructor

Definition at line 44 of file DataInputHandler.cxx.

§ ~DataInputHandler()

TMVA::DataInputHandler::~DataInputHandler ( )

destructor

Definition at line 53 of file DataInputHandler.cxx.

Member Function Documentation

§ AddBackgroundTree() [1/2]

void TMVA::DataInputHandler::AddBackgroundTree ( TTree *  tr,
Double_t  weight = 1.0,
Types::ETreeType  tt = Types::kMaxTreeType 
)

add a background tree to the dataset to be used as input

Definition at line 117 of file DataInputHandler.cxx.

§ AddBackgroundTree() [2/2]

void TMVA::DataInputHandler::AddBackgroundTree ( const TString &  tr,
Double_t  weight = 1.0,
Types::ETreeType  tt = Types::kMaxTreeType 
)

add a background tree to the dataset to be used as input

Definition at line 135 of file DataInputHandler.cxx.

§ AddInputTrees()

void TMVA::DataInputHandler::AddInputTrees ( TTree *  inputTree,
const TCut &  SigCut,
const TCut &  BgCut 
)

define the input trees for signal and background from single input tree, containing both signal and background events distinguished by the type identifiers: SigCut and BgCut

Definition at line 163 of file DataInputHandler.cxx.

§ AddSignalTree() [1/2]

void TMVA::DataInputHandler::AddSignalTree ( TTree *  tr,
Double_t  weight = 1.0,
Types::ETreeType  tt = Types::kMaxTreeType 
)

add a signal tree to the dataset to be used as input

Definition at line 109 of file DataInputHandler.cxx.

§ AddSignalTree() [2/2]

void TMVA::DataInputHandler::AddSignalTree ( const TString &  tr,
Double_t  weight = 1.0,
Types::ETreeType  tt = Types::kMaxTreeType 
)

add a signal tree to the dataset to be used as input

Definition at line 125 of file DataInputHandler.cxx.

§ AddTree() [1/2]

void TMVA::DataInputHandler::AddTree ( TTree *  tree,
const TString &  className,
Double_t  weight = 1.0,
const TCut &  cut = "",
Types::ETreeType  tt = Types::kMaxTreeType 
)

add tree of className events for tt (Training;Testing..) type as input ..

Definition at line 75 of file DataInputHandler.cxx.

Referenced by AddBackgroundTree(), AddInputTrees(), AddSignalTree(), AddTree(), TMVA::Factory::AddTree(), and TMVA::Factory::SetInputTrees().

§ AddTree() [2/2]

void TMVA::DataInputHandler::AddTree ( const TString &  tr,
const TString &  className,
Double_t  weight = 1.0,
const TCut &  cut = "",
Types::ETreeType  tt = Types::kMaxTreeType 
)

add a className tree to the dataset to be used as input

Definition at line 61 of file DataInputHandler.cxx.

§ BackgroundTreeInfo()

const TreeInfo& TMVA::DataInputHandler::BackgroundTreeInfo ( Int_t  i) const
inline

Definition at line 113 of file DataInputHandler.h.

§ Bbegin()

std::vector<TreeInfo>::const_iterator TMVA::DataInputHandler::Bbegin ( ) const
inline

Definition at line 119 of file DataInputHandler.h.

§ begin()

std::vector<TreeInfo>::const_iterator TMVA::DataInputHandler::begin ( const TString &  className) const
inline

Definition at line 115 of file DataInputHandler.h.

Referenced by TMVA::DataSetFactory::BuildEventVector().

§ Bend()

std::vector<TreeInfo>::const_iterator TMVA::DataInputHandler::Bend ( ) const
inline

Definition at line 120 of file DataInputHandler.h.

§ ClearBackgroundTreeList()

void TMVA::DataInputHandler::ClearBackgroundTreeList ( )
inline

Definition at line 124 of file DataInputHandler.h.

§ ClearSignalTreeList()

void TMVA::DataInputHandler::ClearSignalTreeList ( )
inline

Definition at line 123 of file DataInputHandler.h.

§ ClearTreeList()

void TMVA::DataInputHandler::ClearTreeList ( const TString &  className)

Definition at line 174 of file DataInputHandler.cxx.

§ end()

std::vector<TreeInfo>::const_iterator TMVA::DataInputHandler::end ( const TString &  className) const
inline

Definition at line 116 of file DataInputHandler.h.

Referenced by TMVA::DataSetFactory::BuildEventVector().

§ GetBackgroundEntries()

UInt_t TMVA::DataInputHandler::GetBackgroundEntries ( ) const
inline

Definition at line 110 of file DataInputHandler.h.

§ GetClassList()

std::vector< TString > * TMVA::DataInputHandler::GetClassList ( ) const

Definition at line 186 of file DataInputHandler.cxx.

Referenced by TMVA::DataSetFactory::BuildInitialDataSet().

§ GetEntries() [1/3]

UInt_t TMVA::DataInputHandler::GetEntries ( const TString &  name) const
inline

§ GetEntries() [2/3]

UInt_t TMVA::DataInputHandler::GetEntries ( ) const

return number of entries in tree

Definition at line 209 of file DataInputHandler.cxx.

§ GetEntries() [3/3]

UInt_t TMVA::DataInputHandler::GetEntries ( const std::vector< TreeInfo > &  tiV) const
private

return number of entries in tree

Definition at line 198 of file DataInputHandler.cxx.

§ GetNBackgroundTrees()

UInt_t TMVA::DataInputHandler::GetNBackgroundTrees ( ) const
inline

Definition at line 108 of file DataInputHandler.h.

§ GetNSignalTrees()

UInt_t TMVA::DataInputHandler::GetNSignalTrees ( ) const
inline

Definition at line 107 of file DataInputHandler.h.

§ GetNTrees()

UInt_t TMVA::DataInputHandler::GetNTrees ( const TString &  name) const
inline

Definition at line 105 of file DataInputHandler.h.

§ GetSignalEntries()

UInt_t TMVA::DataInputHandler::GetSignalEntries ( ) const
inline

Definition at line 109 of file DataInputHandler.h.

§ Log()

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

Definition at line 136 of file DataInputHandler.h.

Referenced by AddInputTrees(), AddTree(), ClearTreeList(), and ReadInputTree().

§ ReadInputTree()

TTree * TMVA::DataInputHandler::ReadInputTree ( const TString &  dataFile)
private

create trees from these ascii files

Definition at line 145 of file DataInputHandler.cxx.

Referenced by AddBackgroundTree(), AddSignalTree(), and AddTree().

§ Sbegin()

std::vector<TreeInfo>::const_iterator TMVA::DataInputHandler::Sbegin ( ) const
inline

Definition at line 117 of file DataInputHandler.h.

§ Send()

std::vector<TreeInfo>::const_iterator TMVA::DataInputHandler::Send ( void  ) const
inline

Definition at line 118 of file DataInputHandler.h.

§ SignalTreeInfo()

const TreeInfo& TMVA::DataInputHandler::SignalTreeInfo ( Int_t  i) const
inline

Definition at line 112 of file DataInputHandler.h.

Member Data Documentation

§ fExplicitTrainTest

std::map< std::string, Bool_t > TMVA::DataInputHandler::fExplicitTrainTest
private

list of input trees per class (classname is given as first parameter in the map)

Definition at line 134 of file DataInputHandler.h.

Referenced by AddTree(), and DataInputHandler().

§ fInputTrees

std::map< TString, std::vector<TreeInfo> > TMVA::DataInputHandler::fInputTrees
mutableprivate

Definition at line 133 of file DataInputHandler.h.

Referenced by AddTree(), ClearTreeList(), GetClassList(), and GetEntries().

§ fLogger

MsgLogger* TMVA::DataInputHandler::fLogger
mutableprivate

if set to true the user has specified training and testing data explicitly

Definition at line 135 of file DataInputHandler.h.

Referenced by ~DataInputHandler().


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