#ifndef ROOT_TMVA_Reader
#define ROOT_TMVA_Reader
#include "TROOT.h"
#ifndef ROOT_TMVA_Types
#include "TMVA/Types.h"
#endif
#ifndef ROOT_TMVA_IMethod
#include "TMVA/IMethod.h"
#endif
#ifndef ROOT_TMVA_DataSet
#include "TMVA/DataSet.h"
#endif
#ifndef ROOT_TMVA_MsgLogger
#include "TMVA/MsgLogger.h"
#endif
#include <vector>
#include <map>
#include <string>
namespace TMVA {
class Reader : public TObject {
public:
Reader( Bool_t verbose = 0 );
Reader( std::vector<std::string>& varNames, Bool_t verbose = 0 );
Reader( const std::string varNames, Bool_t verbose = 0 );
Reader( std::vector<TString>& varNames, Bool_t verbose = 0 );
Reader( const TString varNames, Bool_t verbose = 0 );
virtual ~Reader( void );
IMethod* BookMVA( TString methodName, TString weightfile );
Double_t EvaluateMVA( const std::vector<Float_t>&, TString methodName, Double_t aux = 0 );
Double_t EvaluateMVA( const std::vector<Double_t>&, TString methodName, Double_t aux = 0 );
Double_t EvaluateMVA( IMethod* method, Double_t aux = 0 );
Double_t EvaluateMVA( TString methodName, Double_t aux = 0 );
Bool_t Verbose( void ) const { return fVerbose; }
void SetVerbose( Bool_t v ) { fVerbose = v; }
const DataSet& Data() const { return *fDataSet; }
DataSet& Data() { return *fDataSet; }
void AddVariable( const TString & expression, float * );
void AddVariable( const TString & expression, int * );
private:
IMethod* BookMVA( Types::EMVA method, TString weightfile );
DataSet * fDataSet;
void Init( void );
void DecodeVarNames( const std::string varNames );
void DecodeVarNames( const TString varNames );
Bool_t fVerbose;
std::map<TString, IMethod*> fMethodMap;
mutable MsgLogger fLogger;
ClassDef(Reader,0)
;
};
}
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.