#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 () | |
CastorElectronicsMap (const CastorElectronicsMap &src) | |
CastorElectronicsMap (CastorElectronicsMap &&other) | |
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) |
CastorElectronicsMap & | operator= (const CastorElectronicsMap &rhs) |
void | sort () |
void | sortById () const |
void | sortByTriggerId () const |
void | swap (CastorElectronicsMap &other) |
~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::atomic< std::vector < const PrecisionItem * > * > | mPItemsById |
std::vector< TriggerItem > | mTItems |
std::atomic< std::vector < const TriggerItem * > * > | mTItemsByTrigId |
Modified for CASTOR by L. Mundim
Adapted for CASTOR by L. Mundim
Definition at line 28 of file CastorElectronicsMap.h.
CastorElectronicsMap::CastorElectronicsMap | ( | ) |
Definition at line 17 of file CastorElectronicsMap.cc.
CastorElectronicsMap::~CastorElectronicsMap | ( | ) |
Definition at line 28 of file CastorElectronicsMap.cc.
References mPItemsById, and mTItemsByTrigId.
CastorElectronicsMap::CastorElectronicsMap | ( | const CastorElectronicsMap & | src | ) |
Definition at line 39 of file CastorElectronicsMap.cc.
CastorElectronicsMap::CastorElectronicsMap | ( | CastorElectronicsMap && | other | ) |
Definition at line 57 of file CastorElectronicsMap.cc.
References swap().
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsId | ( | ) | const |
Definition at line 144 of file CastorElectronicsMap.cc.
References mPItems, mTItems, and query::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdPrecision | ( | ) | const |
Definition at line 154 of file CastorElectronicsMap.cc.
References mPItems, and query::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdTrigger | ( | ) | const |
Definition at line 161 of file CastorElectronicsMap.cc.
References mTItems, and query::result.
std::vector< HcalGenericDetId > CastorElectronicsMap::allPrecisionId | ( | ) | const |
Definition at line 169 of file CastorElectronicsMap.cc.
References mPItems, and query::result.
Referenced by CastorPedestalsAnalysis::analyze().
std::vector< HcalTrigTowerDetId > CastorElectronicsMap::allTriggerId | ( | ) | const |
Definition at line 180 of file CastorElectronicsMap.cc.
References mTItems, and query::result.
|
protected |
Definition at line 62 of file CastorElectronicsMap.cc.
References sortById(), and filterCSVwithJSON::target.
Referenced by lookup().
|
protected |
Definition at line 92 of file CastorElectronicsMap.cc.
References sortByTriggerId(), and filterCSVwithJSON::target.
Referenced by lookupTrigger().
|
protected |
Definition at line 75 of file CastorElectronicsMap.cc.
References i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, and mPItems.
Referenced by lookup().
|
protected |
Definition at line 83 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 105 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 110 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 125 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 134 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 115 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 120 of file CastorElectronicsMap.cc.
References findByTrigId(), CastorElectronicsMap::TriggerItem::mElId, and DetId::rawId().
bool CastorElectronicsMap::mapEId2chId | ( | CastorElectronicsId | fElectronicsId, |
DetId | fId | ||
) |
Definition at line 204 of file CastorElectronicsMap.cc.
References CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, CastorElectronicsMap::PrecisionItem::mId, mPItems, CastorElectronicsId::rawId(), and DetId::rawId().
Referenced by CastorDbHardcode::makeHardcodeMap().
bool CastorElectronicsMap::mapEId2tId | ( | CastorElectronicsId | fElectronicsId, |
HcalTrigTowerDetId | fTriggerId | ||
) |
Definition at line 190 of file CastorElectronicsMap.cc.
References CastorElectronicsId::linearIndex(), CastorElectronicsMap::TriggerItem::mElId, mTItems, CastorElectronicsMap::TriggerItem::mTrigId, CastorElectronicsId::rawId(), and DetId::rawId().
CastorElectronicsMap & CastorElectronicsMap::operator= | ( | const CastorElectronicsMap & | rhs | ) |
Definition at line 44 of file CastorElectronicsMap.cc.
References swap(), and groupFilesInBlocks::temp.
|
inline |
Definition at line 76 of file CastorElectronicsMap.h.
Referenced by CastorDbHardcode::makeHardcodeMap().
void CastorElectronicsMap::sortById | ( | ) | const |
Definition at line 219 of file CastorElectronicsMap.cc.
References i, mPItems, mPItemsById, and python.multivaluedict::sort().
Referenced by findById().
void CastorElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 235 of file CastorElectronicsMap.cc.
References i, mTItems, mTItemsByTrigId, and python.multivaluedict::sort().
Referenced by findByTrigId().
void CastorElectronicsMap::swap | ( | CastorElectronicsMap & | other | ) |
Definition at line 50 of file CastorElectronicsMap.cc.
References mPItems, mPItemsById, mTItems, mTItemsByTrigId, and std::swap().
Referenced by CastorElectronicsMap(), and operator=().
|
protected |
Definition at line 100 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), sortById(), and swap().
|
mutableprotected |
Definition at line 103 of file CastorElectronicsMap.h.
Referenced by sortById(), swap(), and ~CastorElectronicsMap().
|
protected |
Definition at line 101 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), sortByTriggerId(), and swap().
|
mutableprotected |
Definition at line 104 of file CastorElectronicsMap.h.
Referenced by sortByTriggerId(), swap(), and ~CastorElectronicsMap().