ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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 TreeInfoSignalTreeInfo (Int_t i) const
 
const TreeInfoBackgroundTreeInfo (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...
 
TTreeReadInputTree (const TString &dataFile)
 create trees from these ascii files More...
 
MsgLoggerLog () const
 

Private Attributes

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

#include <TMVA/DataInputHandler.h>

Constructor & Destructor Documentation

TMVA::DataInputHandler::DataInputHandler ( )

constructor

Definition at line 45 of file DataInputHandler.cxx.

TMVA::DataInputHandler::~DataInputHandler ( )

destructor

Definition at line 54 of file DataInputHandler.cxx.

Member Function Documentation

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 118 of file DataInputHandler.cxx.

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 136 of file DataInputHandler.cxx.

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 164 of file DataInputHandler.cxx.

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 110 of file DataInputHandler.cxx.

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 126 of file DataInputHandler.cxx.

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 76 of file DataInputHandler.cxx.

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 62 of file DataInputHandler.cxx.

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

Definition at line 113 of file DataInputHandler.h.

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

Definition at line 119 of file DataInputHandler.h.

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

Definition at line 115 of file DataInputHandler.h.

Referenced by Bbegin(), TMVA::DataSetFactory::BuildEventVector(), and Sbegin().

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

Definition at line 120 of file DataInputHandler.h.

void TMVA::DataInputHandler::ClearBackgroundTreeList ( )
inline

Definition at line 124 of file DataInputHandler.h.

void TMVA::DataInputHandler::ClearSignalTreeList ( )
inline

Definition at line 123 of file DataInputHandler.h.

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

Definition at line 175 of file DataInputHandler.cxx.

Referenced by ClearBackgroundTreeList(), and ClearSignalTreeList().

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

Definition at line 116 of file DataInputHandler.h.

Referenced by Bend(), TMVA::DataSetFactory::BuildEventVector(), and Send().

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

Definition at line 110 of file DataInputHandler.h.

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

Definition at line 187 of file DataInputHandler.cxx.

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

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

return number of entries in tree

Definition at line 210 of file DataInputHandler.cxx.

Referenced by GetBackgroundEntries(), and GetSignalEntries().

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

return number of entries in tree

Definition at line 199 of file DataInputHandler.cxx.

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

Definition at line 108 of file DataInputHandler.h.

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

Definition at line 107 of file DataInputHandler.h.

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

Definition at line 105 of file DataInputHandler.h.

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

Definition at line 109 of file DataInputHandler.h.

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

Definition at line 136 of file DataInputHandler.h.

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

create trees from these ascii files

Definition at line 146 of file DataInputHandler.cxx.

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

Definition at line 117 of file DataInputHandler.h.

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

Definition at line 118 of file DataInputHandler.h.

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

Definition at line 112 of file DataInputHandler.h.

Member Data Documentation

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 DataInputHandler().

std::map< TString, std::vector<TreeInfo> > TMVA::DataInputHandler::fInputTrees
mutableprivate
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 Log().

Collaboration diagram for TMVA::DataInputHandler:
[legend]

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