CMS 3D CMS Logo

DTReadOutMapping.h
Go to the documentation of this file.
1 #ifndef DTReadOutMapping_H
2 #define DTReadOutMapping_H
3 
15 //----------------------
16 // Base Class Headers --
17 //----------------------
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
23 
27 
28 //---------------
29 // C++ Headers --
30 //---------------
31 #include <vector>
32 #include <string>
33 
35 template <class Key, class Content>
36 class DTBufferTree;
37 
38 // ---------------------
39 // -- Class Interface --
40 // ---------------------
41 
43 public:
46 
47  int dduId;
48  int rosId;
49  int robId;
50  int tdcId;
51  int channelId;
52  int wheelId;
53  int stationId;
54  int sectorId;
55  int slId;
56  int layerId;
57  int cellId;
58 
60 };
61 
63 public:
67  DTReadOutMapping(const std::string& cell_map_version, const std::string& rob_map_version);
68 
72 
73  enum type { plain, compact };
74 
77  int readOutToGeometry(int dduId, int rosId, int robId, int tdcId, int channelId, DTWireId& wireId) const;
79 
80  int readOutToGeometry(int dduId,
81  int rosId,
82  int robId,
83  int tdcId,
84  int channelId,
85  int& wheelId,
86  int& stationId,
87  int& sectorId,
88  int& slId,
89  int& layerId,
90  int& cellId) const;
91 
92  int geometryToReadOut(int wheelId,
93  int stationId,
94  int sectorId,
95  int slId,
96  int layerId,
97  int cellId,
98  int& dduId,
99  int& rosId,
100  int& robId,
101  int& tdcId,
102  int& channelId) const;
103  int geometryToReadOut(const DTWireId& wireId, int& dduId, int& rosId, int& robId, int& tdcId, int& channelId) const;
104 
105  type mapType() const;
106 
108  const std::string& mapCellTdc() const;
110  const std::string& mapRobRos() const;
112 
114  void clear();
115 
117  int insertReadOutGeometryLink(int dduId,
118  int rosId,
119  int robId,
120  int tdcId,
121  int channelId,
122  int wheelId,
123  int stationId,
124  int sectorId,
125  int slId,
126  int layerId,
127  int cellId);
128 
130  typedef std::vector<DTReadOutGeometryLink>::const_iterator const_iterator;
131  const_iterator begin() const;
132  const_iterator end() const;
133 
135  const DTReadOutMapping* fullMap() const;
136 
137 private:
138  DTReadOutMapping(DTReadOutMapping const&) = delete;
139  DTReadOutMapping& operator=(DTReadOutMapping const&) = delete;
140 
143 
144  static DTReadOutMapping* expandMap(const DTReadOutMapping& compMap);
145 
148 
149  std::vector<DTReadOutGeometryLink> readOutChannelDriftTubeMap;
150 
154 
156  void cacheMap() const;
157 
158  std::string mapNameRG() const;
159  std::string mapNameGR() const;
160 
162 };
163 #endif // DTReadOutMapping_H
ConstRespectingPtr.h
DTReadOutMapping::atomicCache
edm::AtomicPtrCache< DTReadOutMappingCache > & atomicCache()
Definition: DTReadOutMapping.h:142
DTReadOutMapping::end
const_iterator end() const
Definition: DTReadOutMapping.cc:406
DTReadOutMapping::begin
const_iterator begin() const
Definition: DTReadOutMapping.cc:404
DTReadOutMappingCache
Definition: DTReadOutMappingCache.h:13
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
DTReadOutMapping::cacheMap
void cacheMap() const
read and store full content
Definition: DTReadOutMapping.cc:511
DTReadOutMapping::cellMapVersion
std::string cellMapVersion
Definition: DTReadOutMapping.h:146
DTReadOutMapping::expandMap
static DTReadOutMapping * expandMap(const DTReadOutMapping &compMap)
Definition: DTReadOutMapping.cc:416
DTReadOutMapping::mapNameGR
std::string mapNameGR() const
Definition: DTReadOutMapping.cc:499
DTReadOutMapping::type
type
Definition: DTReadOutMapping.h:73
DTReadOutMapping::mapNameRG
std::string mapNameRG() const
Definition: DTReadOutMapping.cc:505
DTReadOutMapping::compact
Definition: DTReadOutMapping.h:73
DTWireId
Definition: DTWireId.h:12
DTReadOutMapping::mapType
type mapType() const
Definition: DTReadOutMapping.cc:312
edm::AtomicPtrCache< DTReadOutMappingCache >
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
DTReadOutMapping::geometryToReadOut
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
Definition: DTReadOutMapping.cc:185
Serializable.h
DTReadOutMapping::readOutToGeometry
int readOutToGeometry(int dduId, int rosId, int robId, int tdcId, int channelId, DTWireId &wireId) const
transform identifiers
Definition: DTReadOutMapping.cc:69
DTBufferTree
Definition: DTBufferTree.h:42
DTReadOutMapping::fullMap
const DTReadOutMapping * fullMap() const
Expand to full map.
Definition: DTReadOutMapping.cc:408
AtomicPtrCache.h
DTReadOutMapping::rgBuf
edm::ConstRespectingPtr< DTBufferTree< int, int > > rgBuf
Definition: DTReadOutMapping.h:152
edm::ConstRespectingPtr
Definition: ConstRespectingPtr.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTReadOutMapping::robMapVersion
std::string robMapVersion
Definition: DTReadOutMapping.h:147
DTWireId.h
DTReadOutMapping::atomicCache
edm::AtomicPtrCache< DTReadOutMappingCache > const & atomicCache() const
Definition: DTReadOutMapping.h:141
DTReadOutMapping::mapCellTdc
const std::string & mapCellTdc() const
access parent maps identifiers
Definition: DTReadOutMapping.cc:325
DTReadOutMapping::atomicCache_
edm::AtomicPtrCache< DTReadOutMappingCache > atomicCache_
Definition: DTReadOutMapping.h:151
DTReadOutMapping::operator=
DTReadOutMapping & operator=(DTReadOutMapping const &)=delete
DTReadOutMapping::insertReadOutGeometryLink
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
Definition: DTReadOutMapping.cc:341
DTReadOutMapping::DTReadOutMapping
DTReadOutMapping()
Definition: DTReadOutMapping.cc:33
DTReadOutMapping::const_iterator
std::vector< DTReadOutGeometryLink >::const_iterator const_iterator
Access methods to the connections.
Definition: DTReadOutMapping.h:130
DTReadOutMapping::plain
Definition: DTReadOutMapping.h:73
DTReadOutMapping::clear
void clear()
clear map
Definition: DTReadOutMapping.cc:333
DTReadOutMapping::mapRobRos
const std::string & mapRobRos() const
Definition: DTReadOutMapping.cc:329
DTReadOutMapping::readOutChannelDriftTubeMap
std::vector< DTReadOutGeometryLink > readOutChannelDriftTubeMap
Definition: DTReadOutMapping.h:149
DTReadOutMapping::~DTReadOutMapping
~DTReadOutMapping()
Definition: DTReadOutMapping.cc:62
DTReadOutMapping
Definition: DTReadOutMapping.h:62
DTReadOutMapping::grBuf
edm::ConstRespectingPtr< DTBufferTree< int, int > > grBuf
Definition: DTReadOutMapping.h:153