#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 (DTReadOutMapping const &)=delete | |
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 |
DTReadOutMapping & | operator= (DTReadOutMapping const &)=delete |
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... | |
std::string | mapNameGR () const |
std::string | mapNameRG () 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 62 of file DTReadOutMapping.h.
typedef std::vector<DTReadOutGeometryLink>::const_iterator DTReadOutMapping::const_iterator |
Access methods to the connections.
Definition at line 132 of file DTReadOutMapping.h.
Enumerator | |
---|---|
plain | |
compact |
Definition at line 75 of file DTReadOutMapping.h.
DTReadOutMapping::DTReadOutMapping | ( | ) |
Constructor
Definition at line 33 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
Referenced by expandMap().
|
delete |
DTReadOutMapping::DTReadOutMapping | ( | const std::string & | cell_map_version, |
const std::string & | rob_map_version | ||
) |
Definition at line 38 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
DTReadOutMapping::~DTReadOutMapping | ( | ) |
|
inlineprivate |
Definition at line 140 of file DTReadOutMapping.h.
References atomicCache_.
Referenced by cacheMap(), clear(), geometryToReadOut(), insertReadOutGeometryLink(), mapType(), and readOutToGeometry().
|
inlineprivate |
Definition at line 141 of file DTReadOutMapping.h.
References atomicCache_.
DTReadOutMapping::const_iterator DTReadOutMapping::begin | ( | void | ) | const |
Definition at line 404 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
Referenced by expandMap().
|
private |
read and store full content
Definition at line 511 of file DTReadOutMapping.cc.
References atomicCache(), hltPixelClustersMultiplicity_cfi::defaultValue, crabWrapper::key, MainPageGenerator::link, eostools::move(), readOutChannelDriftTubeMap, DTReadOutGeometryLink::sectorId, edm::AtomicPtrCache< T >::set(), heppy_batch::val, and DTReadOutGeometryLink::wheelId.
Referenced by geometryToReadOut(), mapType(), and readOutToGeometry().
void DTReadOutMapping::clear | ( | void | ) |
clear map
Definition at line 333 of file DTReadOutMapping.cc.
References atomicCache(), DTBufferTree< Key, Content >::clear(), grBuf, readOutChannelDriftTubeMap, edm::AtomicPtrCache< T >::reset(), and rgBuf.
Referenced by BeautifulSoup.Tag::setString().
DTReadOutMapping::const_iterator DTReadOutMapping::end | ( | void | ) | const |
Definition at line 406 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and expandMap().
|
staticprivate |
Definition at line 416 of file DTReadOutMapping.cc.
References begin(), DTReadOutGeometryLink::cellId, DTReadOutGeometryLink::channelId, gather_cfg::cout, DTReadOutGeometryLink::dduId, spu::def(), DTReadOutMapping(), end(), fullMap(), insertReadOutGeometryLink(), DTReadOutGeometryLink::layerId, mapCellTdc(), mapRobRos(), MT2Analyzer::mt2, DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, fileinputsource_cfi::sec, 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 408 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 185 of file DTReadOutMapping.cc.
References atomicCache(), cacheMap(), DTReadOutGeometryLink::channelId, DTReadOutGeometryLink::dduId, hltPixelClustersMultiplicity_cfi::defaultValue, DTBufferTree< Key, Content >::find(), DTReadOutMappingCache::grBuf, DTReadOutMappingCache::grDDU, DTReadOutMappingCache::grROB, DTReadOutMappingCache::grROS, MainPageGenerator::link, DTReadOutMappingCache::mType, readOutChannelDriftTubeMap, DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, DTReadOutGeometryLink::sectorId, DTReadOutGeometryLink::tdcId, and DTReadOutGeometryLink::wheelId.
Referenced by DTDigiTask::channelsMap(), and geometryToReadOut().
int DTReadOutMapping::geometryToReadOut | ( | const DTWireId & | wireId, |
int & | dduId, | ||
int & | rosId, | ||
int & | robId, | ||
int & | tdcId, | ||
int & | channelId | ||
) | const |
Definition at line 170 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 341 of file DTReadOutMapping.cc.
References atomicCache(), edm::ConstRespectingPtr< T >::get(), DTReadOutMappingCache::grBuf, grBuf, DTBufferTree< Key, Content >::insert(), MainPageGenerator::link, readOutChannelDriftTubeMap, DTReadOutMappingCache::rgBuf, and rgBuf.
Referenced by expandMap(), and DTReadOutMappingHandler::getNewObjects().
const std::string & DTReadOutMapping::mapCellTdc | ( | ) | const |
access parent maps identifiers
Definition at line 325 of file DTReadOutMapping.cc.
References cellMapVersion.
Referenced by expandMap().
std::string & DTReadOutMapping::mapCellTdc | ( | ) |
|
private |
Definition at line 499 of file DTReadOutMapping.cc.
References cellMapVersion, Skims_PA_cff::name, and robMapVersion.
|
private |
Definition at line 505 of file DTReadOutMapping.cc.
References cellMapVersion, Skims_PA_cff::name, and robMapVersion.
const std::string & DTReadOutMapping::mapRobRos | ( | ) | const |
Definition at line 329 of file DTReadOutMapping.cc.
References robMapVersion.
Referenced by expandMap().
std::string & DTReadOutMapping::mapRobRos | ( | ) |
DTReadOutMapping::type DTReadOutMapping::mapType | ( | ) | const |
Definition at line 312 of file DTReadOutMapping.cc.
References atomicCache(), cacheMap(), compact, hltPixelClustersMultiplicity_cfi::defaultValue, DTBufferTree< Key, Content >::find(), DTReadOutMappingCache::mType, and plain.
Referenced by fullMap().
|
delete |
int DTReadOutMapping::readOutToGeometry | ( | int | dduId, |
int | rosId, | ||
int | robId, | ||
int | tdcId, | ||
int | channelId, | ||
DTWireId & | wireId | ||
) | const |
transform identifiers
Operations
Definition at line 69 of file DTReadOutMapping.cc.
References mps_update::status.
Referenced by DTDAQInfo::dqmEndLuminosityBlock(), DTBlockedROChannelsTest::fillChamberMap(), DTDataIntegrityTest::readOutToGeometry(), and DTBlockedROChannelsTest::readOutToGeometry().
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 85 of file DTReadOutMapping.cc.
References atomicCache(), cacheMap(), DTReadOutGeometryLink::cellId, hltPixelClustersMultiplicity_cfi::defaultValue, DTBufferTree< Key, Content >::find(), DTReadOutGeometryLink::layerId, MainPageGenerator::link, DTReadOutMappingCache::mType, readOutChannelDriftTubeMap, DTReadOutMappingCache::rgBuf, DTReadOutMappingCache::rgDDU, DTReadOutMappingCache::rgROB, DTReadOutMappingCache::rgROS, DTReadOutGeometryLink::sectorId, DTReadOutGeometryLink::slId, DTReadOutGeometryLink::stationId, and DTReadOutGeometryLink::wheelId.
|
private |
|
friend |
Definition at line 160 of file DTReadOutMapping.h.
|
friend |
Definition at line 160 of file DTReadOutMapping.h.
|
private |
Definition at line 150 of file DTReadOutMapping.h.
Referenced by atomicCache().
|
private |
Definition at line 145 of file DTReadOutMapping.h.
Referenced by mapCellTdc(), mapNameGR(), and mapNameRG().
|
private |
Definition at line 152 of file DTReadOutMapping.h.
Referenced by clear(), and insertReadOutGeometryLink().
|
private |
Definition at line 148 of file DTReadOutMapping.h.
Referenced by begin(), cacheMap(), clear(), DTReadOutMapping(), end(), geometryToReadOut(), insertReadOutGeometryLink(), and readOutToGeometry().
|
private |
Definition at line 151 of file DTReadOutMapping.h.
Referenced by clear(), and insertReadOutGeometryLink().
|
private |
Definition at line 146 of file DTReadOutMapping.h.
Referenced by mapNameGR(), mapNameRG(), and mapRobRos().