#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 | |
std::vector< PrecisionItem > | mPItems |
std::atomic< std::vector < const PrecisionItem * > * > | mPItemsById |
std::vector< TriggerItem > | mTItems |
std::atomic< std::vector < const TriggerItem * > * > | mTItemsByTrigId |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
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.
References mPItemsById, and mTItemsByTrigId.
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 mPItemsById, sortById(), and filterCSVwithJSON::target.
Referenced by lookup().
|
protected |
Definition at line 90 of file HcalElectronicsMap.cc.
References mTItemsByTrigId, 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, mPItemsById, 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, mTItemsByTrigId, 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.
|
private |
|
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, mPItemsById, and python.multivaluedict::sort().
Referenced by findById().
void HcalElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 244 of file HcalElectronicsMap.cc.
References i, mTItems, mTItemsByTrigId, and python.multivaluedict::sort().
Referenced by findByTrigId().
void HcalElectronicsMap::swap | ( | HcalElectronicsMap & | other | ) |
Definition at line 43 of file HcalElectronicsMap.cc.
References mPItems, mPItemsById, mTItems, mTItemsByTrigId, and std::swap().
Referenced by HcalElectronicsMap(), and operator=().
|
friend |
Definition at line 116 of file HcalElectronicsMap.h.
|
friend |
Definition at line 116 of file HcalElectronicsMap.h.
|
protected |
Definition at line 106 of file HcalElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), sortById(), and swap().
|
mutableprotected |
Definition at line 109 of file HcalElectronicsMap.h.
Referenced by findById(), mapEId2chId(), sortById(), swap(), and ~HcalElectronicsMap().
|
protected |
Definition at line 107 of file HcalElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), sortByTriggerId(), and swap().
|
mutableprotected |
Definition at line 110 of file HcalElectronicsMap.h.
Referenced by findByTrigId(), mapEId2tId(), sortByTriggerId(), swap(), and ~HcalElectronicsMap().