TMVA::DataInputHandler Class Reference

#include <DataInputHandler.h>

List of all members.

Public Member Functions

 DataInputHandler ()
 ~DataInputHandler ()
void AddSignalTree (TTree *tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddBackgroundTree (TTree *tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddSignalTree (const TString &tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddBackgroundTree (const TString &tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddInputTrees (TTree *inputTree, const TCut &SigCut, const TCut &BgCut)
void AddTree (TTree *tree, const TString &className, Double_t weight=1.0, const TCut &cut="", Types::ETreeType tt=Types::kMaxTreeType)
void AddTree (const TString &tr, const TString &className, Double_t weight=1.0, const TCut &cut="", Types::ETreeType tt=Types::kMaxTreeType)
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
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)
 DataInputHandler ()
 ~DataInputHandler ()
void AddSignalTree (TTree *tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddBackgroundTree (TTree *tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddSignalTree (const TString &tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddBackgroundTree (const TString &tr, Double_t weight=1.0, Types::ETreeType tt=Types::kMaxTreeType)
void AddInputTrees (TTree *inputTree, const TCut &SigCut, const TCut &BgCut)
void AddTree (TTree *tree, const TString &className, Double_t weight=1.0, const TCut &cut="", Types::ETreeType tt=Types::kMaxTreeType)
void AddTree (const TString &tr, const TString &className, Double_t weight=1.0, const TCut &cut="", Types::ETreeType tt=Types::kMaxTreeType)
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
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
TTreeReadInputTree (const TString &dataFile)
MsgLoggerLog () const
UInt_t GetEntries (const std::vector< TreeInfo > &tiV) const
TTreeReadInputTree (const TString &dataFile)
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)
MsgLoggerfLogger
 if set to true the user has specified training and testing data explicitly
std::map< TString, std::vector<
TreeInfo > > 
fInputTrees
MsgLoggerfLogger
 if set to true the user has specified training and testing data explicitly


Detailed Description

Definition at line 82 of file DataInputHandler.h.


Constructor & Destructor Documentation

TMVA::DataInputHandler::DataInputHandler (  ) 

Definition at line 42 of file DataInputHandler.cxx.

References fExplicitTrainTest, and kFALSE.

TMVA::DataInputHandler::~DataInputHandler (  ) 

Definition at line 50 of file DataInputHandler.cxx.

References fLogger.

TMVA::DataInputHandler::DataInputHandler (  ) 

TMVA::DataInputHandler::~DataInputHandler (  ) 


Member Function Documentation

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

Definition at line 104 of file DataInputHandler.cxx.

References AddTree().

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

Definition at line 110 of file DataInputHandler.cxx.

References AddTree().

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

Definition at line 116 of file DataInputHandler.cxx.

References AddTree(), ReadInputTree(), and TTree::SetName().

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

Definition at line 125 of file DataInputHandler.cxx.

References AddTree(), ReadInputTree(), and TTree::SetName().

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

Definition at line 150 of file DataInputHandler.cxx.

References AddTree(), Endl, TMVA::kFATAL, and Log().

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

Definition at line 72 of file DataInputHandler.cxx.

References TTree::CopyTree(), TString::Data(), Endl, fExplicitTrainTest, fInputTrees, TTree::GetEntries(), TNamed::GetName(), TNamed::GetTitle(), TMVA::kFATAL, TMVA::Types::kMaxTreeType, and Log().

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

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

Definition at line 58 of file DataInputHandler.cxx.

References AddTree(), ReadInputTree(), and TTree::SetName().

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

Definition at line 174 of file DataInputHandler.cxx.

References fInputTrees.

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

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

Definition at line 104 of file DataInputHandler.h.

References fInputTrees, GetEntries(), and name.

Referenced by TMVA::DataSetFactory::BuildEventVector(), TMVA::DataSetFactory::BuildInitialDataSet(), and TMVA::Factory::TrainAllMethods().

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

Definition at line 105 of file DataInputHandler.h.

References fInputTrees, and name.

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

Definition at line 107 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 108 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 109 of file DataInputHandler.h.

References fInputTrees, and GetEntries().

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

Definition at line 110 of file DataInputHandler.h.

References fInputTrees, and GetEntries().

UInt_t TMVA::DataInputHandler::GetEntries (  )  const

Definition at line 195 of file DataInputHandler.cxx.

References fInputTrees, and number.

Referenced by GetBackgroundEntries(), GetEntries(), and GetSignalEntries().

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

Definition at line 112 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 113 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 115 of file DataInputHandler.h.

References fInputTrees.

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

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

Definition at line 116 of file DataInputHandler.h.

References fInputTrees.

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

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

Definition at line 117 of file DataInputHandler.h.

References begin().

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

Definition at line 118 of file DataInputHandler.h.

References end().

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

Definition at line 119 of file DataInputHandler.h.

References begin().

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

Definition at line 120 of file DataInputHandler.h.

References end().

void TMVA::DataInputHandler::ClearSignalTreeList (  )  [inline]

Definition at line 123 of file DataInputHandler.h.

References ClearTreeList().

void TMVA::DataInputHandler::ClearBackgroundTreeList (  )  [inline]

Definition at line 124 of file DataInputHandler.h.

References ClearTreeList().

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

Definition at line 163 of file DataInputHandler.cxx.

References Endl, fInputTrees, TMVA::kINFO, and Log().

Referenced by ClearBackgroundTreeList(), and ClearSignalTreeList().

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

Definition at line 184 of file DataInputHandler.cxx.

References entries.

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

Definition at line 134 of file DataInputHandler.cxx.

References Endl, TMVA::kFATAL, Log(), and TTree::ReadFile().

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

MsgLogger& TMVA::DataInputHandler::Log (  )  const [inline, private]

Definition at line 136 of file DataInputHandler.h.

References fLogger.

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

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

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

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

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

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

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

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

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

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

Definition at line 104 of file DataInputHandler.h.

References fInputTrees, GetEntries(), and name.

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

Definition at line 105 of file DataInputHandler.h.

References fInputTrees, and name.

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

Definition at line 107 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 108 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 109 of file DataInputHandler.h.

References fInputTrees, and GetEntries().

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

Definition at line 110 of file DataInputHandler.h.

References fInputTrees, and GetEntries().

UInt_t TMVA::DataInputHandler::GetEntries (  )  const

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

Definition at line 112 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 113 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 115 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 116 of file DataInputHandler.h.

References fInputTrees.

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

Definition at line 117 of file DataInputHandler.h.

References begin().

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

Definition at line 118 of file DataInputHandler.h.

References end().

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

Definition at line 119 of file DataInputHandler.h.

References begin().

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

Definition at line 120 of file DataInputHandler.h.

References end().

void TMVA::DataInputHandler::ClearSignalTreeList (  )  [inline]

Definition at line 123 of file DataInputHandler.h.

References ClearTreeList().

void TMVA::DataInputHandler::ClearBackgroundTreeList (  )  [inline]

Definition at line 124 of file DataInputHandler.h.

References ClearTreeList().

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

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

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

MsgLogger& TMVA::DataInputHandler::Log (  )  const [inline, private]

Definition at line 136 of file DataInputHandler.h.

References fLogger.


Member Data Documentation

std::map< TString, std::vector<TreeInfo> > TMVA::DataInputHandler::fInputTrees [mutable, private]

Definition at line 133 of file DataInputHandler.h.

Referenced by AddTree(), BackgroundTreeInfo(), begin(), ClearTreeList(), end(), GetBackgroundEntries(), GetClassList(), GetEntries(), GetNBackgroundTrees(), GetNSignalTrees(), GetNTrees(), GetSignalEntries(), and SignalTreeInfo().

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

MsgLogger* TMVA::DataInputHandler::fLogger [mutable, private]

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

Definition at line 135 of file DataInputHandler.h.

Referenced by Log(), and ~DataInputHandler().

std::map< TString, std::vector<TreeInfo> > TMVA::DataInputHandler::fInputTrees [mutable, private]

Definition at line 133 of file DataInputHandler.h.

MsgLogger* TMVA::DataInputHandler::fLogger [mutable, private]

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

Definition at line 135 of file DataInputHandler.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:23 2011 for ROOT_528-00b_version by  doxygen 1.5.1