File indexing completed on 2025-12-16 09:24:24
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "ActsPlugins/GeoModel/GeoModelReader.hpp"
0010
0011 #include <GeoModelDBManager/GMDBManager.h>
0012 #include <GeoModelKernel/GeoFullPhysVol.h>
0013 #include <GeoModelRead/ReadGeoModel.h>
0014
0015 ActsPlugins::GeoModelTree ActsPlugins::GeoModelReader::readFromDb(
0016 const std::string& dbPath) {
0017
0018 auto db = std::make_shared<GMDBManager>(dbPath);
0019 if (!db->checkIsDBOpen()) {
0020 throw std::runtime_error("GeoModelReader: Could not open the database");
0021 }
0022
0023 GeoModelTree geoModel{db};
0024 return geoModel;
0025 }