8 #include <framework/gearbox/Gearbox.h>
9 #include <framework/gearbox/GearDir.h>
11 #include <gtest/gtest.h>
23 Gearbox& gb = Gearbox::getInstance();
24 vector<string> backends;
25 backends.emplace_back(
"file:");
27 gb.
open(
"geometry/SuperKEKB.xml");
30 while (!nodes.empty()) {
GearDir is the basic class used for accessing the parameter store.
Singleton class responsible for loading detector parameters from an XML file.
std::vector< GearDir > getNodes(const std::string &path="") const
Get vector of GearDirs which point to all the nodes the given path evaluates to.
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
void close()
Free internal structures of previously parsed tree and clear cache.
void setBackends(const std::vector< std::string > &backends)
Select the backends to use to find resources.
void open(const std::string &name="Belle2.xml", size_t cacheSize=c_DefaultCacheSize)
Open connection to backend and parse tree.
Abstract base class for different kinds of events.