#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 &) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Static Private Member Functions | |
static DTReadOutMapping * | expandMap (const DTReadOutMapping &compMap) |
Private Attributes | |
edm::AtomicPtrCache < DTReadOutMappingCache > | atomicCache_ |
std::string | cellMapVersion |
edm::ConstRespectingPtr < DTBufferTree< int, int > > | grBuf |
std::vector < DTReadOutGeometryLink > | readOutChannelDriftTubeMap |
edm::ConstRespectingPtr < DTBufferTree< int, int > > | rgBuf |
std::string | robMapVersion |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
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.
References atomicCache_.
Referenced by cacheMap(), clear(), geometryToReadOut(), insertReadOutGeometryLink(), mapType(), and readOutToGeometry().
|
inlineprivate |
Definition at line 162 of file DTReadOutMapping.h.
References atomicCache_.
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, relval_steps::key, DTReadOutGeometryLink::layerId, MainPageGenerator::link, eostools::move(), readOutChannelDriftTubeMap, DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, DTReadOutGeometryLink::sectorId, edm::AtomicPtrCache< T >::set(), DTReadOutGeometryLink::stationId, SpecificationBuilder_cfi::val(), 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(), DTBufferTree< Key, Content >::clear(), grBuf, readOutChannelDriftTubeMap, edm::AtomicPtrCache< T >::reset(), and rgBuf.
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, MainPageGenerator::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, edm::ConstRespectingPtr< T >::get(), DTReadOutMappingCache::grBuf, grBuf, DTBufferTree< Key, Content >::insert(), MainPageGenerator::link, readOutChannelDriftTubeMap, DTReadOutMappingCache::rgBuf, 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 mps_update::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(), MainPageGenerator::link, DTReadOutMappingCache::mType, readOutChannelDriftTubeMap, DTReadOutMappingCache::rgBuf, DTReadOutMappingCache::rgDDU, DTReadOutMappingCache::rgROB, DTReadOutMappingCache::rgROS, and DTReadOutGeometryLink::stationId.
|
private |
|
friend |
Definition at line 182 of file DTReadOutMapping.h.
|
friend |
Definition at line 182 of file DTReadOutMapping.h.
|
private |
Definition at line 171 of file DTReadOutMapping.h.
Referenced by atomicCache().
|
private |
Definition at line 166 of file DTReadOutMapping.h.
Referenced by mapCellTdc(), mapNameGR(), and mapNameRG().
|
private |
Definition at line 173 of file DTReadOutMapping.h.
Referenced by clear(), and insertReadOutGeometryLink().
|
private |
Definition at line 169 of file DTReadOutMapping.h.
Referenced by begin(), cacheMap(), clear(), DTReadOutMapping(), end(), geometryToReadOut(), insertReadOutGeometryLink(), and readOutToGeometry().
|
private |
Definition at line 172 of file DTReadOutMapping.h.
Referenced by clear(), and insertReadOutGeometryLink().
|
private |
Definition at line 167 of file DTReadOutMapping.h.
Referenced by mapNameGR(), mapNameRG(), and mapRobRos().