10#include "eformat/SourceIdentifier.h"
12using eformat::helper::SourceIdentifier;
29 unsigned short int RODid;
30 unsigned short int Iside;
31 unsigned short int SLid;
34 uint8_t rodIndex = (uint8_t)RODid;
35 uint16_t side = Iside;
37 eformat::SubDetector detid =
38 (side == eformat::MUON_RPC_BARREL_A_SIDE) ? eformat::MUON_RPC_BARREL_A_SIDE : eformat::MUON_RPC_BARREL_C_SIDE;
40 SourceIdentifier sid(detid, rodIndex);
41 uint32_t rod_id = sid.code();
45 if (side == 0x65 && (SLid == 23 || SLid == 24)) {
48 }
else if (side == 0x65 && SLid == 7) {
50 }
else if (side == 0x65 && SLid == 8) {
67 int key = side * 10000 + slogic * 100 + padId;
69 uint8_t rodIndex = (uint8_t)
index.RODid();
71 eformat::SubDetector detid = (side == 1) ? eformat::MUON_RPC_BARREL_A_SIDE : eformat::MUON_RPC_BARREL_C_SIDE;
73 SourceIdentifier sid(detid, rodIndex);
74 uint32_t rod_id = sid.code();
81 uint8_t rodIndex = (uint8_t)((sector % 32) / 2);
82 int side = (sector < 32) ? 0 : 1;
84 eformat::SubDetector detid = (side == 1) ? eformat::MUON_RPC_BARREL_A_SIDE : eformat::MUON_RPC_BARREL_C_SIDE;
86 SourceIdentifier sid(detid, rodIndex);
87 uint32_t rod_id = sid.code();
94 eformat::SubDetector detid = (side == 1) ? eformat::MUON_RPC_BARREL_A_SIDE : eformat::MUON_RPC_BARREL_C_SIDE;
95 SourceIdentifier sid(detid, rodIndex);
96 uint32_t rod_id = sid.code();
108 SourceIdentifier id(rob_id);
109 SourceIdentifier
id2(
id.subdetector_id(), 0);
117 SourceIdentifier id(ros_id);
118 SourceIdentifier
id2(
id.subdetector_id(), 0);
uint32_t getRodID(const Identifier &offlineId, const RpcCablingCondData *readCdo) const
static uint32_t getDetID(const uint32_t ros_id)
mapping SrcID from ROS to Det
static uint32_t getRosID(const uint32_t rob_id)
mapping SrcID from ROB to ROS
static uint32_t getRobID(const uint32_t rod_id)
mapping SrcID from ROD to ROB (called in ByteStreamCnvSvcBase/FullEventAssembler.icc)
const RpcIdHelper * m_rpcIdHelper
void set(const RpcIdHelper *rpdId)
bool give_RODid(const Identifier &compactID, unsigned short int &id) const
std::map< int, RDOindex, std::less< int > > RDOmap
const RDOmap & give_RDOs(void) const
bool give_side(const Identifier &compactID, unsigned short int &id) const
bool give_SLid(const Identifier &compactID, unsigned short int &id) const