1 #ifndef DATAFORMATS_HCALDETID_HCALELECTRONICSID_H
2 #define DATAFORMATS_HCALDETID_HCALELECTRONICSID_H 1
28 HcalElectronicsId(
int slbChan,
int slbSite,
int spigot,
int dccid,
int crate,
int slot,
int tb);
36 void setHTR(
int crate,
int slot,
int tb);
int fiberIndex() const
get the fiber index [1-8] (which of eight fibers carried by a spigot) (valid only for non-trigger-cha...
int htrSlot() const
get the htr slot
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int readoutVMECrateId() const
get the readout VME crate number
int operator<(const HcalElectronicsId &id) const
Compare the id to another id for use in a map.
int operator!=(const HcalElectronicsId &id) const
int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom)
std::string slbChannelCode() const
get the HTR-wide slb channel code (letter plus number)
int htrChanId() const
get the HTR channel id (1-24)
int dccid() const
get the (Hcal local) DCC id
int fiberChanId() const
get the fiber channel id (which of three channels on a readout fiber) (valid only for non-trigger-cha...
int spigot() const
get the spigot (input number on DCC)
int slbChannelIndex() const
get the SLB channel index (valid only for trigger-chain ids)
void setHTR(int crate, int slot, int tb)
bool isTriggerChainId() const
int operator==(const HcalElectronicsId &id) const
static const int maxDCCId
int linearIndex() const
get a fast, compact, unique index for linear lookups (maximum value = 16384)
int slbSiteNumber() const
get the SLB site number (valid only for trigger-chain ids)
static const int maxLinearIndex
uint32_t hcalElectronicsId_
Readout chain identification for Hcal [31:26] Unused (so far) [25] Trigger-chain id flag [24:20] Read...