ATLAS Offline Software
Loading...
Searching...
No Matches
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
AsgMessaging.h
IZdcGeometryDB::getDB
const nlohmann::json & getDB() const
Definition
ZdcGeometryDB.h:21
IZdcGeometryDB::m_geoLoaded
bool m_geoLoaded
Definition
ZdcGeometryDB.h:15
IZdcGeometryDB::IZdcGeometryDB
IZdcGeometryDB()
Definition
ZdcGeometryDB.h:19
IZdcGeometryDB::m_mainJson
nlohmann::json m_mainJson
Definition
ZdcGeometryDB.h:16
ZdcFileGeometryDB::getInstance
static const IZdcGeometryDB * getInstance()
Definition
ZdcGeometryDB.cxx:18
ZdcFileGeometryDB::loadJSONFile
bool loadJSONFile()
Definition
ZdcGeometryDB.cxx:50
ZdcFileGeometryDB::m_fileStr
std::string m_fileStr
Definition
ZdcGeometryDB.h:28
ZdcFileGeometryDB::ZdcFileGeometryDB
ZdcFileGeometryDB()
Definition
ZdcGeometryDB.cxx:31
ZdcGeoDBGeometryDB::getInstance
static const IZdcGeometryDB * getInstance()
Definition
ZdcGeometryDB.cxx:24
ZdcGeoDBGeometryDB::loadGeoDB
bool loadGeoDB()
Definition
ZdcGeometryDB.cxx:83
ZdcGeoDBGeometryDB::ZdcGeoDBGeometryDB
ZdcGeoDBGeometryDB()
Definition
ZdcGeometryDB.cxx:42
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition
AsgMessaging.h:40
Generated on
for ATLAS Offline Software by
1.14.0