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);
101 Register(
"Plugins", CreateMethodPlugins);
static ClassifierFactory & Instance()
access to the ClassifierFactory singleton creates the instance if needed
Ssiz_t Last(char c) const
Find last occurrence of a character c.
TString Copy() const
Copy a string.
static Types & Instance()
the the single instance of "Types" if existin already, or create it (Signleton)
Bool_t AddTypeMapping(Types::EMVA method, const TString &methodname)
This class implements a plugin library manager.
TString & Remove(Ssiz_t pos)
Ssiz_t First(char c) const
Find first occurrence of a character c.