#include <CondFormats/Phase2TrackerDTC/src/TrackerDetToDTCELinkCablingMap.cc>
Public Member Functions | |
void | clear () |
Clears the map. More... | |
std::pair< std::unordered_multimap< uint32_t, DTCELinkId >::const_iterator, std::unordered_multimap< uint32_t, DTCELinkId >::const_iterator > | detIdToDTCELinkId (uint32_t const) const |
Resolves one or more DTCELinkId of eLinks which are connected to the detector identified by the given raw DetId. More... | |
std::unordered_map< DTCELinkId, uint32_t >::const_iterator | dtcELinkIdToDetId (DTCELinkId const &) const |
Resolves the raw DetId of the detector connected to the eLink identified by a DTCELinkId. More... | |
std::vector< uint32_t > | getKnownDetIds () const |
Returns a vector containing all detector DetId known to the map. More... | |
std::vector< DTCELinkId > | getKnownDTCELinkIds () const |
Returns a vector containing all elink DTCELinkId nown to the map. More... | |
void | insert (DTCELinkId const &, uint32_t const) |
Inserts in the cabling map a record corresponding to the connection of an eLink identified by the given DTCELinkId to a detector identified by the given raw DetId. More... | |
bool | knowsDetId (uint32_t) const |
Returns true if the cabling map has a record corresponding to an eLink identified by the given DTCELinkId. More... | |
bool | knowsDTCELinkId (DTCELinkId const &) const |
Returns true if the cabling map has a record corresponding to a detector identified by the given raw DetId. More... | |
TrackerDetToDTCELinkCablingMap () | |
virtual | ~TrackerDetToDTCELinkCablingMap () |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::unordered_multimap< uint32_t, DTCELinkId > | cablingMapDetIdToDTCELinkId_ |
std::unordered_map< DTCELinkId, uint32_t > | cablingMapDTCELinkIdToDetId_ |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Description: Map associating DTCELinkId of Phase2 tracker DTCs to DetId of the sensors connected to each of them.
Implementation: [Notes on implementation]
Definition at line 29 of file TrackerDetToDTCELinkCablingMap.h.
TrackerDetToDTCELinkCablingMap::TrackerDetToDTCELinkCablingMap | ( | ) |
Definition at line 8 of file TrackerDetToDTCELinkCablingMap.cc.
|
virtual |
Definition at line 10 of file TrackerDetToDTCELinkCablingMap.cc.
void TrackerDetToDTCELinkCablingMap::clear | ( | void | ) |
Clears the map.
Definition at line 90 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_, and cablingMapDTCELinkIdToDetId_.
Referenced by BeautifulSoup.Tag::setString().
std::pair< std::unordered_multimap< uint32_t, DTCELinkId >::const_iterator, std::unordered_multimap< uint32_t, DTCELinkId >::const_iterator > TrackerDetToDTCELinkCablingMap::detIdToDTCELinkId | ( | uint32_t const | key | ) | const |
Resolves one or more DTCELinkId of eLinks which are connected to the detector identified by the given raw DetId.
Definition at line 27 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_, Exception, and crabWrapper::key.
Referenced by trackerDTC::Setup::produceSensorModules().
std::unordered_map< DTCELinkId, uint32_t >::const_iterator TrackerDetToDTCELinkCablingMap::dtcELinkIdToDetId | ( | DTCELinkId const & | key | ) | const |
Resolves the raw DetId of the detector connected to the eLink identified by a DTCELinkId.
Definition at line 12 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDTCELinkIdToDetId_, Exception, and crabWrapper::key.
Referenced by trackerDTC::Setup::encodeLayerId().
std::vector< uint32_t > TrackerDetToDTCELinkCablingMap::getKnownDetIds | ( | ) | const |
Returns a vector containing all detector DetId known to the map.
Definition at line 60 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_.
std::vector< DTCELinkId > TrackerDetToDTCELinkCablingMap::getKnownDTCELinkIds | ( | ) | const |
Returns a vector containing all elink DTCELinkId nown to the map.
Definition at line 48 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDTCELinkIdToDetId_, and HcalDetIdTransform::transform().
Referenced by trackerDTC::Setup::encodeLayerId().
void TrackerDetToDTCELinkCablingMap::insert | ( | DTCELinkId const & | dtcELinkId, |
uint32_t const | detId | ||
) |
Inserts in the cabling map a record corresponding to the connection of an eLink identified by the given DTCELinkId to a detector identified by the given raw DetId.
Definition at line 85 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_, and cablingMapDTCELinkIdToDetId_.
Referenced by BeautifulSoup.PageElement::append().
bool TrackerDetToDTCELinkCablingMap::knowsDetId | ( | uint32_t | key | ) | const |
Returns true if the cabling map has a record corresponding to an eLink identified by the given DTCELinkId.
Definition at line 44 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_, and crabWrapper::key.
bool TrackerDetToDTCELinkCablingMap::knowsDTCELinkId | ( | DTCELinkId const & | key | ) | const |
Returns true if the cabling map has a record corresponding to a detector identified by the given raw DetId.
Definition at line 40 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDTCELinkIdToDetId_, and crabWrapper::key.
|
private |
|
friend |
Definition at line 69 of file TrackerDetToDTCELinkCablingMap.h.
|
friend |
Definition at line 69 of file TrackerDetToDTCELinkCablingMap.h.
|
private |
Definition at line 66 of file TrackerDetToDTCELinkCablingMap.h.
Referenced by clear(), detIdToDTCELinkId(), getKnownDetIds(), insert(), and knowsDetId().
|
private |
Definition at line 67 of file TrackerDetToDTCELinkCablingMap.h.
Referenced by clear(), dtcELinkIdToDetId(), getKnownDTCELinkIds(), insert(), and knowsDTCELinkId().