Readout chain identification for Hcal [31:26] Unused (so far) [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. More...
#include <HcalElectronicsId.h>
Public Member Functions | |
int | dccid () const |
get the (Hcal local) DCC id More... | |
int | fiberChanId () const |
get the fiber channel id (which of three channels on a readout fiber) (valid only for non-trigger-chain ids) More... | |
int | fiberIndex () const |
get the fiber index [1-8] (which of eight fibers carried by a spigot) (valid only for non-trigger-chain ids) More... | |
HcalElectronicsId () | |
HcalElectronicsId (uint32_t) | |
HcalElectronicsId (int fiberChan, int fiberIndex, int spigot, int dccid) | |
HcalElectronicsId (int slbChan, int slbSite, int spigot, int dccid, int crate, int slot, int tb) | |
int | htrChanId () const |
get the HTR channel id (1-24) More... | |
int | htrSlot () const |
get the htr slot More... | |
int | htrTopBottom () const |
get the htr top/bottom (1=top/0=bottom) More... | |
bool | isTriggerChainId () const |
int | linearIndex () const |
get a fast, compact, unique index for linear lookups (maximum value = 16384) More... | |
int | operator!= (const HcalElectronicsId &id) const |
uint32_t | operator() () |
int | operator< (const HcalElectronicsId &id) const |
Compare the id to another id for use in a map. More... | |
int | operator== (const HcalElectronicsId &id) const |
uint32_t | rawId () const |
int | readoutVMECrateId () const |
get the readout VME crate number More... | |
void | setHTR (int crate, int slot, int tb) |
std::string | slbChannelCode () const |
get the HTR-wide slb channel code (letter plus number) More... | |
int | slbChannelIndex () const |
get the SLB channel index (valid only for trigger-chain ids) More... | |
int | slbSiteNumber () const |
get the SLB site number (valid only for trigger-chain ids) More... | |
int | spigot () const |
get the spigot (input number on DCC) More... | |
Static Public Attributes | |
static const int | maxDCCId = 31 |
static const int | maxLinearIndex = 0x3FFF |
Private Attributes | |
uint32_t | hcalElectronicsId_ |
Readout chain identification for Hcal [31:26] Unused (so far) [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.
Definition at line 19 of file HcalElectronicsId.h.
HcalElectronicsId::HcalElectronicsId | ( | ) |
Default constructor – invalid value
Definition at line 4 of file HcalElectronicsId.cc.
References hcalElectronicsId_.
HcalElectronicsId::HcalElectronicsId | ( | uint32_t | id | ) |
from raw
Definition at line 8 of file HcalElectronicsId.cc.
References hcalElectronicsId_, and errorMatrix2Lands_multiChannel::id.
HcalElectronicsId::HcalElectronicsId | ( | int | fiberChan, |
int | fiberIndex, | ||
int | spigot, | ||
int | dccid | ||
) |
Constructor from fiberchan,fiber index,spigot,dccid
Definition at line 12 of file HcalElectronicsId.cc.
References hcalElectronicsId_.
HcalElectronicsId::HcalElectronicsId | ( | int | slbChan, |
int | slbSite, | ||
int | spigot, | ||
int | dccid, | ||
int | crate, | ||
int | slot, | ||
int | tb | ||
) |
Constructor from slb channel,slb site,spigot,dccid
Definition at line 17 of file HcalElectronicsId.cc.
References hcalElectronicsId_.
|
inline |
get the (Hcal local) DCC id
Definition at line 55 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HtrXmlPatternTool::Fill(), HcalQLPlotHistoMgr::GetAHistogram(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HTLogicalMapEntry::printLMapLine(), printTableLine(), and HcalCableMapper::process().
|
inline |
get the fiber channel id (which of three channels on a readout fiber) (valid only for non-trigger-chain ids)
Definition at line 39 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HcalQLPlotHistoMgr::GetAHistogram(), htrChanId(), HcalLuttoDB::openPerLut1(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HcalCableMapper::process(), HcalLedAnalysis::processLedEvent(), and HcalLuttoDB::writeoutlut1().
|
inline |
get the fiber index [1-8] (which of eight fibers carried by a spigot) (valid only for non-trigger-chain ids)
Definition at line 41 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HcalQLPlotHistoMgr::GetAHistogram(), htrChanId(), HcalLuttoDB::openPerLut1(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), printTableLine(), HcalCableMapper::process(), and HcalLuttoDB::writeoutlut1().
|
inline |
get the HTR channel id (1-24)
Definition at line 51 of file HcalElectronicsId.h.
References fiberChanId(), and fiberIndex().
Referenced by HtrXmlPatternTool::Fill().
|
inline |
get the htr slot
Definition at line 57 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HtrXmlPatternTool::Fill(), HcalQLPlotHistoMgr::GetAHistogram(), HcalLuttoDB::openPerLut1(), HcalLuttoDB::openPerLut2(), HcalPacker::pack(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HTLogicalMapEntry::printLMapLine(), printTableLine(), HcalCableMapper::process(), HcalLuttoDB::writeoutlut1(), and HcalLuttoDB::writeoutlut2().
|
inline |
get the htr top/bottom (1=top/0=bottom)
Definition at line 59 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HtrXmlPatternTool::Fill(), HcalQLPlotHistoMgr::GetAHistogram(), HcalLuttoDB::openPerLut1(), HcalLuttoDB::openPerLut2(), HcalPacker::pack(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HTLogicalMapEntry::printLMapLine(), printTableLine(), HcalCableMapper::process(), slbChannelCode(), HcalLuttoDB::writeoutlut1(), and HcalLuttoDB::writeoutlut2().
|
inline |
Definition at line 33 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by slbChannelCode().
|
inline |
get a fast, compact, unique index for linear lookups (maximum value = 16384)
Definition at line 63 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HcalElectronicsMap::findPByElId(), HcalElectronicsMap::findTByElId(), HcalLogicalMap::getDetId(), HBHEHFLogicalMapEntry::getLinearIndex(), HOHXLogicalMapEntry::getLinearIndex(), CALIBLogicalMapEntry::getLinearIndex(), ZDCLogicalMapEntry::getLinearIndex(), HTLogicalMapEntry::getLinearIndex(), HcalElectronicsMap::lookup(), HcalElectronicsMap::mapEId2chId(), and HcalElectronicsMap::mapEId2tId().
|
inline |
Non-Equality operator
Definition at line 71 of file HcalElectronicsId.h.
References hcalElectronicsId_.
|
inline |
|
inline |
Compare the id to another id for use in a map.
Definition at line 73 of file HcalElectronicsId.h.
References hcalElectronicsId_.
|
inline |
|
inline |
Definition at line 31 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by CALIBLogicalMapEntry::CALIBLogicalMapEntry(), HBHEHFLogicalMapEntry::HBHEHFLogicalMapEntry(), HOHXLogicalMapEntry::HOHXLogicalMapEntry(), HTLogicalMapEntry::HTLogicalMapEntry(), HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), HcalElectronicsMap::mapEId2chId(), HcalElectronicsMap::mapEId2tId(), and ZDCLogicalMapEntry::ZDCLogicalMapEntry().
|
inline |
get the readout VME crate number
Definition at line 61 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HtrXmlPatternTool::Fill(), HcalQLPlotHistoMgr::GetAHistogram(), HcalLuttoDB::openPerLut1(), HcalLuttoDB::openPerLut2(), HcalPacker::pack(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HTLogicalMapEntry::printLMapLine(), printTableLine(), HcalCableMapper::process(), HcalLuttoDB::writeoutlut1(), and HcalLuttoDB::writeoutlut2().
void HcalElectronicsId::setHTR | ( | int | crate, |
int | slot, | ||
int | tb | ||
) |
Set the htr-related information 1=top, 0=bottom
Definition at line 46 of file HcalElectronicsId.cc.
References hcalElectronicsId_.
Referenced by CALIBLogicalMapEntry::CALIBLogicalMapEntry(), HcalMonitorModule::CheckSubdetectorStatus(), ChannelPattern::Fill_by_hand(), HcalFiberPattern::getId(), HcalDbOnline::getObject(), HBHEHFLogicalMapEntry::HBHEHFLogicalMapEntry(), HOHXLogicalMapEntry::HOHXLogicalMapEntry(), HcalTriggerPrimitiveAlgo::runFEFormatError(), HcalUnpacker::unpack(), and ZDCLogicalMapEntry::ZDCLogicalMapEntry().
std::string HcalElectronicsId::slbChannelCode | ( | ) | const |
get the HTR-wide slb channel code (letter plus number)
Definition at line 24 of file HcalElectronicsId.cc.
References htrTopBottom(), isTriggerChainId(), and slbChannelIndex().
|
inline |
get the SLB channel index (valid only for trigger-chain ids)
Definition at line 43 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HcalLuttoDB::openPerLut2(), HTLogicalMapEntry::printLMapLine(), slbChannelCode(), and HcalLuttoDB::writeoutlut2().
|
inline |
get the SLB site number (valid only for trigger-chain ids)
Definition at line 45 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HcalLuttoDB::openPerLut2(), HTLogicalMapEntry::printLMapLine(), and HcalLuttoDB::writeoutlut2().
|
inline |
get the spigot (input number on DCC)
Definition at line 53 of file HcalElectronicsId.h.
References hcalElectronicsId_.
Referenced by HtrXmlPatternTool::Fill(), HcalQLPlotHistoMgr::GetAHistogram(), HBHEHFLogicalMapEntry::printLMapLine(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), ZDCLogicalMapEntry::printLMapLine(), HTLogicalMapEntry::printLMapLine(), printTableLine(), and HcalCableMapper::process().
|
private |
Definition at line 76 of file HcalElectronicsId.h.
Referenced by dccid(), fiberChanId(), fiberIndex(), HcalElectronicsId(), htrSlot(), htrTopBottom(), isTriggerChainId(), linearIndex(), operator!=(), operator()(), operator<(), operator==(), rawId(), readoutVMECrateId(), setHTR(), slbChannelIndex(), slbSiteNumber(), and spigot().
|
static |
Definition at line 66 of file HcalElectronicsId.h.
|
static |
Definition at line 65 of file HcalElectronicsId.h.
Referenced by HcalLogicalMapGenerator::createMap().