ATLAS Offline Software
Loading...
Searching...
No Matches
DBReader.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <utility>
6
8
10
11namespace MuonGM {
12
14 m_SCdbaccess (StatusCode::SUCCESS),
15 m_mgr(nullptr),
16 m_msgSvc (Athena::getMessageSvc())
17 {
18 }
19
20 void DBReader::setGeometryVersion(std::string geoVersion) { m_version = std::move(geoVersion); }
21
22 const std::string& DBReader::getGeometryVersion() const { return m_version; }
23
24 std::string DBReader::TGCreadoutName(int ichtyp) {
25 MsgStream log(Athena::getMessageSvc(), "DBReader::TGCreadoutName");
26 if (m_tgcReadoutMapping.empty()) {
27 // first time fill the vector
28
29 m_tgcReadoutMapping.emplace_back("T1F1"); // 1
30
31 m_tgcReadoutMapping.emplace_back("T1E1"); // 2
32 m_tgcReadoutMapping.emplace_back("T1E2");
33 m_tgcReadoutMapping.emplace_back("T1E3");
34 m_tgcReadoutMapping.emplace_back("T1E4");
35
36 m_tgcReadoutMapping.emplace_back("T2F1"); // 6
37
38 m_tgcReadoutMapping.emplace_back("T2E1"); // 7
39 m_tgcReadoutMapping.emplace_back("T2E2");
40 m_tgcReadoutMapping.emplace_back("T2E3");
41 m_tgcReadoutMapping.emplace_back("T2E4");
42 m_tgcReadoutMapping.emplace_back("T2E5"); // 11
43
44 m_tgcReadoutMapping.emplace_back("T3F1"); // 12
45
46 m_tgcReadoutMapping.emplace_back("T3E1"); // 13
47 m_tgcReadoutMapping.emplace_back("T3E2");
48 m_tgcReadoutMapping.emplace_back("T3E3");
49 m_tgcReadoutMapping.emplace_back("T3E4");
50 m_tgcReadoutMapping.emplace_back("T3E5"); // 17
51
52 m_tgcReadoutMapping.emplace_back("T4F1"); // 18
53
54 m_tgcReadoutMapping.emplace_back("T4E1"); // 19
55 }
56
57 if (ichtyp < 1 || ichtyp > 19) {
58 log << MSG::ERROR << " DBReader::TGCreadoutName - ichtype " << ichtyp << " out of range 1-19" << endmsg;
59 return "XXXY";
60 }
61 return m_tgcReadoutMapping[ichtyp - 1];
62 }
63
64} // namespace MuonGM
#define endmsg
std::vector< std::string > m_tgcReadoutMapping
Definition DBReader.h:131
DBReader(StoreGateSvc *)
Definition DBReader.cxx:13
std::string m_version
Definition DBReader.h:137
void setGeometryVersion(std::string s)
Definition DBReader.cxx:20
MuonDetectorManager * m_mgr
Definition DBReader.h:132
StatusCode m_SCdbaccess
Definition DBReader.h:128
IMessageSvc * m_msgSvc
Definition DBReader.h:136
std::string TGCreadoutName(int ichtyp)
Definition DBReader.cxx:24
const std::string & getGeometryVersion() const
Definition DBReader.cxx:22
The Athena Transient Store API.
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
IMessageSvc * getMessageSvc(bool quiet=false)
Ensure that the Athena extensions are properly loaded.
Definition GeoMuonHits.h:27