#include <CSCcablingSvc.h>
|
| CSCcablingSvc (const std::string &name, ISvcLocator *sl) |
|
virtual | ~CSCcablingSvc ()=default |
|
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvIF) |
|
virtual StatusCode | initialize (void) |
|
bool | onlineId (const uint16_t subdetectorID, const uint16_t offlineID, uint32_t &rodId) const |
| map offline ROD identifier to online ID More...
|
|
bool | onlineId (const uint16_t offlineID, uint16_t &rodId) const |
|
bool | offlineId (const uint32_t onlineIdentifier, uint16_t &rodId) const |
| reverse map of online ID into offline ROD ID More...
|
|
bool | is_rodId (const uint16_t rodId) const |
| check that we have the correct online ROD id More...
|
|
bool | is_offlineRodId (const uint16_t rodId) const |
| check that we have the correct offline ROD id More...
|
|
uint16_t | collectionId (const uint16_t subdetectorId, const uint16_t rodId) const |
| calculate the collection Identifier More...
|
|
unsigned int | nSide () const |
|
unsigned int | nROD () const |
|
unsigned int | maxId () const |
|
void | hash2Rob (const unsigned int &, uint32_t &) const |
| map PRD collection ID into short ROB ID, e.g. More...
|
|
void | hash2RobFull (const unsigned int &, uint32_t &) const |
| map PRD collection ID into full ROB ID (with subdetector ID), e.g. More...
|
|
void | hash2Rod (const unsigned int &, uint32_t &) const |
| map PRD collection ID into offline ROD ID More...
|
|
void | hash2SubdetectorId (const unsigned int &, uint32_t &) const |
| map PRD collection ID into subdetector ID, i.e. More...
|
|
void | hash2CollectionId (const unsigned int &, uint16_t &) const |
| map PRD collection ID into RDO collection ID More...
|
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 23 of file CSCcablingSvc.h.
◆ CSCcablingSvc()
CSCcablingSvc::CSCcablingSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
sl |
|
) |
| |
◆ ~CSCcablingSvc()
virtual CSCcablingSvc::~CSCcablingSvc |
( |
| ) |
|
|
virtualdefault |
◆ collectionId()
uint16_t CSCcablingSvc::collectionId |
( |
const uint16_t |
subdetectorId, |
|
|
const uint16_t |
rodId |
|
) |
| const |
calculate the collection Identifier
Definition at line 200 of file CSCcablingSvc.cxx.
202 uint16_t subId = (subDetectorId == 0x6A) ? 0 : 1;
207 if((rodId & 0x10) == 0x10){
208 onlineColId = subId*this->
nROD() + rodId - 16;
210 onlineColId = subId*this->
nROD() + rodId;
◆ hash2CollectionId()
void CSCcablingSvc::hash2CollectionId |
( |
const unsigned int & |
hashid, |
|
|
uint16_t & |
collectionid |
|
) |
| const |
◆ hash2Rob()
void CSCcablingSvc::hash2Rob |
( |
const unsigned int & |
hashid, |
|
|
uint32_t & |
robid |
|
) |
| const |
map PRD collection ID into short ROB ID, e.g.
0x81
Definition at line 216 of file CSCcablingSvc.cxx.
◆ hash2RobFull()
void CSCcablingSvc::hash2RobFull |
( |
const unsigned int & |
hashid, |
|
|
uint32_t & |
robid |
|
) |
| const |
map PRD collection ID into full ROB ID (with subdetector ID), e.g.
0x6a0081
Definition at line 367 of file CSCcablingSvc.cxx.
374 robid = (subdetectorid << 16) | shortRobID;
◆ hash2Rod()
void CSCcablingSvc::hash2Rod |
( |
const unsigned int & |
hashid, |
|
|
uint32_t & |
rodid |
|
) |
| const |
◆ hash2SubdetectorId()
void CSCcablingSvc::hash2SubdetectorId |
( |
const unsigned int & |
hashid, |
|
|
uint32_t & |
subdetectorid |
|
) |
| const |
map PRD collection ID into subdetector ID, i.e.
0x69 or 0x6a
Definition at line 360 of file CSCcablingSvc.cxx.
361 if ((hashid >= 8 && hashid <= 15) || (hashid >= 24))
362 subdetectorid = 0x69;
364 subdetectorid = 0x6a;
◆ initialize()
StatusCode CSCcablingSvc::initialize |
( |
void |
| ) |
|
|
virtual |
Definition at line 36 of file CSCcablingSvc.cxx.
42 SmartIF<IRDBAccessSvc> rdbAccess{service(
"RDBAccessSvc")};
45 SmartIF<IGeoModelSvc> geoModel{service(
"GeoModelSvc")};
50 std::string atlasVersion = geoModel->atlasVersion();
52 IRDBRecordset_ptr atlasCommonRec = rdbAccess->getRecordsetPtr(
"AtlasCommon",atlasVersion,
"ATLAS");
53 if(atlasCommonRec->size()==0) {
56 std::string configVal = (*atlasCommonRec)[0]->getString(
"CONFIG");
57 if(configVal==
"RUN1"){
59 }
else if(configVal==
"RUN2" || configVal==
"RUN3" || configVal==
"RUN4") {
62 ATH_MSG_FATAL(
"Unexpected value for geometry config read from the database: " << configVal);
63 return StatusCode::FAILURE;
70 return StatusCode::SUCCESS;
◆ interfaceID()
static const InterfaceID& CSCcablingSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ is_offlineRodId()
bool CSCcablingSvc::is_offlineRodId |
( |
const uint16_t |
rodId | ) |
const |
check that we have the correct offline ROD id
Definition at line 189 of file CSCcablingSvc.cxx.
191 bool check = rodId == 0x0 || rodId == 0x1 || rodId == 0x2 || rodId == 0x3 ||
192 rodId == 0x4 || rodId == 0x5 || rodId == 0x6 || rodId == 0x7;
195 if((0x10 & rodId)==0x10)
check =
true;
◆ is_rodId()
bool CSCcablingSvc::is_rodId |
( |
const uint16_t |
rodId | ) |
const |
check that we have the correct online ROD id
Definition at line 177 of file CSCcablingSvc.cxx.
179 bool check = rodId == 0x5 || rodId == 0x7 || rodId == 0x9 || rodId == 0x11 ||
180 rodId == 0x15 || rodId == 0x17 || rodId == 0x19 || rodId == 0x21;
183 if((rodId & 0x70) == 0)
check =
true;
◆ maxId()
unsigned int CSCcablingSvc::maxId |
( |
| ) |
const |
|
inline |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ nROD()
unsigned int CSCcablingSvc::nROD |
( |
| ) |
const |
|
inline |
◆ nSide()
unsigned int CSCcablingSvc::nSide |
( |
| ) |
const |
|
inline |
◆ offlineId()
bool CSCcablingSvc::offlineId |
( |
const uint32_t |
onlineIdentifier, |
|
|
uint16_t & |
rodId |
|
) |
| const |
reverse map of online ID into offline ROD ID
Definition at line 125 of file CSCcablingSvc.cxx.
127 uint16_t id = onlineIdentifier & 0xFFFF;
164 if(!
check && (
id & 0x70) == 0){
167 rodId = (((
id & 0xf) >> 1) | 0x10);
169 rodId = (((
id & 0xf) >> 1) | 0x18);
◆ onlineId() [1/2]
bool CSCcablingSvc::onlineId |
( |
const uint16_t |
offlineID, |
|
|
uint16_t & |
rodId |
|
) |
| const |
Definition at line 83 of file CSCcablingSvc.cxx.
86 switch ( offlineID ) {
116 if((offlineID & 0x1F) & 0x10){
119 rodId = 0x80 | (0xF & offlineID);
◆ onlineId() [2/2]
bool CSCcablingSvc::onlineId |
( |
const uint16_t |
subdetectorID, |
|
|
const uint16_t |
offlineID, |
|
|
uint32_t & |
rodId |
|
) |
| const |
map offline ROD identifier to online ID
Definition at line 74 of file CSCcablingSvc.cxx.
76 bool check = subDetectorID == 0x6A || subDetectorID == 0x69;
79 rodId = (subDetectorID << 16) |
id;
◆ queryInterface()
StatusCode CSCcablingSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvIF |
|
) |
| |
|
virtual |
Definition at line 25 of file CSCcablingSvc.cxx.
30 return ::AthService::queryInterface(riid, ppvIF);
33 return StatusCode::SUCCESS;
◆ m_max
unsigned int CSCcablingSvc::m_max |
|
private |
◆ m_rod
unsigned int CSCcablingSvc::m_rod |
|
private |
◆ m_run1
bool CSCcablingSvc::m_run1 |
|
private |
◆ m_side
unsigned int CSCcablingSvc::m_side |
|
private |
The documentation for this class was generated from the following files: