ATLAS Offline Software
RDBReaderAtlas.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef RDBReaderAtlas_H
6 #define RDBReaderAtlas_H
7 
11 #include "MuonGeoModel/DBReader.h"
12 
13 #include <fstream>
14 #include <vector>
15 
16 class IMessageSvc;
17 class IRDBAccessSvc;
18 
19 namespace MuonGM {
20 
21  class RDBReaderAtlas : public DBReader, public AthMessaging {
22  public:
23  RDBReaderAtlas(StoreGateSvc *pDetStore, IRDBAccessSvc *m_pRDBAccess, const std::string& geoTag, const std::string& geoNode,
24  const std::map<std::string, std::string>& asciiFileDBMap);
25  virtual ~RDBReaderAtlas() = default;
26  virtual StatusCode ProcessDB(MYSQL& mysql) override;
27 
28 
29 
30  void ProcessTGCreadout(MYSQL& mysql);
32  std::string TGCreadoutName(int ichtyp);
33 
34  private:
35  void ProcessTechnologies(MYSQL& mysql);
36 
37  std::unique_ptr<DblQ00Dbam> m_dhdbam{nullptr};
38  std::unique_ptr<DblQ00Atyp> m_dhatyp{nullptr};
39  std::unique_ptr<DblQ00Asmp> m_dhasmp{nullptr};
40  std::unique_ptr<DblQ00Almn> m_dhalmn{nullptr};
41  std::unique_ptr<DblQ00Aptp> m_dhaptp{nullptr};
42  std::unique_ptr<DblQ00Awln> m_dhwrpc{nullptr};
43  std::unique_ptr<DblQ00Atln> m_dhwtgc{nullptr};
44  std::unique_ptr<DblQ00Acut> m_dhacut{nullptr};
45  std::unique_ptr<DblQ00Alin> m_dhalin{nullptr};
46  std::unique_ptr<DblQ00Wmdt> m_dhwmdt{nullptr};
47  std::unique_ptr<DblQ00Wcsc> m_dhwcsc{nullptr};
48  std::unique_ptr<DblQ00Wrpc> m_dhwrpcall{nullptr};
49  std::unique_ptr<DblQ00Wtgc> m_dhwtgcall{nullptr};
50  std::unique_ptr<DblQ00Wded> m_dhwded{nullptr};
51  std::unique_ptr<DblQ00Wsup> m_dhwsup{nullptr};
52  std::unique_ptr<DblQ00Wspa> m_dhwspa{nullptr};
53  std::unique_ptr<DblQ00Wchv> m_dhwchv{nullptr};
54  std::unique_ptr<DblQ00Wcro> m_dhwcro{nullptr};
55  std::unique_ptr<DblQ00Wcmi> m_dhwcmi{nullptr};
56  std::unique_ptr<DblQ00Wlbi> m_dhwlbi{nullptr};
57  std::unique_ptr<DblQ00Aszt> m_dhaszt{nullptr};
58  std::unique_ptr<DblQ00IAcsc> m_dhiacsc{nullptr};
59  std::unique_ptr<DblQ00Xtomo>m_dhxtomo{nullptr};
60  const DblQ00Dbam::DBAM *m_dbam{nullptr};
61  const DblQ00Atyp::ATYP *m_atyp{nullptr};
62  const DblQ00Asmp::ASMP *m_asmp{nullptr};
63  const DblQ00Almn::ALMN *m_almn{nullptr};
64  const DblQ00Aptp::APTP *m_aptp{nullptr};
65  const DblQ00Awln::AWLN *m_wrpc{nullptr};
66  const DblQ00Atln::ATLN *m_wtgc{nullptr};
67  const DblQ00Acut::ACUT *m_acut{nullptr};
68  const DblQ00Alin::ALIN *m_alin{nullptr};
69  const DblQ00Wmdt::WMDT *m_wmdt{nullptr};
70  const DblQ00Wcsc::WCSC *m_wcsc{nullptr};
71  const DblQ00Wrpc::WRPC *m_wrpcall{nullptr};
72  const DblQ00Wtgc::WTGC *m_wtgcall{nullptr};
73  const DblQ00Wded::WDED *m_wded{nullptr};
74  const DblQ00Wsup::WSUP *m_wsup{nullptr};
75  const DblQ00Wspa::WSPA *m_wspa{nullptr};
76  const DblQ00Wchv::WCHV *m_wchv{nullptr};
77  const DblQ00Wcro::WCRO *m_wcro{nullptr};
78  const DblQ00Wcmi::WCMI *m_wcmi{nullptr};
79  const DblQ00Wlbi::WLBI *m_wlbi{nullptr};
80  const DblQ00Aszt::ASZT *m_aszt{nullptr};
81  const DblQ00IAcsc::IACSC *m_iacsc{nullptr};
82  const DblQ00Xtomo::XTOMO *m_xtomo{nullptr};
83 
84  const std::string m_geoTag{};
85  const std::string m_geoNode{};
87  std::string m_asciiFileDB{};
88 
89 
90  };
91 
92 } // namespace MuonGM
93 
94 #endif
MuonGM::RDBReaderAtlas::ProcessTechnologies
void ProcessTechnologies(MYSQL &mysql)
Definition: RDBReaderAtlas.cxx:221
MuonGM::RDBReaderAtlas::m_dhwcro
std::unique_ptr< DblQ00Wcro > m_dhwcro
Definition: RDBReaderAtlas.h:54
MuonGM::RDBReaderAtlas::m_dhaptp
std::unique_ptr< DblQ00Aptp > m_dhaptp
Definition: RDBReaderAtlas.h:41
MuonGM::RDBReaderAtlas::m_dhwtgcall
std::unique_ptr< DblQ00Wtgc > m_dhwtgcall
Definition: RDBReaderAtlas.h:49
MuonGM::RDBReaderAtlas::m_geoTag
const std::string m_geoTag
Definition: RDBReaderAtlas.h:84
MuonGM::DblQ00Almn::ALMN
Definition: DblQ00Almn.h:34
MuonGM::RDBReaderAtlas::m_wcmi
const DblQ00Wcmi::WCMI * m_wcmi
Definition: RDBReaderAtlas.h:78
MuonGM::DblQ00Aszt::ASZT
Definition: DblQ00Aszt.h:37
MuonGM::RDBReaderAtlas::m_wcsc
const DblQ00Wcsc::WCSC * m_wcsc
Definition: RDBReaderAtlas.h:70
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::RDBReaderAtlas::m_aszt
const DblQ00Aszt::ASZT * m_aszt
Definition: RDBReaderAtlas.h:80
MuonGM::DBReader
Definition: DBReader.h:116
MuonGM::RDBReaderAtlas::m_iacsc
const DblQ00IAcsc::IACSC * m_iacsc
Definition: RDBReaderAtlas.h:81
MuonGM::RDBReaderAtlas::m_dhiacsc
std::unique_ptr< DblQ00IAcsc > m_dhiacsc
Definition: RDBReaderAtlas.h:58
MuonGM::RDBReaderAtlas::m_wmdt
const DblQ00Wmdt::WMDT * m_wmdt
Definition: RDBReaderAtlas.h:69
MuonGM::RDBReaderAtlas::TGCreadoutName
std::string TGCreadoutName(int ichtyp)
Definition: RDBReaderAtlas.cxx:412
MuonGM::DblQ00Atyp::ATYP
Definition: DblQ00Atyp.h:33
MuonGM::DblQ00Atln::ATLN
Definition: DblQ00Atln.h:32
MuonGM::DblQ00Wcmi::WCMI
Definition: DblQ00Wcmi.h:30
MuonGM::RDBReaderAtlas::m_dhwspa
std::unique_ptr< DblQ00Wspa > m_dhwspa
Definition: RDBReaderAtlas.h:52
MuonGM::DblQ00Dbam::DBAM
Definition: DblQ00Dbam.h:34
MuonGM::RDBReaderAtlas::m_dhwmdt
std::unique_ptr< DblQ00Wmdt > m_dhwmdt
Definition: RDBReaderAtlas.h:46
MuonGM::DblQ00Awln::AWLN
Definition: DblQ00Awln.h:29
MuonGM::DblQ00Alin::ALIN
Definition: DblQ00Alin.h:30
MuonGM::DblQ00Wtgc::WTGC
Definition: DblQ00Wtgc.h:33
MuonGM::RDBReaderAtlas::m_wsup
const DblQ00Wsup::WSUP * m_wsup
Definition: RDBReaderAtlas.h:74
MuonGM::MYSQL
Definition: MYSQL.h:43
DBReader.h
MuonGM::RDBReaderAtlas::m_wchv
const DblQ00Wchv::WCHV * m_wchv
Definition: RDBReaderAtlas.h:76
MuonGM::RDBReaderAtlas::m_atyp
const DblQ00Atyp::ATYP * m_atyp
Definition: RDBReaderAtlas.h:61
MuonGM::RDBReaderAtlas::m_dhalmn
std::unique_ptr< DblQ00Almn > m_dhalmn
Definition: RDBReaderAtlas.h:40
MuonGM::RDBReaderAtlas
Definition: RDBReaderAtlas.h:21
MuonGM::RDBReaderAtlas::m_wlbi
const DblQ00Wlbi::WLBI * m_wlbi
Definition: RDBReaderAtlas.h:79
MuonGM::RDBReaderAtlas::m_aptp
const DblQ00Aptp::APTP * m_aptp
Definition: RDBReaderAtlas.h:64
MuonGM::DblQ00Wchv::WCHV
Definition: DblQ00Wchv.h:34
MuonGM::RDBReaderAtlas::m_dhwcmi
std::unique_ptr< DblQ00Wcmi > m_dhwcmi
Definition: RDBReaderAtlas.h:55
MuonGM::RDBReaderAtlas::m_dhwrpcall
std::unique_ptr< DblQ00Wrpc > m_dhwrpcall
Definition: RDBReaderAtlas.h:48
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
MuonGM::DblQ00Wsup::WSUP
Definition: DblQ00Wsup.h:33
MuonGM::RDBReaderAtlas::m_dhaszt
std::unique_ptr< DblQ00Aszt > m_dhaszt
Definition: RDBReaderAtlas.h:57
MuonGM::DblQ00Xtomo::XTOMO
Definition: DblQ00Xtomo.h:33
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:42
MuonGM::DblQ00Wded::WDED
Definition: DblQ00Wded.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGM::RDBReaderAtlas::m_wspa
const DblQ00Wspa::WSPA * m_wspa
Definition: RDBReaderAtlas.h:75
MuonGM::DblQ00Acut::ACUT
Definition: DblQ00Acut.h:33
MuonGM::RDBReaderAtlas::m_dhacut
std::unique_ptr< DblQ00Acut > m_dhacut
Definition: RDBReaderAtlas.h:44
MuonGM::RDBReaderAtlas::m_dhwded
std::unique_ptr< DblQ00Wded > m_dhwded
Definition: RDBReaderAtlas.h:50
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
MuonGM::RDBReaderAtlas::m_asmp
const DblQ00Asmp::ASMP * m_asmp
Definition: RDBReaderAtlas.h:62
MuonGM::RDBReaderAtlas::m_almn
const DblQ00Almn::ALMN * m_almn
Definition: RDBReaderAtlas.h:63
MuonGM::RDBReaderAtlas::m_dhdbam
std::unique_ptr< DblQ00Dbam > m_dhdbam
Definition: RDBReaderAtlas.h:37
MuonGM::RDBReaderAtlas::m_dhxtomo
std::unique_ptr< DblQ00Xtomo > m_dhxtomo
Definition: RDBReaderAtlas.h:59
MuonGM::RDBReaderAtlas::RDBReaderAtlas
RDBReaderAtlas(StoreGateSvc *pDetStore, IRDBAccessSvc *m_pRDBAccess, const std::string &geoTag, const std::string &geoNode, const std::map< std::string, std::string > &asciiFileDBMap)
Definition: RDBReaderAtlas.cxx:25
MuonGM::DblQ00Wmdt::WMDT
Definition: DblQ00Wmdt.h:34
MuonGM::RDBReaderAtlas::ProcessCscInternalAlignments
void ProcessCscInternalAlignments()
MuonGM::RDBReaderAtlas::m_wrpcall
const DblQ00Wrpc::WRPC * m_wrpcall
Definition: RDBReaderAtlas.h:71
MuonGM::RDBReaderAtlas::m_wded
const DblQ00Wded::WDED * m_wded
Definition: RDBReaderAtlas.h:73
MuonGM::RDBReaderAtlas::m_acut
const DblQ00Acut::ACUT * m_acut
Definition: RDBReaderAtlas.h:67
MuonGM::DblQ00Wspa::WSPA
Definition: DblQ00Wspa.h:31
MuonGM::DblQ00Asmp::ASMP
Definition: DblQ00Asmp.h:33
MuonGM::RDBReaderAtlas::m_pRDBAccess
IRDBAccessSvc * m_pRDBAccess
Definition: RDBReaderAtlas.h:86
MuonGM::RDBReaderAtlas::m_wtgcall
const DblQ00Wtgc::WTGC * m_wtgcall
Definition: RDBReaderAtlas.h:72
DblQ00IAcsc.h
MuonGM::RDBReaderAtlas::m_alin
const DblQ00Alin::ALIN * m_alin
Definition: RDBReaderAtlas.h:68
MuonGM::RDBReaderAtlas::m_xtomo
const DblQ00Xtomo::XTOMO * m_xtomo
Definition: RDBReaderAtlas.h:82
MuonGM::RDBReaderAtlas::m_dhwchv
std::unique_ptr< DblQ00Wchv > m_dhwchv
Definition: RDBReaderAtlas.h:53
MuonGM::DblQ00Wcro::WCRO
Definition: DblQ00Wcro.h:33
MuonGM::DblQ00Wcsc::WCSC
Definition: DblQ00Wcsc.h:31
MuonGM::RDBReaderAtlas::ProcessTGCreadout
void ProcessTGCreadout(MYSQL &mysql)
Definition: RDBReaderAtlas.cxx:269
MuonGM::RDBReaderAtlas::m_wcro
const DblQ00Wcro::WCRO * m_wcro
Definition: RDBReaderAtlas.h:77
MuonGM::RDBReaderAtlas::m_geoNode
const std::string m_geoNode
Definition: RDBReaderAtlas.h:85
MuonGM::RDBReaderAtlas::~RDBReaderAtlas
virtual ~RDBReaderAtlas()=default
MuonGM::RDBReaderAtlas::m_wtgc
const DblQ00Atln::ATLN * m_wtgc
Definition: RDBReaderAtlas.h:66
MuonGM::RDBReaderAtlas::m_dhwsup
std::unique_ptr< DblQ00Wsup > m_dhwsup
Definition: RDBReaderAtlas.h:51
MuonGM::DblQ00Wrpc::WRPC
Definition: DblQ00Wrpc.h:30
AthMessaging.h
MuonGM::RDBReaderAtlas::m_wrpc
const DblQ00Awln::AWLN * m_wrpc
Definition: RDBReaderAtlas.h:65
MuonGM::RDBReaderAtlas::m_dhwcsc
std::unique_ptr< DblQ00Wcsc > m_dhwcsc
Definition: RDBReaderAtlas.h:47
MuonGM::RDBReaderAtlas::m_dbam
const DblQ00Dbam::DBAM * m_dbam
Definition: RDBReaderAtlas.h:60
MuonGM::RDBReaderAtlas::ProcessDB
virtual StatusCode ProcessDB(MYSQL &mysql) override
Definition: RDBReaderAtlas.cxx:178
MuonGM::RDBReaderAtlas::m_dhwrpc
std::unique_ptr< DblQ00Awln > m_dhwrpc
Definition: RDBReaderAtlas.h:42
MuonGM::DblQ00IAcsc::IACSC
Definition: DblQ00IAcsc.h:38
MuonGM::DblQ00Aptp::APTP
Definition: DblQ00Aptp.h:33
MuonGM::RDBReaderAtlas::m_dhwlbi
std::unique_ptr< DblQ00Wlbi > m_dhwlbi
Definition: RDBReaderAtlas.h:56
MuonGM::RDBReaderAtlas::m_dhatyp
std::unique_ptr< DblQ00Atyp > m_dhatyp
Definition: RDBReaderAtlas.h:38
MuonGM::RDBReaderAtlas::m_dhalin
std::unique_ptr< DblQ00Alin > m_dhalin
Definition: RDBReaderAtlas.h:45
MuonGM::RDBReaderAtlas::m_dhwtgc
std::unique_ptr< DblQ00Atln > m_dhwtgc
Definition: RDBReaderAtlas.h:43
MuonGM::RDBReaderAtlas::m_dhasmp
std::unique_ptr< DblQ00Asmp > m_dhasmp
Definition: RDBReaderAtlas.h:39
DblQ00Xtomo.h
MuonGM::DblQ00Wlbi::WLBI
Definition: DblQ00Wlbi.h:33
MuonGM::RDBReaderAtlas::m_asciiFileDB
std::string m_asciiFileDB
Definition: RDBReaderAtlas.h:87