CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTHVStatus.h
Go to the documentation of this file.
1 #ifndef DTHVStatus_H
2 #define DTHVStatus_H
3 
15 //----------------------
16 // Base Class Headers --
17 //----------------------
18 
19 
20 //------------------------------------
21 // Collaborating Class Declarations --
22 //------------------------------------
24 class DTWireId;
25 class DTLayerId;
26 class DTChamberId;
27 
28 //---------------
29 // C++ Headers --
30 //---------------
31 #include <string>
32 #include <vector>
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
38 class DTHVStatusId {
39 
40  public:
41 
42  DTHVStatusId();
43  ~DTHVStatusId();
44 
45  int wheelId;
46  int stationId;
47  int sectorId;
48  int slId;
49  int layerId;
50  int partId;
51 
52 };
53 
54 
56 
57  public:
58 
61 
62  int fCell;
63  int lCell;
64  int flagA;
65  int flagC;
66  int flagS;
67 
68 };
69 
70 
71 class DTHVStatus {
72 
73  public:
74 
77  DTHVStatus();
78  DTHVStatus( const std::string& version );
79 
82  ~DTHVStatus();
83 
86  int get( int wheelId,
88  int stationId,
89  int sectorId,
90  int slId,
91  int layerId,
92  int partId,
93  int& fCell,
94  int& lCell,
95  int& flagA,
96  int& flagC,
97  int& flagS ) const;
98  int get( const DTLayerId& id,
99  int partId,
100  int& fCell,
101  int& lCell,
102  int& flagA,
103  int& flagC,
104  int& flagS ) const;
105  int get( const DTWireId& id,
106  int& flagA,
107  int& flagC,
108  int& flagS ) const;
109  int offChannelsNumber() const;
110  int offChannelsNumber( const DTChamberId& id ) const;
111  int badChannelsNumber() const;
112  int badChannelsNumber( const DTChamberId& id ) const;
114  const
115  std::string& version() const;
116  std::string& version();
117 
119  void clear();
120 
121  int set( int wheelId,
122  int stationId,
123  int sectorId,
124  int slId,
125  int layerId,
126  int partId,
127  int fCell,
128  int lCell,
129  int flagA,
130  int flagC,
131  int flagS );
132  int set( const DTLayerId& id,
133  int partId,
134  int fCell,
135  int lCell,
136  int flagA,
137  int flagC,
138  int flagS );
139  int setFlagA( int wheelId,
140  int stationId,
141  int sectorId,
142  int slId,
143  int layerId,
144  int partId,
145  int flag );
146  int setFlagA( const DTLayerId& id,
147  int partId,
148  int flag );
149  int setFlagC( int wheelId,
150  int stationId,
151  int sectorId,
152  int slId,
153  int layerId,
154  int partId,
155  int flag );
156  int setFlagC( const DTLayerId& id,
157  int partId,
158  int flag );
159  int setFlagS( int wheelId,
160  int stationId,
161  int sectorId,
162  int slId,
163  int layerId,
164  int partId,
165  int flag );
166  int setFlagS( const DTLayerId& id,
167  int partId,
168  int flag );
169 
171  typedef std::vector< std::pair<DTHVStatusId,
174  const_iterator begin() const;
175  const_iterator end() const;
176 
177  private:
178 
180 
181  std::vector< std::pair<DTHVStatusId,DTHVStatusData> > dataList;
182 
184 
186  void cacheMap() const;
187  std::string mapName() const;
188 
189 };
190 
191 #endif // DTHVStatus_H
192 
std::vector< std::pair< DTHVStatusId, DTHVStatusData > > dataList
Definition: DTHVStatus.h:181
long int flag
Definition: mlp_lapack.h:47
int setFlagS(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:467
DTBufferTree< int, int > * dBuf
Definition: DTHVStatus.h:183
void cacheMap() const
read and store full content
Definition: DTHVStatus.cc:534
void clear()
reset content
Definition: DTHVStatus.cc:273
int setFlagC(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:417
int setFlagA(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:367
std::string mapName() const
Definition: DTHVStatus.cc:527
int offChannelsNumber() const
Definition: DTHVStatus.cc:190
int badChannelsNumber() const
Definition: DTHVStatus.cc:229
std::vector< std::pair< DTHVStatusId, DTHVStatusData > >::const_iterator const_iterator
Access methods to data.
Definition: DTHVStatus.h:173
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int fCell, int lCell, int flagA, int flagC, int flagS)
Definition: DTHVStatus.cc:283
const_iterator end() const
Definition: DTHVStatus.cc:522
std::string dataVersion
Definition: DTHVStatus.h:179
const_iterator begin() const
Definition: DTHVStatus.cc:517
const std::string & version() const
access version
Definition: DTHVStatus.cc:263