Go to the documentation of this file. 1 #ifndef DATAFORMATS_HCALDETID_HCALELECTRONICSID_H
2 #define DATAFORMATS_HCALDETID_HCALELECTRONICSID_H 1
41 ((
dccid & 0x1F) << 9))) {}
45 (uint32_t)((
slbChan & 0x3) | (((slbSite)&0x7) << 2) | ((
spigot & 0xF) << 5) | ((
dccid & 0x1F) << 9))) {
99 constexpr
int slot()
const {
constexpr uint32_t operator()()
constexpr void setHTR(int crate, int slot, int tb)
constexpr int readoutVMECrateId() const
get the readout VME crate number
constexpr int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
constexpr int htrSlot() const
get the htr slot
constexpr int slot() const
get the htr or uHTR slot
constexpr HcalElectronicsId(int crate, int slot, int fiber, int fc, bool isTrigger)
static int slbChan(const HcalTriggerPrimitiveSample &theSample)
constexpr HcalElectronicsId()
constexpr HcalElectronicsId(uint32_t id)
constexpr int subtype() const
get subtype for this channel (valid for uTCA only)
constexpr HcalElectronicsId(int fiberChan, int fiberIndex, int spigot, int dccid)
constexpr int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
constexpr bool isVMEid() const
Readout chain identification for Hcal.
constexpr int operator<(const HcalElectronicsId &id) const
Compare the id to another id for use in a map.
std::ostream & operator<<(std::ostream &, const HcalElectronicsId &)
constexpr bool isUTCAid() const
constexpr bool isTriggerChainId() const
constexpr int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom), valid for VME
static const int maxLinearIndex
constexpr int linearIndex() const
get a fast, compact, unique index for linear lookups
constexpr uint32_t rawId() const
constexpr int crateId() const
get the readout VME crate number
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
uint32_t hcalElectronicsId_
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
constexpr int htrChanId() const
get the HTR channel id (1-24)
constexpr int operator==(const HcalElectronicsId &id) const
static const int maxDCCId
constexpr int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
constexpr HcalElectronicsId(int slbChan, int slbSite, int spigot, int dccid, int crate, int slot, int tb)
std::string slbChannelCode() const
get the HTR-wide slb channel code (letter plus number)
constexpr int operator!=(const HcalElectronicsId &id) const