#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 |
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 |
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.
References mPItemsById, and mTItemsByTrigId.
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 trackingPlots::other.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsId | ( | ) | const |
Definition at line 138 of file CastorElectronicsMap.cc.
References mPItems, mTItems, and mps_fire::result.
Referenced by CastorDbASCIIIO::dumpObject().
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdPrecision | ( | ) | const |
Definition at line 148 of file CastorElectronicsMap.cc.
References mPItems, and mps_fire::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdTrigger | ( | ) | const |
Definition at line 155 of file CastorElectronicsMap.cc.
References mTItems, and mps_fire::result.
std::vector< HcalGenericDetId > CastorElectronicsMap::allPrecisionId | ( | ) | const |
Definition at line 163 of file CastorElectronicsMap.cc.
References mPItems, and mps_fire::result.
Referenced by CastorPedestalsAnalysis::analyze().
std::vector< HcalTrigTowerDetId > CastorElectronicsMap::allTriggerId | ( | ) | const |
Definition at line 174 of file CastorElectronicsMap.cc.
References mTItems, and mps_fire::result.
|
protected |
Definition at line 56 of file CastorElectronicsMap.cc.
References sortById(), and edmPickEvents::target.
Referenced by lookup().
|
protected |
Definition at line 86 of file CastorElectronicsMap.cc.
References sortByTriggerId(), and edmPickEvents::target.
Referenced by lookupTrigger().
|
protected |
Definition at line 69 of file CastorElectronicsMap.cc.
References runTauDisplay::eid, i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, and mPItems.
Referenced by lookup().
|
protected |
Definition at line 77 of file CastorElectronicsMap.cc.
References runTauDisplay::eid, 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 CastorDbASCIIIO::dumpObject(), 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().
Referenced by CastorDbASCIIIO::dumpObject().
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 CastorDbASCIIIO::getObject(), and 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().
Referenced by CastorDbASCIIIO::getObject().
CastorElectronicsMap & CastorElectronicsMap::operator= | ( | const CastorElectronicsMap & | rhs | ) |
Definition at line 38 of file CastorElectronicsMap.cc.
References swap(), and groupFilesInBlocks::temp.
|
private |
|
inline |
Definition at line 78 of file CastorElectronicsMap.h.
Referenced by CastorDbASCIIIO::getObject(), and CastorDbHardcode::makeHardcodeMap().
void CastorElectronicsMap::sortById | ( | ) | const |
Definition at line 213 of file CastorElectronicsMap.cc.
References i, mPItems, and mPItemsById.
Referenced by findById().
void CastorElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 229 of file CastorElectronicsMap.cc.
References i, mTItems, and mTItemsByTrigId.
Referenced by findByTrigId().
void CastorElectronicsMap::swap | ( | CastorElectronicsMap & | other | ) |
Definition at line 44 of file CastorElectronicsMap.cc.
References mPItems, mPItemsById, mTItems, mTItemsByTrigId, and std::swap().
Referenced by operator=().
|
friend |
Definition at line 116 of file CastorElectronicsMap.h.
|
friend |
Definition at line 116 of file CastorElectronicsMap.h.
|
protected |
Definition at line 106 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), sortById(), and swap().
|
mutableprotected |
Definition at line 109 of file CastorElectronicsMap.h.
Referenced by sortById(), swap(), and ~CastorElectronicsMap().
|
protected |
Definition at line 107 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), sortByTriggerId(), and swap().
|
mutableprotected |
Definition at line 110 of file CastorElectronicsMap.h.
Referenced by sortByTriggerId(), swap(), and ~CastorElectronicsMap().