ROOT  6.06/09
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 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>

+ Collaboration diagram for TMVA::DataInputHandler:

Constructor & Destructor Documentation

TMVA::DataInputHandler::DataInputHandler ( )

constructor

Definition at line 44 of file DataInputHandler.cxx.

TMVA::DataInputHandler::~DataInputHandler ( )

destructor

Definition at line 53 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 117 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 135 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 163 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 109 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 125 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 75 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 61 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 174 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 186 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 209 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 198 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 145 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().


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