ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
MuonGM::DBReader Class Reference

#include <DBReader.h>

Inheritance diagram for MuonGM::DBReader:
Collaboration diagram for MuonGM::DBReader:

Public Member Functions

virtual StatusCode ProcessDB (MYSQL &)
 
void setGeometryVersion (std::string s)
 
const std::string & getGeometryVersion () const
 
void setManager (MuonDetectorManager *detmgr)
 
virtual ~DBReader ()
 

Protected Member Functions

 DBReader (StoreGateSvc *)
 
std::string TGCreadoutName (int ichtyp)
 

Protected Attributes

StatusCode m_SCdbaccess
 
std::vector< std::string > m_tgcReadoutMapping
 
MuonDetectorManagerm_mgr
 

Private Attributes

IMessageSvc * m_msgSvc
 
std::string m_version
 

Detailed Description

Definition at line 116 of file DBReader.h.

Constructor & Destructor Documentation

◆ ~DBReader()

virtual MuonGM::DBReader::~DBReader ( )
inlinevirtual

Definition at line 123 of file DBReader.h.

123 {};

◆ DBReader()

MuonGM::DBReader::DBReader ( StoreGateSvc )
protected

Definition at line 13 of file DBReader.cxx.

13  :
14  m_SCdbaccess (StatusCode::SUCCESS),
15  m_mgr(nullptr),
17  {
18  }

Member Function Documentation

◆ getGeometryVersion()

const std::string & MuonGM::DBReader::getGeometryVersion ( ) const

Definition at line 22 of file DBReader.cxx.

22 { return m_version; }

◆ ProcessDB()

virtual StatusCode MuonGM::DBReader::ProcessDB ( MYSQL )
inlinevirtual

Reimplemented in MuonGM::RDBReaderAtlas.

Definition at line 118 of file DBReader.h.

118 { return StatusCode::SUCCESS; };

◆ setGeometryVersion()

void MuonGM::DBReader::setGeometryVersion ( std::string  s)

Definition at line 20 of file DBReader.cxx.

20 { m_version = std::move(geoVersion); }

◆ setManager()

void MuonGM::DBReader::setManager ( MuonDetectorManager detmgr)
inline

Definition at line 121 of file DBReader.h.

121 { m_mgr = detmgr; };

◆ TGCreadoutName()

std::string MuonGM::DBReader::TGCreadoutName ( int  ichtyp)
protected

Definition at line 24 of file DBReader.cxx.

24  {
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  }

Member Data Documentation

◆ m_mgr

MuonDetectorManager* MuonGM::DBReader::m_mgr
protected

Definition at line 132 of file DBReader.h.

◆ m_msgSvc

IMessageSvc* MuonGM::DBReader::m_msgSvc
private

Definition at line 136 of file DBReader.h.

◆ m_SCdbaccess

StatusCode MuonGM::DBReader::m_SCdbaccess
protected

Definition at line 128 of file DBReader.h.

◆ m_tgcReadoutMapping

std::vector<std::string> MuonGM::DBReader::m_tgcReadoutMapping
protected

Definition at line 131 of file DBReader.h.

◆ m_version

std::string MuonGM::DBReader::m_version
private

Definition at line 137 of file DBReader.h.


The documentation for this class was generated from the following files:
MuonGM::DBReader::m_version
std::string m_version
Definition: DBReader.h:137
MuonGM::DBReader::m_SCdbaccess
StatusCode m_SCdbaccess
Definition: DBReader.h:128
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuonGM::DBReader::m_mgr
MuonDetectorManager * m_mgr
Definition: DBReader.h:132
MuonGM::DBReader::m_tgcReadoutMapping
std::vector< std::string > m_tgcReadoutMapping
Definition: DBReader.h:131
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonGM::DBReader::m_msgSvc
IMessageSvc * m_msgSvc
Definition: DBReader.h:136