ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonGeoModel
src
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
7
#include "
MuonGeoModel/DBReader.h
"
8
9
#include "
StoreGate/StoreGateSvc.h
"
10
11
namespace
MuonGM
{
12
13
DBReader::DBReader
(
StoreGateSvc
*
/*pDetStore*/
) :
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
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition:
GeoMuonHits.h:27
MuonGM::DBReader::setGeometryVersion
void setGeometryVersion(std::string s)
Definition:
DBReader.cxx:20
MuonGM::DBReader::m_version
std::string m_version
Definition:
DBReader.h:137
DBReader.h
MuonGM::DBReader::DBReader
DBReader(StoreGateSvc *)
Definition:
DBReader.cxx:13
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition:
getMessageSvc.cxx:20
StoreGateSvc
The Athena Transient Store API.
Definition:
StoreGateSvc.h:125
Athena
Some weak symbol referencing magic...
Definition:
AthLegacySequence.h:21
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGM::DBReader::TGCreadoutName
std::string TGCreadoutName(int ichtyp)
Definition:
DBReader.cxx:24
MuonGM::DBReader::m_tgcReadoutMapping
std::vector< std::string > m_tgcReadoutMapping
Definition:
DBReader.h:131
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
MuonGM::DBReader::getGeometryVersion
const std::string & getGeometryVersion() const
Definition:
DBReader.cxx:22
StoreGateSvc.h
Generated on Thu Nov 7 2024 21:13:29 for ATLAS Offline Software by
1.8.18