Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ZdcGeometryDB.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ZDCGEOMETRYDB_H
6 #define ZDCGEOMETRYDB_H
7 
8 #include <nlohmann/json.hpp>
10 
12 {
13 
14 protected:
15  bool m_geoLoaded{};
17 
18 public:
20 
21  const nlohmann::json& getDB() const {return m_mainJson;};
22 
23 };
24 
26 {
27 
28  std::string m_fileStr;
29 
30 public:
32  bool loadJSONFile();
33  static const IZdcGeometryDB* getInstance();
34 
35 };
36 
38 {
39 
40 public:
42  bool loadGeoDB();
43  static const IZdcGeometryDB* getInstance();
44 
45 };
46 
47 
48 #endif //ZDCGEOMETRYDB_H
ZdcFileGeometryDB::m_fileStr
std::string m_fileStr
Definition: ZdcGeometryDB.h:28
IZdcGeometryDB::getDB
const nlohmann::json & getDB() const
Definition: ZdcGeometryDB.h:21
ZdcGeoDBGeometryDB::getInstance
static const IZdcGeometryDB * getInstance()
Definition: ZdcGeometryDB.cxx:24
json
nlohmann::json json
Definition: HistogramDef.cxx:9
ZdcFileGeometryDB::loadJSONFile
bool loadJSONFile()
Definition: ZdcGeometryDB.cxx:48
IZdcGeometryDB::IZdcGeometryDB
IZdcGeometryDB()
Definition: ZdcGeometryDB.h:19
ZdcFileGeometryDB::getInstance
static const IZdcGeometryDB * getInstance()
Definition: ZdcGeometryDB.cxx:18
IZdcGeometryDB
Definition: ZdcGeometryDB.h:12
IZdcGeometryDB::m_geoLoaded
bool m_geoLoaded
Definition: ZdcGeometryDB.h:15
AsgMessaging.h
ZdcGeoDBGeometryDB
Definition: ZdcGeometryDB.h:38
ZdcFileGeometryDB
Definition: ZdcGeometryDB.h:26
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition: AsgMessaging.h:40
ZdcFileGeometryDB::ZdcFileGeometryDB
ZdcFileGeometryDB()
Definition: ZdcGeometryDB.cxx:31
ZdcGeoDBGeometryDB::ZdcGeoDBGeometryDB
ZdcGeoDBGeometryDB()
Definition: ZdcGeometryDB.cxx:40
IZdcGeometryDB::m_mainJson
nlohmann::json m_mainJson
Definition: ZdcGeometryDB.h:16
ZdcGeoDBGeometryDB::loadGeoDB
bool loadGeoDB()
Definition: ZdcGeometryDB.cxx:81