ATLAS Offline Software
ForwardDetectors
ZDC
ZdcConditions
ZdcConditions
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>
9
#include "
AsgMessaging/AsgMessaging.h
"
10
11
class
IZdcGeometryDB
12
{
13
14
protected
:
15
bool
m_geoLoaded
{};
16
nlohmann::json
m_mainJson
;
17
18
public
:
19
IZdcGeometryDB
(){};
20
21
const
nlohmann::json
&
getDB
()
const
{
return
m_mainJson
;};
22
23
};
24
25
class
ZdcFileGeometryDB
:
public
IZdcGeometryDB
,
asg::AsgMessaging
26
{
27
28
std::string
m_fileStr
;
29
30
public
:
31
ZdcFileGeometryDB
();
32
bool
loadJSONFile
();
33
static
const
IZdcGeometryDB
*
getInstance
();
34
35
};
36
37
class
ZdcGeoDBGeometryDB
:
public
IZdcGeometryDB
,
asg::AsgMessaging
38
{
39
40
public
:
41
ZdcGeoDBGeometryDB
();
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:50
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:42
IZdcGeometryDB::m_mainJson
nlohmann::json m_mainJson
Definition:
ZdcGeometryDB.h:16
ZdcGeoDBGeometryDB::loadGeoDB
bool loadGeoDB()
Definition:
ZdcGeometryDB.cxx:83
Generated on Mon Sep 29 2025 21:24:07 for ATLAS Offline Software by
1.8.18