#include <HcalElectronicsMap.h>
Classes | |
class | PrecisionItem |
class | TriggerItem |
Public Member Functions | |
std::vector< HcalElectronicsId > | allElectronicsId () const |
std::vector< HcalElectronicsId > | allElectronicsIdPrecision () const |
std::vector< HcalElectronicsId > | allElectronicsIdTrigger () const |
std::vector< HcalGenericDetId > | allPrecisionId () const |
std::vector< HcalTrigTowerDetId > | allTriggerId () const |
HcalElectronicsMap () | |
const DetId | lookup (HcalElectronicsId fId) const |
lookup the logical detid associated with the given electronics id More... | |
const HcalElectronicsId | lookup (DetId fId) const |
brief lookup the electronics detid associated with the given logical id More... | |
bool | lookup (const HcalElectronicsId pId, HcalElectronicsId &eid, HcalGenericDetId &did) const |
brief lookup the DetId and full electronics id associated with this partial (dcc/spigot/fiber/fiberchan) id More... | |
bool | lookup (const HcalElectronicsId pId, HcalElectronicsId &eid, HcalTrigTowerDetId &did) const |
brief lookup the DetId and full electronics id associated with this partial (dcc/spigot/slb/slbchan) id More... | |
const DetId | lookupTrigger (HcalElectronicsId fId) const |
brief lookup the trigger logical detid associated with the given electronics id More... | |
const HcalElectronicsId | lookupTrigger (DetId fId) const |
brief lookup the electronics detid associated with the given trigger logical id More... | |
bool | mapEId2chId (HcalElectronicsId fElectronicsId, DetId fId) |
bool | mapEId2tId (HcalElectronicsId fElectronicsId, HcalTrigTowerDetId fTriggerId) |
void | sort () |
void | sortById () const |
void | sortByTriggerId () const |
~HcalElectronicsMap () | |
Protected Member Functions | |
const PrecisionItem * | findById (unsigned long fId) const |
const TriggerItem * | findByTrigId (unsigned long fTrigId) const |
const PrecisionItem * | findPByElId (unsigned long fElId) const |
const TriggerItem * | findTByElId (unsigned long fElId) const |
Protected Attributes | |
std::vector< PrecisionItem > | mPItems |
std::vector< const PrecisionItem * > | mPItemsById |
std::vector< TriggerItem > | mTItems |
std::vector< const TriggerItem * > | mTItemsByTrigId |
bool | sortedByPId |
bool | sortedByTId |
Definition at line 24 of file HcalElectronicsMap.h.
HcalElectronicsMap::HcalElectronicsMap | ( | ) |
Definition at line 16 of file HcalElectronicsMap.cc.
HcalElectronicsMap::~HcalElectronicsMap | ( | ) |
Definition at line 28 of file HcalElectronicsMap.cc.
std::vector< HcalElectronicsId > HcalElectronicsMap::allElectronicsId | ( | ) | const |
Definition at line 112 of file HcalElectronicsMap.cc.
References mPItems, mTItems, and query::result.
Referenced by HcalLuttoDB::analyze().
std::vector< HcalElectronicsId > HcalElectronicsMap::allElectronicsIdPrecision | ( | ) | const |
Definition at line 122 of file HcalElectronicsMap.cc.
References mPItems, and query::result.
Referenced by HcalRawDataClient::beginRun(), HcalRawDataMonitor::beginRun(), HcalDetDiagLEDMonitor::CheckStatus(), HcalDetDiagPedestalMonitor::CheckStatus(), EMap::EMap(), HcalDetDiagLEDMonitor::fillHistos(), HcalDetDiagLaserMonitor::fillProblems(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagPedestalMonitor::SaveReference(), and HcalDetDiagLaserMonitor::SaveReference().
std::vector< HcalElectronicsId > HcalElectronicsMap::allElectronicsIdTrigger | ( | ) | const |
Definition at line 129 of file HcalElectronicsMap.cc.
References mTItems, and query::result.
Referenced by EMap::EMap().
std::vector< HcalGenericDetId > HcalElectronicsMap::allPrecisionId | ( | ) | const |
Definition at line 137 of file HcalElectronicsMap.cc.
References mPItems, and query::result.
Referenced by HcalCholeskyDecomp::analyze(), HcalPedestalMCWidths::analyze(), and HcalPedestalsAnalysis::analyze().
std::vector< HcalTrigTowerDetId > HcalElectronicsMap::allTriggerId | ( | ) | const |
Definition at line 148 of file HcalElectronicsMap.cc.
References mTItems, and query::result.
|
protected |
Definition at line 30 of file HcalElectronicsMap.cc.
References mPItemsById, sortById(), sortedByPId, and filterCSVwithJSON::target.
Referenced by lookup().
|
protected |
Definition at line 60 of file HcalElectronicsMap.cc.
References mTItemsByTrigId, sortByTriggerId(), sortedByTId, and filterCSVwithJSON::target.
Referenced by lookupTrigger().
|
protected |
Definition at line 43 of file HcalElectronicsMap.cc.
References i, HcalElectronicsId::linearIndex(), HcalElectronicsMap::PrecisionItem::mElId, and mPItems.
Referenced by lookup().
|
protected |
Definition at line 51 of file HcalElectronicsMap.cc.
References i, HcalElectronicsId::linearIndex(), HcalElectronicsMap::TriggerItem::mElId, and mTItems.
Referenced by lookupTrigger().
const DetId HcalElectronicsMap::lookup | ( | HcalElectronicsId | fId | ) | const |
lookup the logical detid associated with the given electronics id
Definition at line 73 of file HcalElectronicsMap.cc.
References findPByElId(), HcalElectronicsMap::PrecisionItem::mId, and HcalElectronicsId::rawId().
Referenced by HcalLuttoDB::analyze(), HcalRawDataClient::beginRun(), HcalRawDataMonitor::beginRun(), HcalDetDiagLEDMonitor::CheckStatus(), HcalDetDiagPedestalMonitor::CheckStatus(), HcalMonitorModule::CheckSubdetectorStatus(), EMap::EMap(), ChannelPattern::Fill_by_hand(), HcalDetDiagLEDMonitor::fillHistos(), HcalDetDiagLaserMonitor::fillProblems(), HcalDetDiagLEDClient::htmlOutput(), HcalDetDiagLaserClient::htmlOutput(), HcalDetDiagPedestalClient::htmlOutput(), HcalPacker::pack(), HcalPatternSource::produce(), HcalTriggerPrimitiveAlgo::runFEFormatError(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagPedestalMonitor::SaveReference(), HcalDetDiagLaserMonitor::SaveReference(), and HcalUnpacker::unpack().
const HcalElectronicsId HcalElectronicsMap::lookup | ( | DetId | fId | ) | const |
brief lookup the electronics detid associated with the given logical id
Definition at line 78 of file HcalElectronicsMap.cc.
References findById(), HcalElectronicsMap::PrecisionItem::mElId, and DetId::rawId().
bool HcalElectronicsMap::lookup | ( | const HcalElectronicsId | pId, |
HcalElectronicsId & | eid, | ||
HcalGenericDetId & | did | ||
) | const |
brief lookup the DetId and full electronics id associated with this partial (dcc/spigot/fiber/fiberchan) id
Definition at line 93 of file HcalElectronicsMap.cc.
References i, HcalElectronicsId::linearIndex(), HcalElectronicsMap::PrecisionItem::mElId, HcalElectronicsMap::PrecisionItem::mId, and mPItems.
bool HcalElectronicsMap::lookup | ( | const HcalElectronicsId | pId, |
HcalElectronicsId & | eid, | ||
HcalTrigTowerDetId & | did | ||
) | const |
brief lookup the DetId and full electronics id associated with this partial (dcc/spigot/slb/slbchan) id
Definition at line 102 of file HcalElectronicsMap.cc.
References i, HcalElectronicsId::linearIndex(), HcalElectronicsMap::TriggerItem::mElId, mTItems, and HcalElectronicsMap::TriggerItem::mTrigId.
const DetId HcalElectronicsMap::lookupTrigger | ( | HcalElectronicsId | fId | ) | const |
brief lookup the trigger logical detid associated with the given electronics id
Definition at line 83 of file HcalElectronicsMap.cc.
References findTByElId(), HcalElectronicsMap::TriggerItem::mTrigId, and HcalElectronicsId::rawId().
Referenced by HcalLuttoDB::analyze(), EMap::EMap(), and HcalUnpacker::unpack().
const HcalElectronicsId HcalElectronicsMap::lookupTrigger | ( | DetId | fId | ) | const |
brief lookup the electronics detid associated with the given trigger logical id
Definition at line 88 of file HcalElectronicsMap.cc.
References findByTrigId(), HcalElectronicsMap::TriggerItem::mElId, and DetId::rawId().
bool HcalElectronicsMap::mapEId2chId | ( | HcalElectronicsId | fElectronicsId, |
DetId | fId | ||
) |
Definition at line 173 of file HcalElectronicsMap.cc.
References HcalElectronicsId::linearIndex(), HcalElectronicsMap::PrecisionItem::mElId, HcalElectronicsMap::PrecisionItem::mId, mPItems, HcalElectronicsId::rawId(), DetId::rawId(), and sortedByPId.
Referenced by HcalLogicalMap::generateHcalElectronicsMap(), and HcalDbOnline::getObject().
bool HcalElectronicsMap::mapEId2tId | ( | HcalElectronicsId | fElectronicsId, |
HcalTrigTowerDetId | fTriggerId | ||
) |
Definition at line 158 of file HcalElectronicsMap.cc.
References HcalElectronicsId::linearIndex(), HcalElectronicsMap::TriggerItem::mElId, mTItems, HcalElectronicsMap::TriggerItem::mTrigId, HcalElectronicsId::rawId(), DetId::rawId(), and sortedByTId.
Referenced by HcalLogicalMap::generateHcalElectronicsMap().
|
inline |
Definition at line 62 of file HcalElectronicsMap.h.
Referenced by fillDefaults(), HcalLogicalMap::generateHcalElectronicsMap(), and HcalDbOnline::getObject().
void HcalElectronicsMap::sortById | ( | ) | const |
Definition at line 189 of file HcalElectronicsMap.cc.
References i, mPItems, mPItemsById, python.multivaluedict::sort(), and sortedByPId.
Referenced by findById().
void HcalElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 201 of file HcalElectronicsMap.cc.
References i, mTItems, mTItemsByTrigId, python.multivaluedict::sort(), and sortedByTId.
Referenced by findByTrigId().
|
protected |
Definition at line 86 of file HcalElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), and sortById().
|
mutableprotected |
Definition at line 88 of file HcalElectronicsMap.h.
Referenced by findById(), and sortById().
|
protected |
Definition at line 87 of file HcalElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), and sortByTriggerId().
|
mutableprotected |
Definition at line 90 of file HcalElectronicsMap.h.
Referenced by findByTrigId(), and sortByTriggerId().
|
mutableprotected |
Definition at line 89 of file HcalElectronicsMap.h.
Referenced by findById(), mapEId2chId(), and sortById().
|
mutableprotected |
Definition at line 91 of file HcalElectronicsMap.h.
Referenced by findByTrigId(), mapEId2tId(), and sortByTriggerId().