![]() |
Belle II Software
release-05-02-19
|
Template class to easily construct a interface for an MVA library using a library-specific Options, Teacher and Expert class. More...
#include <Interface.h>
Public Member Functions | |
Interface () | |
Constructs a new interface with the given name. More... | |
virtual std::unique_ptr< SpecificOptions > | getOptions () const override |
Get Options of this MVA library. | |
virtual std::unique_ptr< Teacher > | getTeacher (const GeneralOptions &general_options, const SpecificOptions &specific_options) const override |
Get Teacher of this MVA library. More... | |
virtual std::unique_ptr< MVA::Expert > | getExpert () const override |
Get Exoert of this MVA library. | |
std::string | getName () const |
Returns the name of the third-party MVA library. More... | |
Static Public Member Functions | |
static std::map< std::string, AbstractInterface * > | getSupportedInterfaces () |
Returns interfaces supported by the MVA Interface. More... | |
static void | initSupportedInterfaces () |
Static function which initliazes all supported interfaces, has to be called once before getSupportedInterfaces can be used. More... | |
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. | |
Template class to easily construct a interface for an MVA library using a library-specific Options, Teacher and Expert class.
Definition at line 101 of file Interface.h.
|
inline |
Constructs a new interface with the given name.
name | of the interface |
Definition at line 107 of file Interface.h.
|
inherited |
Returns the name of the third-party MVA library.
Definition at line 51 of file Interface.cc.
|
inlinestaticinherited |
Returns interfaces supported by the MVA Interface.
Definition at line 55 of file Interface.h.
|
inlineoverridevirtual |
Get Teacher of this MVA library.
general_options | shared options of all libraries |
specific_options | specific options for this library |
Implements AbstractInterface.
Definition at line 119 of file Interface.h.
|
staticinherited |
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 55 of file Interface.cc.