#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 13 of file TrackerDetToDTCELinkCablingMap.cc.
void TrackerDetToDTCELinkCablingMap::clear | ( | void | ) |
Clears the map.
Definition at line 99 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_, and cablingMapDTCELinkIdToDetId_.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
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 30 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_, and Exception.
Referenced by DTCCablingMapTestReader::analyze().
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 19 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDTCELinkIdToDetId_, DTCELinkId::dtc_id(), DTCELinkId::elink_id(), Exception, and DTCELinkId::gbtlink_id().
Referenced by DTCCablingMapTestReader::analyze().
std::vector< uint32_t > TrackerDetToDTCELinkCablingMap::getKnownDetIds | ( | ) | const |
Returns a vector containing all detector DetId known to the map.
Definition at line 65 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_.
Referenced by DTCCablingMapTestReader::analyze().
std::vector< DTCELinkId > TrackerDetToDTCELinkCablingMap::getKnownDTCELinkIds | ( | ) | const |
Returns a vector containing all elink DTCELinkId nown to the map.
Definition at line 54 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDTCELinkIdToDetId_, and create_public_lumi_plots::transform.
Referenced by DTCCablingMapTestReader::analyze().
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 92 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 48 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDetIdToDTCELinkId_.
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 43 of file TrackerDetToDTCELinkCablingMap.cc.
References cablingMapDTCELinkIdToDetId_.
|
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().