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