Belle II Software light-2406-ragdoll
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
20namespace Belle2 {
25 namespace MVA {
26
27 AbstractInterface::AbstractInterface(const std::string& name) : m_name(name)
28 {
30 B2WARNING("An interface with the name " << m_name << " already exists!");
31 } else {
32 s_supported_interfaces.insert(std::make_pair(name, this));
33 }
34 }
35
37 {
39 }
40
41 std::string AbstractInterface::getName() const { return m_name; }
42
43 std::map<std::string, AbstractInterface*> AbstractInterface::s_supported_interfaces;
44
46 {
51 interface_TMVAClassification;
59 }
60
61 }
63}
static void initSupportedInterfaces()
Static function which initliazes all supported interfaces, has to be called once before getSupportedI...
Definition: Interface.cc:45
std::string getName() const
Returns the name of the third-party MVA library.
Definition: Interface.cc:41
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:27
std::string m_name
Name of the third-party library.
Definition: Interface.h:84
virtual ~AbstractInterface()
Virtual destructor.
Definition: Interface.cc:36
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.
Definition: ClusterUtils.h:24