Belle II Software development
Interface.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include <mva/interface/Interface.h>
10#include <mva/methods/FastBDT.h>
11#include <mva/methods/RegressionFastBDT.h>
12#include <mva/methods/TMVA.h>
13#include <mva/methods/Python.h>
14#include <mva/methods/FANN.h>
15#include <mva/methods/PDF.h>
16#include <mva/methods/Trivial.h>
17#include <mva/methods/Reweighter.h>
18#include <mva/methods/Combination.h>
19#include <mva/methods/ONNX.h>
20
21namespace Belle2 {
26 namespace MVA {
27
28 AbstractInterface::AbstractInterface(const std::string& name) : m_name(name)
29 {
31 B2WARNING("An interface with the name " << m_name << " already exists!");
32 } else {
33 s_supported_interfaces.insert(std::make_pair(name, this));
34 }
35 }
36
41
42 std::string AbstractInterface::getName() const { return m_name; }
43
44 std::map<std::string, AbstractInterface*> AbstractInterface::s_supported_interfaces;
45
62
63 }
65}
static void initSupportedInterfaces()
Static function which initliazes all supported interfaces, has to be called once before getSupportedI...
Definition Interface.cc:46
std::string getName() const
Returns the name of the third-party MVA library.
Definition Interface.cc:42
static std::map< std::string, AbstractInterface * > s_supported_interfaces
Map of supported interfaces.
Definition Interface.h:89
AbstractInterface(const std::string &name)
Creates a new Interface to a third-party library.
Definition Interface.cc:28
std::string m_name
Name of the third-party library.
Definition Interface.h:84
virtual ~AbstractInterface()
Virtual destructor.
Definition Interface.cc:37
Template class to easily construct a interface for an MVA library using a library-specific Options,...
Definition Interface.h:99
Abstract base class for different kinds of events.