CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTReadOutMapping.h
Go to the documentation of this file.
1 #ifndef DTReadOutMapping_H
2 #define DTReadOutMapping_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
17 
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <vector>
29 #include <string>
30 
31 // ---------------------
32 // -- Class Interface --
33 // ---------------------
34 
36 
37  public:
38 
41 
42  int dduId;
43  int rosId;
44  int robId;
45  int tdcId;
46  int channelId;
47  int wheelId;
48  int stationId;
49  int sectorId;
50  int slId;
51  int layerId;
52  int cellId;
53 
54 };
55 
56 
58 
59  public:
60 
64  DTReadOutMapping( const std::string& cell_map_version,
65  const std::string& rob_map_version );
66 
70 
71  enum type { plain, compact };
72 
75  int readOutToGeometry( int dduId,
77  int rosId,
78  int robId,
79  int tdcId,
80  int channelId,
81  DTWireId& wireId ) const;
82 
83  int readOutToGeometry( int dduId,
84  int rosId,
85  int robId,
86  int tdcId,
87  int channelId,
88  int& wheelId,
89  int& stationId,
90  int& sectorId,
91  int& slId,
92  int& layerId,
93  int& cellId ) const;
94 
95  int geometryToReadOut( int wheelId,
96  int stationId,
97  int sectorId,
98  int slId,
99  int layerId,
100  int cellId,
101  int& dduId,
102  int& rosId,
103  int& robId,
104  int& tdcId,
105  int& channelId ) const;
106  int geometryToReadOut( const DTWireId& wireId,
107  int& dduId,
108  int& rosId,
109  int& robId,
110  int& tdcId,
111  int& channelId ) const;
112 
113  type mapType() const;
114 
116  const
117  std::string& mapCellTdc() const;
118  std::string& mapCellTdc();
119  const
120  std::string& mapRobRos() const;
121  std::string& mapRobRos();
122 
124  void clear();
125 
127  int insertReadOutGeometryLink( int dduId,
128  int rosId,
129  int robId,
130  int tdcId,
131  int channelId,
132  int wheelId,
133  int stationId,
134  int sectorId,
135  int slId,
136  int layerId,
137  int cellId );
138 
140  typedef std::vector<DTReadOutGeometryLink>::const_iterator const_iterator;
141  const_iterator begin() const;
142  const_iterator end() const;
143 
145  const DTReadOutMapping* fullMap() const;
146 
147  private:
148 
149  std::string cellMapVersion;
150  std::string robMapVersion;
151 
152  std::vector<DTReadOutGeometryLink> readOutChannelDriftTubeMap;
153 
160  DTBufferTree<int,
161  std::vector<int>*>* grROB;
162  DTBufferTree<int,
163  std::vector<int>*>* grROS;
164  DTBufferTree<int,
165  std::vector<int>*>* grDDU;
166 
168  void cacheMap() const;
169  std::string mapNameRG() const;
170  std::string mapNameGR() const;
171 
172 };
173 
174 
175 #endif // DTReadOutMapping_H
176 
type
Definition: HCALResponse.h:22
std::string robMapVersion
DTBufferTree< int, std::vector< int > * > * grROB
const_iterator end() const
int readOutToGeometry(int dduId, int rosId, int robId, int tdcId, int channelId, DTWireId &wireId) const
transform identifiers
std::string mapNameRG() const
void clear()
clear map
std::vector< DTReadOutGeometryLink >::const_iterator const_iterator
Access methods to the connections.
std::vector< DTReadOutGeometryLink > readOutChannelDriftTubeMap
const std::string & mapCellTdc() const
access parent maps identifiers
DTBufferTree< int, int > * rgROS
const_iterator begin() const
DTBufferTree< int, std::vector< int > * > * grROS
DTBufferTree< int, int > * mType
DTBufferTree< int, int > * rgROB
DTBufferTree< int, int > * grBuf
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
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
const std::string & mapRobRos() const
DTBufferTree< int, int > * rgBuf
void cacheMap() const
read and store full content
DTBufferTree< int, int > * rgDDU
std::string cellMapVersion
type mapType() const
DTBufferTree< int, std::vector< int > * > * grDDU
std::string mapNameGR() const
const DTReadOutMapping * fullMap() const
Expand to full map.