Belle II Software light-2406-ragdoll
|
Abstract Interface to third-party MVA libraries. More...
#include <Interface.h>
Public Member Functions | |
AbstractInterface (const std::string &name) | |
Creates a new Interface to a third-party library. | |
virtual | ~AbstractInterface () |
Virtual destructor. | |
std::string | getName () const |
Returns the name of the third-party MVA library. | |
virtual std::unique_ptr< SpecificOptions > | getOptions () const =0 |
Get Options of this MVA library. | |
virtual std::unique_ptr< Teacher > | getTeacher (const GeneralOptions &general_options, const SpecificOptions &specific_options) const =0 |
Get Teacher of this MVA library. | |
virtual std::unique_ptr< MVA::Expert > | getExpert () const =0 |
Get Exoert of this MVA library. | |
Static Public Member Functions | |
static std::map< std::string, AbstractInterface * > | getSupportedInterfaces () |
Returns interfaces supported by the MVA Interface. | |
static void | initSupportedInterfaces () |
Static function which initliazes all supported interfaces, has to be called once before getSupportedInterfaces can be used. | |
Private Attributes | |
std::string | m_name |
Name of the third-party library. | |
Static Private Attributes | |
static std::map< std::string, AbstractInterface * > | s_supported_interfaces |
Map of supported interfaces. | |
Abstract Interface to third-party MVA libraries.
Definition at line 30 of file Interface.h.
|
explicit |
Creates a new Interface to a third-party library.
name | of the third-party MVA library |
Definition at line 27 of file Interface.cc.
|
virtual |
Virtual destructor.
Definition at line 36 of file Interface.cc.
|
pure virtual |
Get Exoert of this MVA library.
Implemented in Interface< TemplateOptions, TemplateTeacher, TemplateExpert >.
std::string getName | ( | ) | const |
Returns the name of the third-party MVA library.
Definition at line 41 of file Interface.cc.
|
pure virtual |
Get Options of this MVA library.
Implemented in Interface< TemplateOptions, TemplateTeacher, TemplateExpert >.
|
inlinestatic |
Returns interfaces supported by the MVA Interface.
Definition at line 53 of file Interface.h.
|
pure virtual |
Get Teacher of this MVA library.
general_options | shared options of all libraries |
specific_options | specific options for this library |
Implemented in Interface< TemplateOptions, TemplateTeacher, TemplateExpert >.
|
static |
Static function which initliazes all supported interfaces, has to be called once before getSupportedInterfaces can be used.
It is save to call it multiple times
Definition at line 45 of file Interface.cc.
|
private |
Name of the third-party library.
Definition at line 84 of file Interface.h.
|
staticprivate |
Map of supported interfaces.
Definition at line 89 of file Interface.h.