#ifndef ROOT_TMVA_Types
#define ROOT_TMVA_Types
#include <map>
#include "TROOT.h"
#include "Riostream.h"
#ifndef ROOT_TMVA_MsgLogger
#include "TMVA/MsgLogger.h"
#endif
namespace TMVA {
typedef std::pair<Double_t,Double_t> LowHigh_t;
class Types {
public:
enum EMVA {
kVariable = 0,
kCuts ,
kLikelihood ,
kPDERS ,
kHMatrix ,
kFisher ,
kCFMlpANN ,
kTMlpANN ,
kBDT ,
kRuleFit ,
kSVM ,
kMLP ,
kBayesClassifier,
kCommittee ,
kMaxMethod
};
enum EPreprocessingMethod {
kNone = 0,
kDecorrelated,
kPCA,
kMaxPreprocessingMethod
};
enum ESBType {
kSignal = 0,
kBackground,
kSBBoth,
kMaxSBType,
kTrueType
};
enum ETreeType { kTraining = 0, kTesting, kMaxTreeType };
public:
static Types& Instance() { return fgTypesPtr ? *fgTypesPtr : *(fgTypesPtr = new Types()); }
~Types() {}
EMVA GetMethodType( const TString& method ) const {
std::map<TString, EMVA>::const_iterator it = fStr2type.find( method );
if (it == fStr2type.end()) {
fLogger << kFATAL << "unknown method in map: " << method << Endl;
return kVariable;
}
else return it->second;
}
private:
Types();
static Types* fgTypesPtr;
private:
std::map<TString, EMVA> fStr2type;
mutable MsgLogger fLogger;
};
}
#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.