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.

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

from raw

Definition at line 37 of file HcalElectronicsId.h.

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

VME Constructor from fiberchan,fiber index,spigot,dccid

Definition at line 39 of file HcalElectronicsId.h.

40  : hcalElectronicsId_((uint32_t)((fiberChan & 0x3) | (((fiberIndex - 1) & 0x7) << 2) | ((spigot & 0xF) << 5) |
41  ((dccid & 0x1F) << 9))) {}
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 43 of file HcalElectronicsId.h.

References hcalElectronicsId_.

45  (uint32_t)((slbChan & 0x3) | (((slbSite)&0x7) << 2) | ((spigot & 0xF) << 5) | ((dccid & 0x1F) << 9))) {
46  hcalElectronicsId_ |= ((tb & 0x1) << 19) | ((slot & 0x1f) << 14) | ((crate & 0x3f) << 20);
47  hcalElectronicsId_ |= 0x02000000;
48  }
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 50 of file HcalElectronicsId.h.

References hcalElectronicsId_.

51  : hcalElectronicsId_((int)((fc & 0xF) | (((fiber)&0x1F) << 4) | ((slot & 0xF) << 9) | ((crate & 0x3F) << 13))) {
52  if (isTrigger)
53  hcalElectronicsId_ |= 0x02000000;
54  hcalElectronicsId_ |= 0x04000000;
55  }
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 107 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().

107  {
108  return (isVMEid()) ? ((hcalElectronicsId_ >> 20) & 0x1F) : ((hcalElectronicsId_ >> 13) & 0x3F);
109  }
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 95 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().

95 { 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 76 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().

76 { 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 78 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().

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

get the HTR channel id (1-24)

Definition at line 87 of file HcalElectronicsId.h.

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

Referenced by HtrXmlPatternTool::Fill().

87 { 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 63 of file HcalElectronicsId.h.

References hcalElectronicsId_.

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

63 { return (hcalElectronicsId_ & 0x02000000) != 0; }
constexpr bool HcalElectronicsId::isUTCAid ( ) const
inline

Definition at line 62 of file HcalElectronicsId.h.

References hcalElectronicsId_.

Referenced by RecHitTask::_process(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), operator<<(), setHTR(), and subtype().

62 { return (hcalElectronicsId_ & 0x04000000) != 0; }
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 121 of file HcalElectronicsId.h.

References hcalElectronicsId_.

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

Definition at line 57 of file HcalElectronicsId.h.

References hcalElectronicsId_.

57 { 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 123 of file HcalElectronicsId.h.

References hcalElectronicsId_.

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

Equality operator

Definition at line 119 of file HcalElectronicsId.h.

References hcalElectronicsId_.

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

Definition at line 59 of file HcalElectronicsId.h.

References hcalElectronicsId_.

Referenced by QIE11Task::_process(), hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), hcaldqm::DQTask::bookHistograms(), PedestalTask::bookHistograms(), TPTask::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().

59 { 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 66 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().

66  {
67  if (isUTCAid())
68  return; // cannot do this for uTCA
69  hcalElectronicsId_ &= 0x3FFF; // keep the readout chain info
70  hcalElectronicsId_ |= ((tb & 0x1) << 19) | ((slot & 0x1f) << 14) | ((crate & 0x3f) << 20);
71  }
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):
9  retval = "A0";
10  break;
11  case (1):
12  retval = "A1";
13  break;
14  case (2):
15  retval = "C0";
16  break;
17  case (3):
18  retval = "C1";
19  break;
20  }
21  } else {
22  switch (slbChannelIndex()) {
23  case (0):
24  retval = "B0";
25  break;
26  case (1):
27  retval = "B1";
28  break;
29  case (2):
30  retval = "D0";
31  break;
32  case (3):
33  retval = "D1";
34  break;
35  }
36  }
37  }
38  return retval;
39 }
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 99 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().

99  {
100  return (isVMEid()) ? ((hcalElectronicsId_ >> 14) & 0x1F) : ((hcalElectronicsId_ >> 9) & 0xF);
101  }
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 93 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().

93 { 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 74 of file HcalElectronicsId.h.

References hcalElectronicsId_, and isUTCAid().

74 { 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 116 of file HcalElectronicsId.h.

const int HcalElectronicsId::maxLinearIndex = 0x7FFFF
static

Definition at line 115 of file HcalElectronicsId.h.

Referenced by HcalLogicalMapGenerator::createMap().