#ifndef ROOT_TMVA_Reader
#define ROOT_TMVA_Reader
#ifndef ROOT_TMVA_Types
#include "TMVA/Types.h"
#endif
#ifndef ROOT_TMVA_IMethod
#include "TMVA/MethodBase.h"
#endif
#ifndef ROOT_TMVA_DataSet
#include "TMVA/DataSet.h"
#endif
#ifndef ROOT_TMVA_MsgLogger
#include "TMVA/MsgLogger.h"
#endif
#ifndef ROOT_TMVA_Configurable
#include "TMVA/Configurable.h"
#endif
#include <vector>
#include <map>
#include <string>
namespace TMVA {
class Reader : public Configurable {
public:
Reader( TString theOption="", Bool_t verbose = 0 );
Reader( std::vector<std::string>& varNames, TString theOption = "", Bool_t verbose = 0 );
Reader( const std::string varNames, TString theOption, Bool_t verbose = 0 );
Reader( std::vector<TString>& varNames, TString theOption = "", Bool_t verbose = 0 );
Reader( const TString varNames, TString theOption, Bool_t verbose = 0 );
virtual ~Reader( void );
IMethod* BookMVA( const TString& methodTag, const TString& weightfile );
IMethod* FindMVA( const TString& methodTag );
Double_t EvaluateMVA( const std::vector<Float_t> &, const TString& methodTag, Double_t aux = 0 );
Double_t EvaluateMVA( const std::vector<Double_t>&, const TString& methodTag, Double_t aux = 0 );
Double_t EvaluateMVA( MethodBase* method, Double_t aux = 0 );
Double_t EvaluateMVA( const TString& methodTag, Double_t aux = 0 );
Double_t GetProba ( const TString& methodTag, Double_t ap_sig=0.5, Double_t mvaVal=-9999999 );
Double_t GetRarity( const TString& methodTag, Double_t mvaVal=-9999999 );
virtual const char* GetName() const { return "Reader"; }
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_t* );
void AddVariable( const TString& expression, Int_t* );
const TString& GetVarName( Int_t ivar ) { return Data().GetExpression(ivar); }
private:
IMethod* BookMVA( Types::EMVA method, TString weightfile );
DataSet* fDataSet;
void Init( void );
void DecodeVarNames( const std::string varNames );
void DecodeVarNames( const TString varNames );
void GetMethodNameTitle(const TString& weightfile, TString& methodName, TString& methodTitle);
void DeclareOptions();
Bool_t fVerbose;
std::map<TString, IMethod*> fMethodMap;
mutable MsgLogger fLogger;
ClassDef(Reader,0)
};
}
#endif
Last change: Sat Nov 1 10:21:59 2008
Last generated: 2008-11-01 10:21
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.