ATLAS Offline Software
Loading...
Searching...
No Matches
TGC_Hid2RESrcID.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONTGC_CNVTOOLS_TGC_HID2RESRCID
6#define MUONTGC_CNVTOOLS_TGC_HID2RESRCID
7
8#include <inttypes.h>
9
10#include <vector>
11
12class TgcRdo;
13class Identifier;
14
15namespace Muon {
16class TgcCablingMap;
17
27
29 public:
31 TGC_Hid2RESrcID() = default;
32
34 ~TGC_Hid2RESrcID() = default;
35
37 static uint32_t getRodID(const TgcRdo* rdo);
39 static uint32_t getRodID(uint16_t subDetectorId, uint16_t rodId);
41 static uint32_t getRodID(const Identifier& offlineId,
42 const TgcCablingMap* cabling);
44 static uint32_t getRobID(uint32_t rod_id);
46 static uint32_t getRosID(uint32_t rob_id);
48 static uint32_t getDetID(uint32_t ros_id);
49
51 const std::vector<uint32_t>& allRobIds() const { return m_robIDs; }
52
54 void fillAllRobIds();
55
56 private:
57 std::vector<uint32_t> m_robIDs;
58};
59
60} // namespace Muon
61
62#endif // MUONTGC_CNVTOOLS_TGC_HID2RESRCID
static uint32_t getRobID(uint32_t rod_id)
Make a ROB Source ID from a ROD source ID.
static uint32_t getRodID(const TgcRdo *rdo)
Make a ROD Source ID for TGC RDO.
static uint32_t getRosID(uint32_t rob_id)
Make a ROS Source ID from a ROB source ID.
static uint32_t getDetID(uint32_t ros_id)
Make a SubDetector ID from ROS source ID.
TGC_Hid2RESrcID()=default
Constrcutor.
const std::vector< uint32_t > & allRobIds() const
Return all the ROB IDs.
std::vector< uint32_t > m_robIDs
~TGC_Hid2RESrcID()=default
Destrcutor.
void fillAllRobIds()
Fill all the ROB IDs.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.