#include <CastorElectronicsMap.h>
Classes | |
class | PrecisionItem |
class | TriggerItem |
Public Member Functions | |
std::vector< CastorElectronicsId > | allElectronicsId () const |
std::vector< CastorElectronicsId > | allElectronicsIdPrecision () const |
std::vector< CastorElectronicsId > | allElectronicsIdTrigger () const |
std::vector< HcalGenericDetId > | allPrecisionId () const |
std::vector< HcalTrigTowerDetId > | allTriggerId () const |
CastorElectronicsMap () | |
const DetId | lookup (CastorElectronicsId fId) const |
lookup the logical detid associated with the given electronics id More... | |
const CastorElectronicsId | lookup (DetId fId) const |
brief lookup the electronics detid associated with the given logical id More... | |
bool | lookup (const CastorElectronicsId pId, CastorElectronicsId &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 CastorElectronicsId pId, CastorElectronicsId &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 (CastorElectronicsId fId) const |
brief lookup the trigger logical detid associated with the given electronics id More... | |
const CastorElectronicsId | lookupTrigger (DetId fId) const |
brief lookup the electronics detid associated with the given trigger logical id More... | |
bool | mapEId2chId (CastorElectronicsId fElectronicsId, DetId fId) |
bool | mapEId2tId (CastorElectronicsId fElectronicsId, HcalTrigTowerDetId fTriggerId) |
void | sort () |
void | sortById () const |
void | sortByTriggerId () const |
~CastorElectronicsMap () | |
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 |
Modified for CASTOR by L. Mundim
Adapted for CASTOR by L. Mundim
Definition at line 25 of file CastorElectronicsMap.h.
CastorElectronicsMap::CastorElectronicsMap | ( | ) |
Definition at line 17 of file CastorElectronicsMap.cc.
CastorElectronicsMap::~CastorElectronicsMap | ( | ) |
Definition at line 29 of file CastorElectronicsMap.cc.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsId | ( | ) | const |
Definition at line 113 of file CastorElectronicsMap.cc.
References mPItems, mTItems, and query::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdPrecision | ( | ) | const |
Definition at line 123 of file CastorElectronicsMap.cc.
References mPItems, and query::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdTrigger | ( | ) | const |
Definition at line 130 of file CastorElectronicsMap.cc.
References mTItems, and query::result.
std::vector< HcalGenericDetId > CastorElectronicsMap::allPrecisionId | ( | ) | const |
Definition at line 138 of file CastorElectronicsMap.cc.
References mPItems, and query::result.
Referenced by CastorPedestalsAnalysis::analyze().
std::vector< HcalTrigTowerDetId > CastorElectronicsMap::allTriggerId | ( | ) | const |
Definition at line 149 of file CastorElectronicsMap.cc.
References mTItems, and query::result.
|
protected |
Definition at line 31 of file CastorElectronicsMap.cc.
References mPItemsById, sortById(), sortedByPId, and filterCSVwithJSON::target.
Referenced by lookup().
|
protected |
Definition at line 61 of file CastorElectronicsMap.cc.
References mTItemsByTrigId, sortByTriggerId(), sortedByTId, and filterCSVwithJSON::target.
Referenced by lookupTrigger().
|
protected |
Definition at line 44 of file CastorElectronicsMap.cc.
References i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, and mPItems.
Referenced by lookup().
|
protected |
Definition at line 52 of file CastorElectronicsMap.cc.
References i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::TriggerItem::mElId, and mTItems.
Referenced by lookupTrigger().
const DetId CastorElectronicsMap::lookup | ( | CastorElectronicsId | fId | ) | const |
lookup the logical detid associated with the given electronics id
Definition at line 74 of file CastorElectronicsMap.cc.
References findPByElId(), CastorElectronicsMap::PrecisionItem::mId, and CastorElectronicsId::rawId().
Referenced by CastorCtdcPacker::pack(), CastorPacker::pack(), CastorCtdcUnpacker::unpack(), and CastorUnpacker::unpack().
const CastorElectronicsId CastorElectronicsMap::lookup | ( | DetId | fId | ) | const |
brief lookup the electronics detid associated with the given logical id
Definition at line 79 of file CastorElectronicsMap.cc.
References findById(), CastorElectronicsMap::PrecisionItem::mElId, and DetId::rawId().
bool CastorElectronicsMap::lookup | ( | const CastorElectronicsId | pId, |
CastorElectronicsId & | eid, | ||
HcalGenericDetId & | did | ||
) | const |
brief lookup the DetId and full electronics id associated with this partial (dcc/spigot/fiber/fiberchan) id
Definition at line 94 of file CastorElectronicsMap.cc.
References i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, CastorElectronicsMap::PrecisionItem::mId, and mPItems.
bool CastorElectronicsMap::lookup | ( | const CastorElectronicsId | pId, |
CastorElectronicsId & | eid, | ||
HcalTrigTowerDetId & | did | ||
) | const |
brief lookup the DetId and full electronics id associated with this partial (dcc/spigot/slb/slbchan) id
Definition at line 103 of file CastorElectronicsMap.cc.
References i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::TriggerItem::mElId, mTItems, and CastorElectronicsMap::TriggerItem::mTrigId.
const DetId CastorElectronicsMap::lookupTrigger | ( | CastorElectronicsId | fId | ) | const |
brief lookup the trigger logical detid associated with the given electronics id
Definition at line 84 of file CastorElectronicsMap.cc.
References findTByElId(), CastorElectronicsMap::TriggerItem::mTrigId, and CastorElectronicsId::rawId().
const CastorElectronicsId CastorElectronicsMap::lookupTrigger | ( | DetId | fId | ) | const |
brief lookup the electronics detid associated with the given trigger logical id
Definition at line 89 of file CastorElectronicsMap.cc.
References findByTrigId(), CastorElectronicsMap::TriggerItem::mElId, and DetId::rawId().
bool CastorElectronicsMap::mapEId2chId | ( | CastorElectronicsId | fElectronicsId, |
DetId | fId | ||
) |
Definition at line 174 of file CastorElectronicsMap.cc.
References CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, CastorElectronicsMap::PrecisionItem::mId, mPItems, CastorElectronicsId::rawId(), DetId::rawId(), and sortedByPId.
Referenced by CastorDbHardcode::makeHardcodeMap().
bool CastorElectronicsMap::mapEId2tId | ( | CastorElectronicsId | fElectronicsId, |
HcalTrigTowerDetId | fTriggerId | ||
) |
Definition at line 159 of file CastorElectronicsMap.cc.
References CastorElectronicsId::linearIndex(), CastorElectronicsMap::TriggerItem::mElId, mTItems, CastorElectronicsMap::TriggerItem::mTrigId, CastorElectronicsId::rawId(), DetId::rawId(), and sortedByTId.
|
inline |
Definition at line 63 of file CastorElectronicsMap.h.
Referenced by CastorDbHardcode::makeHardcodeMap().
void CastorElectronicsMap::sortById | ( | ) | const |
Definition at line 190 of file CastorElectronicsMap.cc.
References i, mPItems, mPItemsById, python.multivaluedict::sort(), and sortedByPId.
Referenced by findById().
void CastorElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 202 of file CastorElectronicsMap.cc.
References i, mTItems, mTItemsByTrigId, python.multivaluedict::sort(), and sortedByTId.
Referenced by findByTrigId().
|
protected |
Definition at line 87 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), and sortById().
|
mutableprotected |
Definition at line 89 of file CastorElectronicsMap.h.
Referenced by findById(), and sortById().
|
protected |
Definition at line 88 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), and sortByTriggerId().
|
mutableprotected |
Definition at line 91 of file CastorElectronicsMap.h.
Referenced by findByTrigId(), and sortByTriggerId().
|
mutableprotected |
Definition at line 90 of file CastorElectronicsMap.h.
Referenced by findById(), mapEId2chId(), and sortById().
|
mutableprotected |
Definition at line 92 of file CastorElectronicsMap.h.
Referenced by findByTrigId(), mapEId2tId(), and sortByTriggerId().