#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 () | |
HcalElectronicsMap (const HcalElectronicsMap &src) | |
HcalElectronicsMap (HcalElectronicsMap &&other) | |
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) |
HcalElectronicsMap & | operator= (const HcalElectronicsMap &rhs) |
void | sort () |
void | sortById () const |
void | sortByTriggerId () const |
void | swap (HcalElectronicsMap &other) |
~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 | |
COND_SERIALIZABLE | |
std::atomic< std::vector < const PrecisionItem * > * > mPItemsById | COND_TRANSIENT |
std::atomic< std::vector < const TriggerItem * > * > mTItemsByTrigId | COND_TRANSIENT |
std::vector< PrecisionItem > | mPItems |
std::vector< TriggerItem > | mTItems |
Definition at line 29 of file HcalElectronicsMap.h.
HcalElectronicsMap::HcalElectronicsMap | ( | ) |
Definition at line 16 of file HcalElectronicsMap.cc.
HcalElectronicsMap::~HcalElectronicsMap | ( | ) |
Definition at line 27 of file HcalElectronicsMap.cc.
HcalElectronicsMap::HcalElectronicsMap | ( | const HcalElectronicsMap & | src | ) |
Definition at line 32 of file HcalElectronicsMap.cc.
HcalElectronicsMap::HcalElectronicsMap | ( | HcalElectronicsMap && | other | ) |
std::vector< HcalElectronicsId > HcalElectronicsMap::allElectronicsId | ( | ) | const |
Definition at line 143 of file HcalElectronicsMap.cc.
References mPItems, mTItems, and query::result.
Referenced by HcalLuttoDB::analyze().
std::vector< HcalElectronicsId > HcalElectronicsMap::allElectronicsIdPrecision | ( | ) | const |
Definition at line 153 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 160 of file HcalElectronicsMap.cc.
References mTItems, and query::result.
Referenced by EMap::EMap().
std::vector< HcalGenericDetId > HcalElectronicsMap::allPrecisionId | ( | ) | const |
Definition at line 168 of file HcalElectronicsMap.cc.
References mPItems, and query::result.
std::vector< HcalTrigTowerDetId > HcalElectronicsMap::allTriggerId | ( | ) | const |
Definition at line 179 of file HcalElectronicsMap.cc.
References mTItems, and query::result.
|
protected |
Definition at line 59 of file HcalElectronicsMap.cc.
References sortById(), and filterCSVwithJSON::target.
Referenced by lookup().
|
protected |
Definition at line 90 of file HcalElectronicsMap.cc.
References sortByTriggerId(), and filterCSVwithJSON::target.
Referenced by lookupTrigger().
|
protected |
Definition at line 73 of file HcalElectronicsMap.cc.
References i, HcalElectronicsId::linearIndex(), HcalElectronicsMap::PrecisionItem::mElId, and mPItems.
Referenced by lookup().
|
protected |
Definition at line 81 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 104 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 109 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 124 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 133 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 114 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 119 of file HcalElectronicsMap.cc.
References findByTrigId(), HcalElectronicsMap::TriggerItem::mElId, and DetId::rawId().
bool HcalElectronicsMap::mapEId2chId | ( | HcalElectronicsId | fElectronicsId, |
DetId | fId | ||
) |
Definition at line 209 of file HcalElectronicsMap.cc.
References HcalElectronicsId::linearIndex(), HcalElectronicsMap::PrecisionItem::mElId, HcalElectronicsMap::PrecisionItem::mId, mPItems, HcalElectronicsId::rawId(), and DetId::rawId().
Referenced by HcalLogicalMap::generateHcalElectronicsMap(), and HcalDbOnline::getObject().
bool HcalElectronicsMap::mapEId2tId | ( | HcalElectronicsId | fElectronicsId, |
HcalTrigTowerDetId | fTriggerId | ||
) |
Definition at line 189 of file HcalElectronicsMap.cc.
References HcalElectronicsId::linearIndex(), HcalElectronicsMap::TriggerItem::mElId, mTItems, HcalElectronicsMap::TriggerItem::mTrigId, HcalElectronicsId::rawId(), and DetId::rawId().
Referenced by HcalLogicalMap::generateHcalElectronicsMap().
HcalElectronicsMap & HcalElectronicsMap::operator= | ( | const HcalElectronicsMap & | rhs | ) |
Definition at line 37 of file HcalElectronicsMap.cc.
References swap(), and groupFilesInBlocks::temp.
|
inline |
Definition at line 78 of file HcalElectronicsMap.h.
Referenced by fillDefaults(), HcalLogicalMap::generateHcalElectronicsMap(), and HcalDbOnline::getObject().
void HcalElectronicsMap::sortById | ( | ) | const |
Definition at line 227 of file HcalElectronicsMap.cc.
References i, mPItems, and python.multivaluedict::sort().
Referenced by findById().
void HcalElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 244 of file HcalElectronicsMap.cc.
References i, mTItems, and python.multivaluedict::sort().
Referenced by findByTrigId().
void HcalElectronicsMap::swap | ( | HcalElectronicsMap & | other | ) |
Definition at line 43 of file HcalElectronicsMap.cc.
References mPItems, mTItems, and std::swap().
Referenced by HcalElectronicsMap(), and operator=().
|
protected |
Definition at line 116 of file HcalElectronicsMap.h.
|
mutableprotected |
Definition at line 109 of file HcalElectronicsMap.h.
|
mutableprotected |
Definition at line 110 of file HcalElectronicsMap.h.
|
protected |
Definition at line 106 of file HcalElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), sortById(), and swap().
|
protected |
Definition at line 107 of file HcalElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), sortByTriggerId(), and swap().