 |
Belle II Software
release-05-01-25
|
10 #include <mva/interface/Interface.h>
11 #include <framework/utilities/TestHelpers.h>
13 #include <gtest/gtest.h>
22 void load(
const boost::property_tree::ptree&)
override { }
23 void save(boost::property_tree::ptree&)
const override { }
24 po::options_description getDescription()
override
26 po::options_description description(
"General options");
27 description.add_options()
28 (
"help",
"print this message");
31 [[nodiscard]] std::string getMethod()
const override {
return "Test"; }
43 std::vector<float> apply(
MVA::Dataset&)
const override {
return std::vector<float>(); };
46 TEST(InterfaceTest, InterfaceCreation)
51 EXPECT_EQ(interface.
getName(),
"Test");
53 EXPECT_TRUE(supported_interfaces.find(
"Test") != supported_interfaces.end());
54 EXPECT_EQ(supported_interfaces[
"Test"], &interface);
67 EXPECT_TRUE(supported_interfaces.find(
"Test") == supported_interfaces.end());
static std::map< std::string, AbstractInterface * > getSupportedInterfaces()
Returns interfaces supported by the MVA Interface.
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
The Weightfile class serializes all information about a training into an xml tree.
virtual std::unique_ptr< Teacher > getTeacher(const GeneralOptions &general_options, const SpecificOptions &specific_options) const override
Get Teacher of this MVA library.
Specific Options, all mehtod Options have to inherit from this class.
Abstract base class for different kinds of events.
Abstract base class of all Teachers Each MVA library has its own implementation of this class,...
virtual std::unique_ptr< SpecificOptions > getOptions() const override
Get Options of this MVA library.
std::string getName() const
Returns the name of the third-party MVA library.
Abstract base class of all Expert Each MVA library has its own implementation of this class,...
General options which are shared by all MVA trainings.
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
virtual std::unique_ptr< MVA::Expert > getExpert() const override
Get Exoert of this MVA library.
Template class to easily construct a interface for an MVA library using a library-specific Options,...