 |
Belle II Software
release-05-01-25
|
10 #include <mva/utility/Utility.h>
11 #include <framework/utilities/TestHelpers.h>
12 #include <framework/database/Configuration.h>
13 #include <framework/database/Database.h>
19 TEST(AvailableTest, Available)
24 conf.overrideGlobalTags();
25 conf.prependTestingPayloadLocation(
"localdb/database.txt");
32 EXPECT_FALSE(MVA::available(
"DOES_NOT_EXIST.root"));
33 EXPECT_FALSE(MVA::available(
"DOES_NOT_EXIST.xml"));
34 EXPECT_FALSE(MVA::available(
"DOES_NOT_EXIST"));
35 EXPECT_TRUE(MVA::available(
"MVAInterfaceTest.root"));
36 EXPECT_TRUE(MVA::available(
"MVAInterfaceTest.xml"));
37 EXPECT_TRUE(MVA::available(
"MVAInterfaceTest"));
The Weightfile class serializes all information about a training into an xml tree.
changes working directory into a newly created directory, and removes it (and contents) on destructio...
static void reset(bool keepConfig=false)
Reset the database instance.
static Configuration & getInstance()
Get a reference to the instance which will be used when the Database is initialized.
Abstract base class for different kinds of events.
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
static void save(Weightfile &weightfile, const std::string &filename, const Belle2::IntervalOfValidity &iov=Belle2::IntervalOfValidity(0, 0, -1, -1))
Static function which saves a Weightfile to a file.