CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Attributes
HcalElectronicsId Class Reference

Readout chain identification for Hcal. More...

#include <HcalElectronicsId.h>

Public Member Functions

constexpr int crateId () const
 get the readout VME crate number More...
 
constexpr int dccid () const
 get the (Hcal local) DCC id for VME, crate number for uTCA More...
 
constexpr int fiberChanId () const
 get the fiber channel id (which of channels on a fiber) More...
 
constexpr int fiberIndex () const
 get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zero-based More...
 
constexpr HcalElectronicsId ()
 
constexpr HcalElectronicsId (uint32_t id)
 
constexpr HcalElectronicsId (int fiberChan, int fiberIndex, int spigot, int dccid)
 
constexpr HcalElectronicsId (int slbChan, int slbSite, int spigot, int dccid, int crate, int slot, int tb)
 
constexpr HcalElectronicsId (int crate, int slot, int fiber, int fc, bool isTrigger)
 
constexpr int htrChanId () const
 get the HTR channel id (1-24) More...
 
constexpr int htrSlot () const
 get the htr slot More...
 
constexpr int htrTopBottom () const
 get the htr top/bottom (1=top/0=bottom), valid for VME More...
 
constexpr bool isTriggerChainId () const
 
constexpr bool isUTCAid () const
 
constexpr bool isVMEid () const
 
constexpr int linearIndex () const
 get a fast, compact, unique index for linear lookups More...
 
constexpr int operator!= (const HcalElectronicsId &id) const
 
constexpr uint32_t operator() ()
 
constexpr int operator< (const HcalElectronicsId &id) const
 Compare the id to another id for use in a map. More...
 
constexpr int operator== (const HcalElectronicsId &id) const
 
constexpr uint32_t rawId () const
 
constexpr int readoutVMECrateId () const
 get the readout VME crate number More...
 
constexpr void setHTR (int crate, int slot, int tb)
 
std::string slbChannelCode () const
 get the HTR-wide slb channel code (letter plus number) More...
 
constexpr int slbChannelIndex () const
 get the SLB channel index (valid only for VME trigger-chain ids) More...
 
constexpr int slbSiteNumber () const
 get the SLB site number (valid only for VME trigger-chain ids) More...
 
constexpr int slot () const
 get the htr or uHTR slot More...
 
constexpr int spigot () const
 get the spigot (input number on DCC, AMC card number for uTCA) More...
 
constexpr int subtype () const
 get subtype for this channel (valid for uTCA only) More...
 

Static Public Attributes

static const int maxDCCId = 31
 
static const int maxLinearIndex = 0x7FFFF
 

Private Attributes

uint32_t hcalElectronicsId_
 

Detailed Description

Readout chain identification for Hcal.

[31:27] Unused (so far) [26] VME (0), uTCA (1)

For VME Electronics: [25] Trigger-chain id flag [24:20] Readout Crate Id [19] HTR FPGA selector [t/b] [18:14] HTR Slot [13:9] DCC id [8:5] Spigot [4:2] FiberIndex or SLB site [1:0] FiberChanId or SLB channel

For uTCA Electronics:

[25] Is Trigger Id [18:13] Readout Crate Id [12:9] Slot [8:4] Fiber [3:0] FiberChanId

Definition at line 32 of file HcalElectronicsId.h.

Constructor & Destructor Documentation

constexpr HcalElectronicsId::HcalElectronicsId ( )
inline

Default constructor – invalid value

Definition at line 35 of file HcalElectronicsId.h.

36  : hcalElectronicsId_{0xffffffffu}
37  {}
constexpr HcalElectronicsId::HcalElectronicsId ( uint32_t  id)
inline

from raw

Definition at line 39 of file HcalElectronicsId.h.

40  : hcalElectronicsId_{id}
41  {}
constexpr HcalElectronicsId::HcalElectronicsId ( int  fiberChan,
int  fiberIndex,
int  spigot,
int  dccid 
)
inline

VME Constructor from fiberchan,fiber index,spigot,dccid

Definition at line 43 of file HcalElectronicsId.h.

44  : hcalElectronicsId_((uint32_t)((fiberChan&0x3) | (((fiberIndex-1)&0x7)<<2) |
45  ((spigot&0xF)<<5) | ((dccid&0x1F)<<9)))
46  {}
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
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 HcalElectronicsId::HcalElectronicsId ( int  slbChan,
int  slbSite,
int  spigot,
int  dccid,
int  crate,
int  slot,
int  tb 
)
inline

VME Constructor from slb channel,slb site,spigot,dccid

Definition at line 48 of file HcalElectronicsId.h.

References hcalElectronicsId_.

50  : hcalElectronicsId_((uint32_t)((slbChan&0x3) | (((slbSite)&0x7)<<2) |
51  ((spigot&0xF)<<5) | ((dccid&0x1F)<<9))) {
52  hcalElectronicsId_|=((tb&0x1)<<19) | ((slot&0x1f)<<14) | ((crate&0x3f)<<20);
53  hcalElectronicsId_|=0x02000000;
54  }
static int slbChan(const HcalTriggerPrimitiveSample &theSample)
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
constexpr int slot() const
get the htr or uHTR slot
constexpr HcalElectronicsId::HcalElectronicsId ( int  crate,
int  slot,
int  fiber,
int  fc,
bool  isTrigger 
)
inline

uTCA constructor

Definition at line 56 of file HcalElectronicsId.h.

References hcalElectronicsId_.

57  : hcalElectronicsId_((int)((fc&0xF) | (((fiber)&0x1F)<<4) |
58  ((slot&0xF)<<9) | ((crate&0x3F)<<13))) {
59  if (isTrigger) hcalElectronicsId_|=0x02000000;
60  hcalElectronicsId_|=0x04000000;
61  }
constexpr int slot() const
get the htr or uHTR slot

Member Function Documentation

constexpr int HcalElectronicsId::crateId ( ) const
inline

get the readout VME crate number

Definition at line 108 of file HcalElectronicsId.h.

References hcalElectronicsId_, and isVMEid().

Referenced by QIE10Task::_process(), QIE11Task::_process(), FCDTask::bookHistograms(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), dccid(), hcaldqm::quantity::CrateQuantity::getBin(), hcaldqm::utilities::getCrateHashMap(), hcaldqm::utilities::getCrateList(), hcaldqm::quantity::getEid_FEDuTCASlot(), hcaldqm::quantity::getLabels_FED(), hcaldqm::quantity::getLabels_FEDuTCA(), hcaldqm::quantity::getLabels_FEDuTCASlot(), hcaldqm::quantity::FEDQuantity::getValue(), hcaldqm::quantity::CrateQuantity::getValue(), hcaldqm::quantity::getValue_Crate(), hcaldqm::quantity::getValue_CrateuTCA(), hcaldqm::quantity::getValue_CrateVME(), hcaldqm::quantity::getValue_FED(), hcaldqm::quantity::getValue_FEDuTCA(), hcaldqm::quantity::getValue_FEDVME(), hcaldqm::hashfunctions::hash_Crate(), hcaldqm::hashfunctions::hash_CrateSlot(), hcaldqm::hashfunctions::hash_CrateSpigot(), hcaldqm::hashfunctions::hash_EChannel(), hcaldqm::hashfunctions::hash_FED(), hcaldqm::hashfunctions::hash_FEDSlot(), hcaldqm::hashfunctions::hash_FEDSpigot(), hcaldqm::utilities::isFEDHBHE(), hcaldqm::utilities::isFEDHF(), hcaldqm::hashfunctions::name_Crate(), hcaldqm::hashfunctions::name_CrateSlot(), hcaldqm::hashfunctions::name_CrateSpigot(), hcaldqm::hashfunctions::name_EChannel(), hcaldqm::hashfunctions::name_FED(), hcaldqm::hashfunctions::name_FEDSlot(), hcaldqm::hashfunctions::name_FEDSpigot(), and readoutVMECrateId().

108 { return (isVMEid())?((hcalElectronicsId_>>20)&0x1F):((hcalElectronicsId_>>13)&0x3F); }
constexpr bool isVMEid() const
constexpr int HcalElectronicsId::dccid ( ) const
inline

get the (Hcal local) DCC id for VME, crate number for uTCA

Definition at line 98 of file HcalElectronicsId.h.

References crateId(), hcalElectronicsId_, and isVMEid().

Referenced by ZDCTask::analyze(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), HtrXmlPatternTool::Fill(), HcalQLPlotHistoMgr::GetAHistogram(), hcaldqm::utilities::getCrateHashMap(), hcaldqm::quantity::getEid_FEDVMESpigot(), hcaldqm::quantity::getLabels_FED(), hcaldqm::quantity::getLabels_FEDVMESpigot(), hcaldqm::quantity::FEDQuantity::getValue(), hcaldqm::hashfunctions::hash_Crate(), hcaldqm::hashfunctions::hash_CrateSlot(), hcaldqm::hashfunctions::hash_CrateSpigot(), hcaldqm::hashfunctions::hash_EChannel(), hcaldqm::hashfunctions::hash_FED(), hcaldqm::hashfunctions::hash_FEDSlot(), hcaldqm::hashfunctions::hash_FEDSpigot(), hcaldqm::utilities::isFEDHO(), hcaldqm::hashfunctions::name_EChannel(), hcaldqm::hashfunctions::name_FED(), hcaldqm::hashfunctions::name_FEDSlot(), hcaldqm::hashfunctions::name_FEDSpigot(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HTLogicalMapEntry::printLMapLine(), HcalCableMapper::process(), and SelectedElectronFEDListProducer< TEle, TCand >::produce().

98 { return (isVMEid())?((hcalElectronicsId_>>9)&0x1F):crateId(); }
constexpr bool isVMEid() const
constexpr int crateId() const
get the readout VME crate number
constexpr int HcalElectronicsId::fiberChanId ( ) const
inline

get the fiber channel id (which of channels on a fiber)

Definition at line 81 of file HcalElectronicsId.h.

References hcalElectronicsId_, and isVMEid().

Referenced by ZDCTask::analyze(), FCDTask::bookHistograms(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), HcalQLPlotHistoMgr::GetAHistogram(), hcaldqm::quantity::getEid_FiberuTCAFiberCh(), hcaldqm::quantity::getEid_FiberuTCATPFiberChuTCATP(), hcaldqm::quantity::getEid_FiberVMEFiberCh(), hcaldqm::quantity::getLabels_FiberCh(), hcaldqm::quantity::getLabels_FiberChuTCATP(), hcaldqm::quantity::getLabels_FiberuTCAFiberCh(), hcaldqm::quantity::getLabels_FiberuTCATPFiberChuTCATP(), hcaldqm::quantity::getLabels_FiberVMEFiberCh(), hcaldqm::quantity::getValue_FiberCh(), hcaldqm::quantity::getValue_FiberChuTCATP(), hcaldqm::hashfunctions::hash_EChannel(), htrChanId(), hcaldqm::hashfunctions::name_EChannel(), HcalLuttoDB::openPerLut1(), UHTRpacker::packQIE10header(), UHTRpacker::packQIE11header(), UHTRpacker::packQIE8header(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HcalCableMapper::process(), HcalLedAnalysis::processLedEvent(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), and HcalLuttoDB::writeoutlut1().

81 { return (isVMEid())?(hcalElectronicsId_&0x3):(hcalElectronicsId_&0xF); }
constexpr bool isVMEid() const
constexpr int HcalElectronicsId::fiberIndex ( ) const
inline

get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zero-based

Definition at line 83 of file HcalElectronicsId.h.

References hcalElectronicsId_, and isVMEid().

Referenced by ZDCTask::analyze(), FCDTask::bookHistograms(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), HcalQLPlotHistoMgr::GetAHistogram(), hcaldqm::quantity::getEid_FiberuTCAFiberCh(), hcaldqm::quantity::getEid_FiberuTCATPFiberChuTCATP(), hcaldqm::quantity::getEid_FiberVMEFiberCh(), hcaldqm::quantity::getLabels_FiberuTCA(), hcaldqm::quantity::getLabels_FiberuTCAFiberCh(), hcaldqm::quantity::getLabels_FiberuTCATP(), hcaldqm::quantity::getLabels_FiberuTCATPFiberChuTCATP(), hcaldqm::quantity::getLabels_FiberVME(), hcaldqm::quantity::getLabels_FiberVMEFiberCh(), hcaldqm::quantity::getValue_FiberuTCA(), hcaldqm::quantity::getValue_FiberuTCATP(), hcaldqm::quantity::getValue_FiberVME(), hcaldqm::hashfunctions::hash_EChannel(), htrChanId(), hcaldqm::hashfunctions::name_EChannel(), HcalLuttoDB::openPerLut1(), UHTRpacker::packQIE10header(), UHTRpacker::packQIE11header(), UHTRpacker::packQIE8header(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HcalCableMapper::process(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), and HcalLuttoDB::writeoutlut1().

83 { return (isVMEid())?(((hcalElectronicsId_>>2)&0x7)+1):((hcalElectronicsId_>>4)&0x1F); }
constexpr bool isVMEid() const
constexpr int HcalElectronicsId::htrChanId ( ) const
inline

get the HTR channel id (1-24)

Definition at line 90 of file HcalElectronicsId.h.

References fiberChanId(), fiberIndex(), isVMEid(), slbChannelCode(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HtrXmlPatternTool::Fill().

90 { return isVMEid()?((fiberChanId()+1)+((fiberIndex()-1)*3)):(0); }
constexpr bool isVMEid() const
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 int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
constexpr int HcalElectronicsId::htrSlot ( ) const
inline
constexpr int HcalElectronicsId::htrTopBottom ( ) const
inline
constexpr bool HcalElectronicsId::isTriggerChainId ( ) const
inline

Definition at line 69 of file HcalElectronicsId.h.

References hcalElectronicsId_.

Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >(), operator<<(), and slbChannelCode().

69 { return (hcalElectronicsId_&0x02000000)!=0; }
constexpr bool HcalElectronicsId::isUTCAid ( ) const
inline
constexpr bool HcalElectronicsId::isVMEid ( ) const
inline
constexpr int HcalElectronicsId::linearIndex ( ) const
inline
constexpr int HcalElectronicsId::operator!= ( const HcalElectronicsId id) const
inline

Non-Equality operator

Definition at line 118 of file HcalElectronicsId.h.

References hcalElectronicsId_.

118 { return id.hcalElectronicsId_!=hcalElectronicsId_; }
constexpr uint32_t HcalElectronicsId::operator() ( )
inline

Definition at line 63 of file HcalElectronicsId.h.

References hcalElectronicsId_.

63 { return hcalElectronicsId_; }
constexpr int HcalElectronicsId::operator< ( const HcalElectronicsId id) const
inline

Compare the id to another id for use in a map.

Definition at line 120 of file HcalElectronicsId.h.

References hcalElectronicsId_.

120 { return hcalElectronicsId_<id.hcalElectronicsId_; }
constexpr int HcalElectronicsId::operator== ( const HcalElectronicsId id) const
inline

Equality operator

Definition at line 116 of file HcalElectronicsId.h.

References hcalElectronicsId_.

116 { return id.hcalElectronicsId_==hcalElectronicsId_; }
constexpr uint32_t HcalElectronicsId::rawId ( ) const
inline

Definition at line 65 of file HcalElectronicsId.h.

References hcalElectronicsId_.

Referenced by QIE11Task::_process(), hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), hcaldqm::DQTask::bookHistograms(), TPTask::bookHistograms(), PedestalTask::bookHistograms(), RawTask::bookHistograms(), LaserTask::bookHistograms(), RecHitTask::bookHistograms(), DigiPhase1Task::bookHistograms(), DigiTask::bookHistograms(), CALIBLogicalMapEntry::CALIBLogicalMapEntry(), hcaldqm::utilities::hash(), hcaldqm::hashfunctions::hash_Crate(), hcaldqm::hashfunctions::hash_CrateSlot(), hcaldqm::hashfunctions::hash_CrateSpigot(), hcaldqm::hashfunctions::hash_EChannel(), hcaldqm::hashfunctions::hash_Electronics(), hcaldqm::hashfunctions::hash_FED(), hcaldqm::hashfunctions::hash_FEDSlot(), hcaldqm::hashfunctions::hash_FEDSpigot(), hcaldqm::hashfunctions::hash_Fiber(), hcaldqm::hashfunctions::hash_FiberCh(), hcaldqm::hashfunctions::hash_FiberFiberCh(), HBHEHFLogicalMapEntry::HBHEHFLogicalMapEntry(), HOHXLogicalMapEntry::HOHXLogicalMapEntry(), HTLogicalMapEntry::HTLogicalMapEntry(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), HcalElectronicsMapAddons::Helper::mapEId2chId(), HcalElectronicsMapAddons::Helper::mapEId2tId(), hcaldqm::ContainerXXX< STDTYPE >::push(), and ZDCLogicalMapEntry::ZDCLogicalMapEntry().

65 { return hcalElectronicsId_; }
constexpr int HcalElectronicsId::readoutVMECrateId ( ) const
inline
constexpr void HcalElectronicsId::setHTR ( int  crate,
int  slot,
int  tb 
)
inline

Set the VME htr-related information 1=top, 0=bottom

Definition at line 72 of file HcalElectronicsId.h.

References hcalElectronicsId_, and isUTCAid().

Referenced by ZDCTask::bookHistograms(), CALIBLogicalMapEntry::CALIBLogicalMapEntry(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), ChannelPattern::Fill_by_hand(), HcalFiberPattern::getId(), HBHEHFLogicalMapEntry::HBHEHFLogicalMapEntry(), HOHXLogicalMapEntry::HOHXLogicalMapEntry(), HcalTriggerPrimitiveAlgo::runFEFormatError(), ZdcUnpacker::unpack(), HcalUnpacker::unpack(), HcalUnpacker::unpackVME(), and ZDCLogicalMapEntry::ZDCLogicalMapEntry().

72  {
73  if (isUTCAid()) return; // cannot do this for uTCA
74  hcalElectronicsId_&=0x3FFF; // keep the readout chain info
75  hcalElectronicsId_|=((tb&0x1)<<19) | ((slot&0x1f)<<14) | ((crate&0x3f)<<20);
76  }
constexpr bool isUTCAid() const
constexpr int slot() const
get the htr or uHTR slot
std::string HcalElectronicsId::slbChannelCode ( ) const

get the HTR-wide slb channel code (letter plus number)

Definition at line 3 of file HcalElectronicsId.cc.

References htrTopBottom(), isTriggerChainId(), isVMEid(), slbChannelIndex(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by htrChanId().

3  {
4  std::string retval;
5  if (isTriggerChainId() && isVMEid()) {
6  if (htrTopBottom()) { // top
7  switch (slbChannelIndex()) {
8  case (0): retval="A0"; break;
9  case (1): retval="A1"; break;
10  case (2): retval="C0"; break;
11  case (3): retval="C1"; break;
12  }
13  } else {
14  switch (slbChannelIndex()) {
15  case (0): retval="B0"; break;
16  case (1): retval="B1"; break;
17  case (2): retval="D0"; break;
18  case (3): retval="D1"; break;
19  }
20  }
21  }
22  return retval;
23 }
constexpr int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
constexpr int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom), valid for VME
constexpr bool isVMEid() const
constexpr bool isTriggerChainId() const
constexpr int HcalElectronicsId::slbChannelIndex ( ) const
inline
constexpr int HcalElectronicsId::slbSiteNumber ( ) const
inline
constexpr int HcalElectronicsId::slot ( ) const
inline

get the htr or uHTR slot

Definition at line 102 of file HcalElectronicsId.h.

References hcalElectronicsId_, and isVMEid().

Referenced by QIE10Task::_process(), QIE11Task::_process(), FCDTask::bookHistograms(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), hcaldqm::utilities::getCrateHashMap(), hcaldqm::quantity::getEid_FEDuTCASlot(), hcaldqm::quantity::getLabels_FED(), hcaldqm::quantity::getLabels_FEDuTCA(), hcaldqm::quantity::getLabels_FEDuTCASlot(), hcaldqm::quantity::getLabels_SlotuTCA(), hcaldqm::quantity::FEDQuantity::getValue(), hcaldqm::quantity::getValue_FED(), hcaldqm::quantity::getValue_FEDuTCA(), hcaldqm::quantity::getValue_FEDVME(), hcaldqm::quantity::getValue_SlotuTCA(), hcaldqm::quantity::getValue_SlotVME(), hcaldqm::hashfunctions::hash_CrateSlot(), hcaldqm::hashfunctions::hash_CrateSpigot(), hcaldqm::hashfunctions::hash_EChannel(), hcaldqm::hashfunctions::hash_FED(), hcaldqm::hashfunctions::hash_FEDSlot(), hcaldqm::hashfunctions::hash_FEDSpigot(), htrSlot(), hcaldqm::utilities::isFEDHBHE(), hcaldqm::utilities::isFEDHF(), hcaldqm::hashfunctions::name_CrateSlot(), hcaldqm::hashfunctions::name_CrateSpigot(), hcaldqm::hashfunctions::name_EChannel(), hcaldqm::hashfunctions::name_FED(), hcaldqm::hashfunctions::name_FEDSlot(), hcaldqm::hashfunctions::name_FEDSpigot(), and spigot().

102 { return (isVMEid())?((hcalElectronicsId_>>14)&0x1F):((hcalElectronicsId_>>9)&0xF); }
constexpr bool isVMEid() const
constexpr int HcalElectronicsId::spigot ( ) const
inline

get the spigot (input number on DCC, AMC card number for uTCA)

Definition at line 96 of file HcalElectronicsId.h.

References hcalElectronicsId_, isVMEid(), and slot().

Referenced by ZDCTask::analyze(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), HtrXmlPatternTool::Fill(), HcalQLPlotHistoMgr::GetAHistogram(), hcaldqm::utilities::getCrateHashMap(), hcaldqm::quantity::getEid_FEDVMESpigot(), hcaldqm::quantity::getLabels_FEDVMESpigot(), hcaldqm::quantity::getValue_Spigot(), hcaldqm::hashfunctions::hash_CrateSlot(), hcaldqm::hashfunctions::hash_CrateSpigot(), hcaldqm::hashfunctions::hash_EChannel(), hcaldqm::hashfunctions::hash_FEDSlot(), hcaldqm::hashfunctions::hash_FEDSpigot(), hcaldqm::hashfunctions::name_CrateSlot(), hcaldqm::hashfunctions::name_CrateSpigot(), hcaldqm::hashfunctions::name_EChannel(), hcaldqm::hashfunctions::name_FEDSlot(), hcaldqm::hashfunctions::name_FEDSpigot(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HTLogicalMapEntry::printLMapLine(), HcalCableMapper::process(), and SelectedElectronFEDListProducer< TEle, TCand >::produce().

96 { return (isVMEid())?((hcalElectronicsId_>>5)&0xF):slot(); }
constexpr bool isVMEid() const
constexpr int slot() const
get the htr or uHTR slot
constexpr int HcalElectronicsId::subtype ( ) const
inline

get subtype for this channel (valid for uTCA only)

Definition at line 79 of file HcalElectronicsId.h.

References hcalElectronicsId_, and isUTCAid().

79 { return (isUTCAid())?((hcalElectronicsId_>>21)&0x1F):(-1); }
constexpr bool isUTCAid() const

Member Data Documentation

uint32_t HcalElectronicsId::hcalElectronicsId_
private
const int HcalElectronicsId::maxDCCId = 31
static

Definition at line 113 of file HcalElectronicsId.h.

const int HcalElectronicsId::maxLinearIndex = 0x7FFFF
static

Definition at line 112 of file HcalElectronicsId.h.

Referenced by HcalLogicalMapGenerator::createMap().