34#ifndef ROOT_TMVA_Reader
35#define ROOT_TMVA_Reader
72 Reader( std::vector<std::string>& varNames,
const TString& theOption =
"",
Bool_t verbose = 0 );
76 Reader( std::vector<TString>& varNames,
const TString& theOption =
"",
Bool_t verbose = 0 );
117 virtual const char*
GetName()
const {
return "Reader"; }
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Class that contains all the data information.
Class that contains all the data information.
Interface for all concrete MVA method implementations.
Virtual base Class for all MVA method.
Multivariate optimisation of signal efficiency for given background efficiency, applying rectangular ...
ostringstream derivative to redirect and format output
The Reader class serves to use the MVAs in a specific analysis context.
const std::vector< Float_t > & EvaluateRegression(const TString &methodTag, Double_t aux=0)
evaluates MVA for given set of input variables
std::map< TString, IMethod * > fMethodMap
map of methods
virtual const char * GetName() const
Returns name of object.
Double_t EvaluateMVA(const std::vector< Float_t > &, const TString &methodTag, Double_t aux=0)
Evaluate a std::vector<float> of input data for a given method The parameter aux is obligatory for th...
Double_t GetRarity(const TString &methodTag, Double_t mvaVal=-9999999)
evaluates the MVA's rarity
IMethod * FindMVA(const TString &methodTag)
return pointer to method with tag "methodTag"
void Init(void)
default initialisation (no member variables)
Double_t GetProba(const TString &methodTag, Double_t ap_sig=0.5, Double_t mvaVal=-9999999)
evaluates probability of MVA for given set of input variables
Double_t fMvaEventErrorUpper
per-event error returned by MVA
MethodCuts * FindCutsMVA(const TString &methodTag)
special function for Cuts to avoid dynamic_casts in ROOT macros, which are not properly handled by CI...
void SetVerbose(Bool_t v)
TString GetMethodTypeFromFile(const TString &filename)
read the method type from the file
DataSetManager * fDataSetManager
Bool_t fCalculateError
error calculation mode
Bool_t Verbose(void) const
Double_t fMvaEventError
per-event error returned by MVA
std::vector< Float_t > fTmpEvalVec
temporary evaluation vector (if user input is v<double>)
IMethod * BookMVA(const TString &methodTag, const TString &weightfile)
read method name from weight file
const std::vector< Float_t > & EvaluateMulticlass(const TString &methodTag, Double_t aux=0)
evaluates MVA for given set of input variables
Double_t GetMVAErrorUpper() const
Double_t GetMVAErrorLower() const
DataInputHandler fDataInputHandler
void DecodeVarNames(const std::string &varNames)
decodes "name1:name2:..." form
Bool_t fSilent
silent mode
void DeclareOptions()
declaration of configuration options
void AddSpectator(const TString &expression, Float_t *)
Add a float spectator or expression to the reader.
void AddVariable(const TString &expression, Float_t *)
Add a float variable or expression to the reader.
virtual ~Reader(void)
destructor
MsgLogger * fLogger
message logger
const DataSetInfo & DataInfo() const
Double_t GetMVAError() const
create variable transformations