#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 38 of file CastorElectronicsMap.cc.
References mPItemsById, and mTItemsByTrigId.
CastorElectronicsMap::CastorElectronicsMap | ( | const CastorElectronicsMap & | src | ) |
Definition at line 43 of file CastorElectronicsMap.cc.
CastorElectronicsMap::CastorElectronicsMap | ( | CastorElectronicsMap && | other | ) |
Definition at line 59 of file CastorElectronicsMap.cc.
References swap().
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsId | ( | ) | const |
Definition at line 149 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, mPItems, mTItems, and mps_fire::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdPrecision | ( | ) | const |
Definition at line 161 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, mPItems, and mps_fire::result.
std::vector< CastorElectronicsId > CastorElectronicsMap::allElectronicsIdTrigger | ( | ) | const |
Definition at line 169 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, mTItems, and mps_fire::result.
std::vector< HcalGenericDetId > CastorElectronicsMap::allPrecisionId | ( | ) | const |
Definition at line 178 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, mPItems, and mps_fire::result.
Referenced by CastorPedestalsAnalysis::analyze().
std::vector< HcalTrigTowerDetId > CastorElectronicsMap::allTriggerId | ( | ) | const |
Definition at line 190 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, mTItems, and mps_fire::result.
|
protected |
Definition at line 61 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, cuda_std::lower_bound(), sortById(), and filterCSVwithJSON::target.
Referenced by lookup().
|
protected |
Definition at line 92 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, cuda_std::lower_bound(), sortByTriggerId(), and filterCSVwithJSON::target.
Referenced by lookupTrigger().
|
protected |
Definition at line 74 of file CastorElectronicsMap.cc.
References runTauDisplay::eid, mps_fire::i, CastorElectronicsId::linearIndex(), CastorElectronicsMap::PrecisionItem::mElId, and mPItems.
Referenced by lookup().
|
protected |
Definition at line 83 of file CastorElectronicsMap.cc.
References runTauDisplay::eid, mps_fire::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(), B2GTnPMonitor_cfi::item, 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(), B2GTnPMonitor_cfi::item, 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 mps_fire::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 137 of file CastorElectronicsMap.cc.
References mps_fire::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(), B2GTnPMonitor_cfi::item, 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(), B2GTnPMonitor_cfi::item, CastorElectronicsMap::TriggerItem::mElId, and DetId::rawId().
bool CastorElectronicsMap::mapEId2chId | ( | CastorElectronicsId | fElectronicsId, |
DetId | fId | ||
) |
Definition at line 216 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, 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 201 of file CastorElectronicsMap.cc.
References B2GTnPMonitor_cfi::item, CastorElectronicsId::linearIndex(), CastorElectronicsMap::TriggerItem::mElId, mTItems, CastorElectronicsMap::TriggerItem::mTrigId, CastorElectronicsId::rawId(), and DetId::rawId().
CastorElectronicsMap & CastorElectronicsMap::operator= | ( | const CastorElectronicsMap & | rhs | ) |
Definition at line 46 of file CastorElectronicsMap.cc.
References swap(), and groupFilesInBlocks::temp.
|
private |
|
inline |
Definition at line 78 of file CastorElectronicsMap.h.
Referenced by CastorDbHardcode::makeHardcodeMap().
void CastorElectronicsMap::sortById | ( | ) | const |
Definition at line 232 of file CastorElectronicsMap.cc.
References mps_fire::i, mPItems, and mPItemsById.
Referenced by findById().
void CastorElectronicsMap::sortByTriggerId | ( | ) | const |
Definition at line 249 of file CastorElectronicsMap.cc.
References mps_fire::i, mTItems, and mTItemsByTrigId.
Referenced by findByTrigId().
void CastorElectronicsMap::swap | ( | CastorElectronicsMap & | other | ) |
Definition at line 52 of file CastorElectronicsMap.cc.
References mPItems, mPItemsById, mTItems, mTItemsByTrigId, and std::swap().
Referenced by CastorElectronicsMap(), and operator=().
|
friend |
Definition at line 115 of file CastorElectronicsMap.h.
|
friend |
Definition at line 115 of file CastorElectronicsMap.h.
|
protected |
Definition at line 105 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdPrecision(), allPrecisionId(), findPByElId(), lookup(), mapEId2chId(), sortById(), and swap().
|
mutableprotected |
Definition at line 108 of file CastorElectronicsMap.h.
Referenced by sortById(), swap(), and ~CastorElectronicsMap().
|
protected |
Definition at line 106 of file CastorElectronicsMap.h.
Referenced by allElectronicsId(), allElectronicsIdTrigger(), allTriggerId(), findTByElId(), lookup(), mapEId2tId(), sortByTriggerId(), and swap().
|
mutableprotected |
Definition at line 109 of file CastorElectronicsMap.h.
Referenced by sortByTriggerId(), swap(), and ~CastorElectronicsMap().