ROOT
6.06/09
Reference Guide
|
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>
TMVA::DataInputHandler::DataInputHandler | ( | ) |
constructor
Definition at line 44 of file DataInputHandler.cxx.
TMVA::DataInputHandler::~DataInputHandler | ( | ) |
destructor
Definition at line 53 of file DataInputHandler.cxx.
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.
Definition at line 113 of file DataInputHandler.h.
|
inline |
Definition at line 119 of file DataInputHandler.h.
|
inline |
Definition at line 115 of file DataInputHandler.h.
Referenced by Bbegin(), TMVA::DataSetFactory::BuildEventVector(), and Sbegin().
|
inline |
Definition at line 120 of file DataInputHandler.h.
|
inline |
Definition at line 124 of file DataInputHandler.h.
|
inline |
Definition at line 123 of file DataInputHandler.h.
Definition at line 174 of file DataInputHandler.cxx.
Referenced by ClearBackgroundTreeList(), and ClearSignalTreeList().
|
inline |
Definition at line 116 of file DataInputHandler.h.
Referenced by Bend(), TMVA::DataSetFactory::BuildEventVector(), and Send().
|
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().
Definition at line 104 of file DataInputHandler.h.
Referenced by TMVA::DataSetFactory::BuildEventVector(), TMVA::DataSetFactory::BuildInitialDataSet(), and GetEntries().
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().
return number of entries in tree
Definition at line 198 of file DataInputHandler.cxx.
|
inline |
Definition at line 108 of file DataInputHandler.h.
|
inline |
Definition at line 107 of file DataInputHandler.h.
Definition at line 105 of file DataInputHandler.h.
|
inline |
Definition at line 109 of file DataInputHandler.h.
|
inlineprivate |
Definition at line 136 of file DataInputHandler.h.
create trees from these ascii files
Definition at line 145 of file DataInputHandler.cxx.
|
inline |
Definition at line 117 of file DataInputHandler.h.
Definition at line 118 of file DataInputHandler.h.
Definition at line 112 of file DataInputHandler.h.
|
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().
Definition at line 133 of file DataInputHandler.h.
Referenced by BackgroundTreeInfo(), begin(), end(), GetBackgroundEntries(), GetEntries(), GetNBackgroundTrees(), GetNSignalTrees(), GetNTrees(), GetSignalEntries(), and SignalTreeInfo().
|
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().