#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
#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( TString methodTag, TString weightfile );
      Double_t EvaluateMVA( const std::vector<Float_t> &, TString methodTag, Double_t aux = 0 );    
      Double_t EvaluateMVA( const std::vector<Double_t>&, TString methodTag, Double_t aux = 0 );    
      Double_t EvaluateMVA( MethodBase* method,           Double_t aux = 0 );    
      Double_t EvaluateMVA( TString methodTag,           Double_t aux = 0 );    
      Double_t GetProba ( TString methodTag, Double_t ap_sig=0.5, Double_t mvaVal=-9999999 ); 
      Double_t GetRarity( 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* );
  
   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 DeclareOptions();
      Bool_t fVerbose;    
      Bool_t fColor;      
      std::map<TString, IMethod*> fMethodMap; 
      mutable MsgLogger fLogger; 
      ClassDef(Reader,0) 
   };
}
#endif
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.