#include <DTReadOutMapping.h>
Public Types | |
typedef std::vector < DTReadOutGeometryLink > ::const_iterator | const_iterator |
Access methods to the connections. More... | |
enum | type { plain, compact } |
Public Member Functions | |
const_iterator | begin () const |
void | clear () |
clear map More... | |
DTReadOutMapping () | |
DTReadOutMapping (const std::string &cell_map_version, const std::string &rob_map_version) | |
const_iterator | end () const |
const DTReadOutMapping * | fullMap () const |
Expand to full map. More... | |
int | geometryToReadOut (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, int &dduId, int &rosId, int &robId, int &tdcId, int &channelId) const |
int | geometryToReadOut (const DTWireId &wireId, int &dduId, int &rosId, int &robId, int &tdcId, int &channelId) const |
int | insertReadOutGeometryLink (int dduId, int rosId, int robId, int tdcId, int channelId, int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) |
insert connection More... | |
const std::string & | mapCellTdc () const |
access parent maps identifiers More... | |
std::string & | mapCellTdc () |
const std::string & | mapRobRos () const |
std::string & | mapRobRos () |
type | mapType () const |
int | readOutToGeometry (int dduId, int rosId, int robId, int tdcId, int channelId, DTWireId &wireId) const |
transform identifiers More... | |
int | readOutToGeometry (int dduId, int rosId, int robId, int tdcId, int channelId, int &wheelId, int &stationId, int §orId, int &slId, int &layerId, int &cellId) const |
~DTReadOutMapping () | |
Private Member Functions | |
edm::AtomicPtrCache < DTReadOutMappingCache > const & | atomicCache () const |
edm::AtomicPtrCache < DTReadOutMappingCache > & | atomicCache () |
void | cacheMap () const |
read and store full content More... | |
DTReadOutMapping (DTReadOutMapping const &) | |
std::string | mapNameGR () const |
std::string | mapNameRG () const |
DTReadOutMapping & | operator= (DTReadOutMapping const &) |
Static Private Member Functions | |
static DTReadOutMapping * | expandMap (const DTReadOutMapping &compMap) |
Private Attributes | |
std::string | cellMapVersion |
COND_SERIALIZABLE | |
edm::AtomicPtrCache < DTReadOutMappingCache > atomicCache_ | COND_TRANSIENT |
edm::ConstRespectingPtr < DTBufferTree< int, int > > rgBuf | COND_TRANSIENT |
edm::ConstRespectingPtr < DTBufferTree< int, int > > grBuf | COND_TRANSIENT |
std::vector < DTReadOutGeometryLink > | readOutChannelDriftTubeMap |
std::string | robMapVersion |
Description: Class to map read-out channels to physical drift tubes Many details related to this class are described in internal note IN 2010_033. In particular the compact format is described there.
Definition at line 66 of file DTReadOutMapping.h.
typedef std::vector<DTReadOutGeometryLink>::const_iterator DTReadOutMapping::const_iterator |
Access methods to the connections.
Definition at line 149 of file DTReadOutMapping.h.
Enumerator | |
---|---|
plain | |
compact |
Definition at line 80 of file DTReadOutMapping.h.
DTReadOutMapping::DTReadOutMapping | ( | ) |
Constructor
Definition at line 34 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
Referenced by expandMap().
DTReadOutMapping::DTReadOutMapping | ( | const std::string & | cell_map_version, |
const std::string & | rob_map_version | ||
) |
Definition at line 44 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
DTReadOutMapping::~DTReadOutMapping | ( | ) |
|
private |
|
inlineprivate |
Definition at line 161 of file DTReadOutMapping.h.
Referenced by cacheMap(), clear(), geometryToReadOut(), insertReadOutGeometryLink(), mapType(), and readOutToGeometry().
|
inlineprivate |
Definition at line 162 of file DTReadOutMapping.h.
DTReadOutMapping::const_iterator DTReadOutMapping::begin | ( | void | ) | const |
Definition at line 463 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
Referenced by expandMap().
|
private |
read and store full content
Definition at line 580 of file DTReadOutMapping.cc.
References atomicCache(), DTReadOutGeometryLink::cellId, DTReadOutGeometryLink::channelId, DTReadOutGeometryLink::dduId, combine::key, DTReadOutGeometryLink::layerId, link(), readOutChannelDriftTubeMap, DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, DTReadOutGeometryLink::sectorId, edm::AtomicPtrCache< T >::set(), DTReadOutGeometryLink::stationId, and DTReadOutGeometryLink::wheelId.
Referenced by geometryToReadOut(), mapType(), and readOutToGeometry().
void DTReadOutMapping::clear | ( | void | ) |
clear map
Definition at line 391 of file DTReadOutMapping.cc.
References atomicCache(), readOutChannelDriftTubeMap, and edm::AtomicPtrCache< T >::reset().
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().
DTReadOutMapping::const_iterator DTReadOutMapping::end | ( | void | ) | const |
Definition at line 468 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and expandMap().
|
staticprivate |
Definition at line 481 of file DTReadOutMapping.cc.
References begin(), DTReadOutGeometryLink::cellId, DTReadOutGeometryLink::channelId, gather_cfg::cout, DTReadOutGeometryLink::dduId, def, DTReadOutMapping(), end(), fullMap(), insertReadOutGeometryLink(), DTReadOutGeometryLink::layerId, mapCellTdc(), mapRobRos(), DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, DTReadOutGeometryLink::sectorId, DTReadOutGeometryLink::slId, DTReadOutGeometryLink::stationId, AlCaHLTBitMon_QueryRunRegistry::string, DTReadOutGeometryLink::tdcId, and DTReadOutGeometryLink::wheelId.
Referenced by fullMap().
const DTReadOutMapping * DTReadOutMapping::fullMap | ( | ) | const |
Expand to full map.
Definition at line 473 of file DTReadOutMapping.cc.
References expandMap(), mapType(), and plain.
Referenced by expandMap().
int DTReadOutMapping::geometryToReadOut | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId, | ||
int & | dduId, | ||
int & | rosId, | ||
int & | robId, | ||
int & | tdcId, | ||
int & | channelId | ||
) | const |
Definition at line 223 of file DTReadOutMapping.cc.
References atomicCache(), cacheMap(), DTReadOutGeometryLink::channelId, DTReadOutGeometryLink::dduId, DTBufferTree< Key, Content >::find(), DTReadOutMappingCache::grBuf, DTReadOutMappingCache::grDDU, DTReadOutMappingCache::grROB, DTReadOutMappingCache::grROS, link(), DTReadOutMappingCache::mType, readOutChannelDriftTubeMap, DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, DTReadOutGeometryLink::sectorId, and DTReadOutGeometryLink::wheelId.
Referenced by geometryToReadOut().
int DTReadOutMapping::geometryToReadOut | ( | const DTWireId & | wireId, |
int & | dduId, | ||
int & | rosId, | ||
int & | robId, | ||
int & | tdcId, | ||
int & | channelId | ||
) | const |
Definition at line 203 of file DTReadOutMapping.cc.
References geometryToReadOut(), DTLayerId::layer(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
int DTReadOutMapping::insertReadOutGeometryLink | ( | int | dduId, |
int | rosId, | ||
int | robId, | ||
int | tdcId, | ||
int | channelId, | ||
int | wheelId, | ||
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId | ||
) |
insert connection
Definition at line 400 of file DTReadOutMapping.cc.
References atomicCache(), DTReadOutGeometryLink::channelId, DTReadOutMappingCache::grBuf, DTBufferTree< Key, Content >::insert(), link(), readOutChannelDriftTubeMap, DTReadOutMappingCache::rgBuf, and DTReadOutGeometryLink::stationId.
Referenced by expandMap(), and DTReadOutMappingHandler::getNewObjects().
const std::string & DTReadOutMapping::mapCellTdc | ( | ) | const |
access parent maps identifiers
Definition at line 370 of file DTReadOutMapping.cc.
References cellMapVersion.
Referenced by expandMap().
std::string & DTReadOutMapping::mapCellTdc | ( | ) |
|
private |
Definition at line 566 of file DTReadOutMapping.cc.
References cellMapVersion, mergeVDriftHistosByStation::name, and robMapVersion.
|
private |
Definition at line 573 of file DTReadOutMapping.cc.
References cellMapVersion, mergeVDriftHistosByStation::name, and robMapVersion.
const std::string & DTReadOutMapping::mapRobRos | ( | ) | const |
Definition at line 381 of file DTReadOutMapping.cc.
References robMapVersion.
Referenced by expandMap().
std::string & DTReadOutMapping::mapRobRos | ( | ) |
DTReadOutMapping::type DTReadOutMapping::mapType | ( | ) | const |
Definition at line 356 of file DTReadOutMapping.cc.
References atomicCache(), cacheMap(), compact, DTBufferTree< Key, Content >::find(), DTReadOutMappingCache::mType, and plain.
Referenced by fullMap().
|
private |
int DTReadOutMapping::readOutToGeometry | ( | int | dduId, |
int | rosId, | ||
int | robId, | ||
int | tdcId, | ||
int | channelId, | ||
DTWireId & | wireId | ||
) | const |
transform identifiers
Operations
Definition at line 81 of file DTReadOutMapping.cc.
References ntuplemaker::status.
int DTReadOutMapping::readOutToGeometry | ( | int | dduId, |
int | rosId, | ||
int | robId, | ||
int | tdcId, | ||
int | channelId, | ||
int & | wheelId, | ||
int & | stationId, | ||
int & | sectorId, | ||
int & | slId, | ||
int & | layerId, | ||
int & | cellId | ||
) | const |
Definition at line 113 of file DTReadOutMapping.cc.
References atomicCache(), cacheMap(), DTBufferTree< Key, Content >::find(), link(), DTReadOutMappingCache::mType, readOutChannelDriftTubeMap, DTReadOutMappingCache::rgBuf, DTReadOutMappingCache::rgDDU, DTReadOutMappingCache::rgROB, DTReadOutMappingCache::rgROS, and DTReadOutGeometryLink::stationId.
|
private |
Definition at line 166 of file DTReadOutMapping.h.
Referenced by mapCellTdc(), mapNameGR(), and mapNameRG().
|
private |
Definition at line 182 of file DTReadOutMapping.h.
|
private |
Definition at line 171 of file DTReadOutMapping.h.
|
private |
Definition at line 172 of file DTReadOutMapping.h.
|
private |
Definition at line 173 of file DTReadOutMapping.h.
|
private |
Definition at line 169 of file DTReadOutMapping.h.
Referenced by begin(), cacheMap(), clear(), DTReadOutMapping(), end(), geometryToReadOut(), insertReadOutGeometryLink(), and readOutToGeometry().
|
private |
Definition at line 167 of file DTReadOutMapping.h.
Referenced by mapNameGR(), mapNameRG(), and mapRobRos().