CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
DTReadOutMapping Class Reference

#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 DTReadOutMappingfullMap () 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 &sectorId, 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
 
DTReadOutMappingoperator= (DTReadOutMapping const &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Static Private Member Functions

static DTReadOutMappingexpandMap (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
 

Detailed Description

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.

Author
Paolo Ronchese INFN Padova

Definition at line 66 of file DTReadOutMapping.h.

Member Typedef Documentation

Access methods to the connections.

Definition at line 149 of file DTReadOutMapping.h.

Member Enumeration Documentation

Enumerator
plain 
compact 

Definition at line 80 of file DTReadOutMapping.h.

Constructor & Destructor Documentation

DTReadOutMapping::DTReadOutMapping ( )

Constructor

Definition at line 34 of file DTReadOutMapping.cc.

DTReadOutMapping::DTReadOutMapping ( const std::string &  cell_map_version,
const std::string &  rob_map_version 
)

Definition at line 44 of file DTReadOutMapping.cc.

DTReadOutMapping::~DTReadOutMapping ( )

Destructor

Definition at line 72 of file DTReadOutMapping.cc.

DTReadOutMapping::DTReadOutMapping ( DTReadOutMapping const &  )
private

Member Function Documentation

edm::AtomicPtrCache<DTReadOutMappingCache> const& DTReadOutMapping::atomicCache ( ) const
inlineprivate

Definition at line 161 of file DTReadOutMapping.h.

References atomicCache_.

161 { return atomicCache_; }
edm::AtomicPtrCache< DTReadOutMappingCache > atomicCache_
edm::AtomicPtrCache<DTReadOutMappingCache>& DTReadOutMapping::atomicCache ( )
inlineprivate

Definition at line 162 of file DTReadOutMapping.h.

References atomicCache_.

162 { return atomicCache_; }
edm::AtomicPtrCache< DTReadOutMappingCache > atomicCache_
DTReadOutMapping::const_iterator DTReadOutMapping::begin ( void  ) const

Definition at line 463 of file DTReadOutMapping.cc.

void DTReadOutMapping::cacheMap ( ) const
private

read and store full content

Definition at line 580 of file DTReadOutMapping.cc.

void DTReadOutMapping::clear ( void  )
DTReadOutMapping::const_iterator DTReadOutMapping::end ( void  ) const

Definition at line 468 of file DTReadOutMapping.cc.

DTReadOutMapping * DTReadOutMapping::expandMap ( const DTReadOutMapping compMap)
staticprivate

Definition at line 481 of file DTReadOutMapping.cc.

const DTReadOutMapping * DTReadOutMapping::fullMap ( ) const

Expand to full map.

Definition at line 473 of file DTReadOutMapping.cc.

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.

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.

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.

Referenced by DTReadOutMappingHandler::getNewObjects().

const std::string & DTReadOutMapping::mapCellTdc ( ) const

access parent maps identifiers

Definition at line 370 of file DTReadOutMapping.cc.

std::string & DTReadOutMapping::mapCellTdc ( )

Definition at line 375 of file DTReadOutMapping.cc.

std::string DTReadOutMapping::mapNameGR ( ) const
private

Definition at line 566 of file DTReadOutMapping.cc.

std::string DTReadOutMapping::mapNameRG ( ) const
private

Definition at line 573 of file DTReadOutMapping.cc.

const std::string & DTReadOutMapping::mapRobRos ( ) const

Definition at line 381 of file DTReadOutMapping.cc.

std::string & DTReadOutMapping::mapRobRos ( )

Definition at line 386 of file DTReadOutMapping.cc.

DTReadOutMapping::type DTReadOutMapping::mapType ( ) const

Definition at line 356 of file DTReadOutMapping.cc.

DTReadOutMapping& DTReadOutMapping::operator= ( DTReadOutMapping const &  )
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.

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.

template<class Archive >
void DTReadOutMapping::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 182 of file DTReadOutMapping.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 182 of file DTReadOutMapping.h.

Member Data Documentation

edm::AtomicPtrCache<DTReadOutMappingCache> DTReadOutMapping::atomicCache_
private

Definition at line 171 of file DTReadOutMapping.h.

Referenced by atomicCache().

std::string DTReadOutMapping::cellMapVersion
private

Definition at line 166 of file DTReadOutMapping.h.

edm::ConstRespectingPtr<DTBufferTree<int,int> > DTReadOutMapping::grBuf
private

Definition at line 173 of file DTReadOutMapping.h.

std::vector<DTReadOutGeometryLink> DTReadOutMapping::readOutChannelDriftTubeMap
private

Definition at line 169 of file DTReadOutMapping.h.

edm::ConstRespectingPtr<DTBufferTree<int,int> > DTReadOutMapping::rgBuf
private

Definition at line 172 of file DTReadOutMapping.h.

std::string DTReadOutMapping::robMapVersion
private

Definition at line 167 of file DTReadOutMapping.h.