#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 | |
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 |
Modified for CASTOR by L. Mundim
Adapted for CASTOR by L. Mundim
Definition at line 30 of file CastorElectronicsMap.h.
CastorElectronicsMap::CastorElectronicsMap | ( | ) |
Definition at line 17 of file CastorElectronicsMap.cc.
CastorElectronicsMap::~CastorElectronicsMap | ( | ) |
Definition at line 28 of file CastorElectronicsMap.cc.
CastorElectronicsMap::CastorElectronicsMap | ( | const CastorElectronicsMap & | src | ) |
Definition at line 33 of file CastorElectronicsMap.cc.
CastorElectronicsMap::CastorElectronicsMap | ( | CastorElectronicsMap && | other | ) |
Definition at line 51 of file CastorElectronicsMap.cc.
References swap().
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsId | ( | ) | const |
Definition at line 138 of file CastorElectronicsMap.cc.
References mPItems, mTItems, and query::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdPrecision | ( | ) | const |
Definition at line 148 of file CastorElectronicsMap.cc.
References mPItems, and query::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdTrigger | ( | ) | const |
Definition at line 155 of file CastorElectronicsMap.cc.
References mTItems, and query::result.
std::vector< HcalGenericDetId > CastorElectronicsMap::allPrecisionId | ( | ) | const |
Definition at line 163 of file CastorElectronicsMap.cc.
References mPItems, and query::result.
Referenced by CastorPedestalsAnalysis::analyze().
std::vector< HcalTrigTowerDetId > CastorElectronicsMap::allTriggerId | ( | ) | const |
Definition at line 174 of file CastorElectronicsMap.cc.
References mTItems, and query::result.
|
protected |
Definition at line 56 of file CastorElectronicsMap.cc.
References sortById(), and filterCSVwithJSON::target.
Referenced by lookup().
|
protected |
Definition at line 86 of file CastorElectronicsMap.cc.
References sortByTriggerId(), and filterCSVwithJSON::target.
Referenced by lookupTrigger().
|
protected |
Definition at line 69 of file CastorElectronicsMap.cc.
References i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, and mPItems.
Referenced by lookup().
|
protected |
Definition at line 77 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 99 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 104 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 119 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 128 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 109 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 114 of file CastorElectronicsMap.cc.
References findByTrigId(), CastorElectronicsMap::TriggerItem::mElId, and DetId::rawId().
bool CastorElectronicsMap::mapEId2chId | ( | CastorElectronicsId | fElectronicsId, |
DetId | fId | ||
) |
Definition at line 198 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 184 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 38 of file CastorElectronicsMap.cc.
References swap(), and groupFilesInBlocks::temp.
|
inline |
Definition at line 78 of file CastorElectronicsMap.h.
Referenced by CastorDbHardcode::makeHardcodeMap().
void CastorElectronicsMap::sortById | ( | ) | const |
Definition at line 213 of file CastorElectronicsMap.cc.
References i, mPItems, and python.multivaluedict::sort().
Referenced by findById().
void CastorElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 229 of file CastorElectronicsMap.cc.
References i, mTItems, and python.multivaluedict::sort().
Referenced by findByTrigId().
void CastorElectronicsMap::swap | ( | CastorElectronicsMap & | other | ) |
Definition at line 44 of file CastorElectronicsMap.cc.
References mPItems, mTItems, and std::swap().
Referenced by CastorElectronicsMap(), and operator=().
|
protected |
Definition at line 116 of file CastorElectronicsMap.h.
|
mutableprotected |
Definition at line 109 of file CastorElectronicsMap.h.
|
mutableprotected |
Definition at line 110 of file CastorElectronicsMap.h.
|
protected |
Definition at line 106 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), sortById(), and swap().
|
protected |
Definition at line 107 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), sortByTriggerId(), and swap().