29 #ifndef ROOT_TMVA_DataSetFactory 30 #define ROOT_TMVA_DataSetFactory 52 #ifndef ROOT_TTreeFormula 55 #ifndef ROOT_TMatrixDfwd 58 #ifndef ROOT_TPrincipal 65 #ifndef ROOT_TMVA_Types 68 #ifndef ROOT_TMVA_VariableInfo 71 #ifndef ROOT_TMVA_Event 79 class DataInputHandler;
118 template<
typename T >
130 template <
typename F>
143 template <
typename F>
150 template <
typename F,
typename G,
typename H>
152 typename H::argument_type,
153 typename F::result_type>
164 typename F::result_type
operator()(
const typename G::argument_type& argG,
165 const typename H::argument_type& argH)
const 167 return f(
g(argG),
h(argH));
171 template <
typename F,
typename G,
typename H>
179 template <
typename F,
typename G>
181 typename F::result_type>
191 typename F::result_type
operator()(
const typename G::argument_type& argG)
const 197 template <
typename F,
typename G>
230 nTrainingEventsRequested(0),
231 nTestingEventsRequested(0),
253 static void destroyInstance() {
if (fgInstance) {
delete fgInstance; fgInstance=0; } }
272 EventVectorOfClassesOfTreeType& eventsmap,
273 EvtStatsPerClass& eventCounts);
276 EventVectorOfClassesOfTreeType& eventsmap,
277 EvtStatsPerClass& eventCounts,
284 EventVectorOfClassesOfTreeType& eventsmap,
285 const EvtStatsPerClass& eventCounts,
289 EvtStatsPerClass& eventsmap,
302 void ResetBranchAndEventAddresses(
TTree* );
F operator()(const F &argF) const
std::vector< EventVector > EventVectorOfClasses
Random number generator class based on M.
static void destroyInstance()
UInt_t fCurrentEvtIdx
the tree, events are currently read from
std::vector< TTreeFormula * > fInputFormulas
the current event (to avoid reading of the same event)
std::vector< TTreeFormula * > fCutFormulas
targets
std::vector< Double_t > ValuePerClass
compose_unary_t< F, G > compose_unary(const F &_f, const G &_g)
compose_unary_t(const F &_f, const G &_g)
TTree * fCurrentTree
how to deal with requested #events in connection with preselection cuts
DeleteFunctor_t & operator()(const T *p)
compose_binary_t(const F &_f, const G &_g, const H &_h)
std::vector< int > NumberPerClass
Int_t nTestingEventsRequested
std::map< Types::ETreeType, EventVectorOfClasses > EventVectorOfClassesOfTreeType
MsgLogger & Log() const
message logger
std::vector< TTreeFormula * > fWeightFormula
cuts
TString fVerboseLevel
Verbosity.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
DeleteFunctor_t< const T > DeleteFunctor()
Bool_t fScaleWithPreselEff
VerboseLevel.
virtual void SetSeed(UInt_t seed=0)
Set the random generator sequence if seed is 0 (default value) a TUUID is generated and used to fill ...
std::vector< TTreeFormula * > fSpectatorFormulas
weights
UInt_t operator()(UInt_t n)
std::vector< TTreeFormula * > fTargetFormulas
input variables
std::vector< Event *> EventVector
static DataSetFactory * fgInstance
F::result_type operator()(const typename G::argument_type &argG) const
RandomGenerator(UInt_t seed)
MsgLogger * fLogger
spectators
compose_binary_t< F, G, H > compose_binary(const F &_f, const G &_g, const H &_h)
std::map< Types::ETreeType, EventVector > EventVectorOfTreeType
F::result_type operator()(const typename G::argument_type &argG, const typename H::argument_type &argH) const
static DataSetFactory * NewInstance()
Abstract ClassifierFactory template that handles arbitrary types.
std::vector< EventStats > EvtStatsPerClass
static DataSetFactory & Instance()
Int_t nTrainingEventsRequested
A TTree object has a header with a name and a title.
std::map< Types::ETreeType, ValuePerClass > ValuePerClassOfTreeType
Float_t cutScaling() const
static void destroyNewInstance(DataSetFactory *iOther)