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
static Types & Instance()
the the single instance of "Types" if existin already, or create it (Signleton)
TString Copy() const
Copy a string.
Bool_t AddTypeMapping(Types::EMVA method, const TString &methodname)
Ssiz_t First(char c) const
Find first occurrence of a character c.
This class implements a plugin library manager.
TString & Remove(Ssiz_t pos)
Bool_t Register(const std::string &name, Creator creator)
registers a classifier creator function under the method type name
Ssiz_t Last(char c) const
Find last occurrence of a character c.