68 pluginManager =
gROOT->GetPluginManager();
71 if(jobName==
"" && methodTitle==
"") {
72 myMethodTitle = theOption.
Copy();
75 myMethodTitle.
Remove(firstPoint,myMethodTitle.
Length() - firstPoint);
76 myMethodTitle.
Remove(0,firstUnderscore-1);
78 else myMethodTitle = methodTitle;
79 pluginHandler = pluginManager->FindHandler(
"TMVA@@MethodBase", myMethodTitle);
82 std::cerr <<
"Couldn't find plugin handler for TMVA@@MethodBase and " << methodTitle << std::endl;
86 if (pluginHandler->LoadPlugin() == 0) {
87 if(jobName==
"" && methodTitle==
"") {
89 return (
TMVA::IMethod*) pluginHandler->ExecPlugin(2, &theData, &theOption);
93 return (
TMVA::IMethod*) pluginHandler->ExecPlugin(4, &jobName, &methodTitle, &theData, &theOption);
100 struct registration {
static ClassifierFactory & Instance()
access to the ClassifierFactory singleton creates the instance if needed
Bool_t Register(const std::string &name, Creator creator)
registers a classifier creator function under the method type name
Class that contains all the data information.
Interface for all concrete MVA method implementations.
static Types & Instance()
the the single instance of "Types" if existing already, or create it (Singleton)
Bool_t AddTypeMapping(Types::EMVA method, const TString &methodname)
This class implements a plugin library manager.
TString Copy() const
Copy a string.
Ssiz_t First(char c) const
Find first occurrence of a character c.
Ssiz_t Last(char c) const
Find last occurrence of a character c.
TString & Remove(Ssiz_t pos)
static Roo_reg_AGKInteg1D instance