10 std::atomic<bool> L1CaloSrcIdMap::s_useSWROD =
false;
19 eformat::SubDetector subdet)
const
24 moduleId |= (0x1<<12);
26 eformat::helper::SourceIdentifier helpID(subdet, moduleId);
41 eformat::helper::SourceIdentifier id(rob_id);
42 eformat::helper::SourceIdentifier
id2(
id.subdetector_id(), 0);
50 eformat::helper::SourceIdentifier id(ros_id);
51 eformat::helper::SourceIdentifier
id2(
id.subdetector_id(), 0);
59 eformat::helper::SourceIdentifier id(code);
60 return id.module_id() & 0xf;
67 eformat::helper::SourceIdentifier id(code);
68 return (
id.module_id() >> 7) & 0x1;
75 eformat::helper::SourceIdentifier id(code);
76 return (
id.module_id() >> 4) & 0x3;
90 eformat::helper::SourceIdentifier id(code);
91 return id.subdetector_id();
int crate(uint32_t code) const
Return crate from unpacked moduleID.
uint32_t getRodID(int crate, int slink, int daqOrRoi, eformat::SubDetector subdet) const
Make a ROD Source ID.
int daqOrRoi(uint32_t code) const
Return daqOrRoi from unpacked moduleID.
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.
eformat::SubDetector subDet(uint32_t code) const
Return sub-detector for given ID.
int slink(uint32_t code) const
Return slink from unpacked moduleID.
int maxSlinks() const
Return the maximum possible number of slinks.
uint32_t getRosID(uint32_t rob_id) const
Make a ROS Source ID from a ROB source ID.
uint32_t getDetID(uint32_t ros_id) const
Make a SubDetector ID from ROS source ID.