1 #ifndef DATAFORMATS_HCALDETID_HCALELECTRONICSID_H 2 #define DATAFORMATS_HCALDETID_HCALELECTRONICSID_H 1 54 void setHTR(
int crate,
int slot,
int tb);
int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
int htrSlot() const
get the htr slot
static int slbChan(const HcalTriggerPrimitiveSample &theSample)
int crateId() const
get the readout VME crate number
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), valid for VME
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 for VME, crate number for uTCA
int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
void setHTR(int crate, int slot, int tb)
int slot() const
get the htr or uHTR slot
bool isTriggerChainId() const
std::ostream & operator<<(std::ostream &, const HcalElectronicsId &)
int operator==(const HcalElectronicsId &id) const
int subtype() const
get subtype for this channel (valid for uTCA only)
static const int maxDCCId
int linearIndex() const
get a fast, compact, unique index for linear lookups
int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
static const int maxLinearIndex
uint32_t hcalElectronicsId_
Readout chain identification for Hcal.