test
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 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
16 
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
23 
24 class DTWireId;
25 class DTLayerId;
26 class DTChamberId;
27 
28 //---------------
29 // C++ Headers --
30 //---------------
31 #include <string>
32 #include <vector>
33 #include <utility>
34 
35 template <class Key, class Content> class DTBufferTree;
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 class DTHVStatusId {
42 
43  public:
44 
45  DTHVStatusId();
46  ~DTHVStatusId();
47 
48  int wheelId;
49  int stationId;
50  int sectorId;
51  int slId;
52  int layerId;
53  int partId;
54 
55 
57 };
58 
59 
61 
62  public:
63 
66 
67  int fCell;
68  int lCell;
69  int flagA;
70  int flagC;
71  int flagS;
72 
73 
75 };
76 
77 
78 class DTHVStatus {
79 
80  public:
81 
84  DTHVStatus();
85  DTHVStatus( const std::string& version );
86 
89  ~DTHVStatus();
90 
93  int get( int wheelId,
95  int stationId,
96  int sectorId,
97  int slId,
98  int layerId,
99  int partId,
100  int& fCell,
101  int& lCell,
102  int& flagA,
103  int& flagC,
104  int& flagS ) const;
105  int get( const DTLayerId& id,
106  int partId,
107  int& fCell,
108  int& lCell,
109  int& flagA,
110  int& flagC,
111  int& flagS ) const;
112  int get( const DTWireId& id,
113  int& flagA,
114  int& flagC,
115  int& flagS ) const;
116  int offChannelsNumber() const;
117  int offChannelsNumber( const DTChamberId& id ) const;
118  int badChannelsNumber() const;
119  int badChannelsNumber( const DTChamberId& id ) const;
121  const
122  std::string& version() const;
123  std::string& version();
124 
126  void clear();
127 
128  int set( int wheelId,
129  int stationId,
130  int sectorId,
131  int slId,
132  int layerId,
133  int partId,
134  int fCell,
135  int lCell,
136  int flagA,
137  int flagC,
138  int flagS );
139  int set( const DTLayerId& id,
140  int partId,
141  int fCell,
142  int lCell,
143  int flagA,
144  int flagC,
145  int flagS );
146  int setFlagA( int wheelId,
147  int stationId,
148  int sectorId,
149  int slId,
150  int layerId,
151  int partId,
152  int flag );
153  int setFlagA( const DTLayerId& id,
154  int partId,
155  int flag );
156  int setFlagC( int wheelId,
157  int stationId,
158  int sectorId,
159  int slId,
160  int layerId,
161  int partId,
162  int flag );
163  int setFlagC( const DTLayerId& id,
164  int partId,
165  int flag );
166  int setFlagS( int wheelId,
167  int stationId,
168  int sectorId,
169  int slId,
170  int layerId,
171  int partId,
172  int flag );
173  int setFlagS( const DTLayerId& id,
174  int partId,
175  int flag );
176 
178  typedef std::vector< std::pair<DTHVStatusId,
181  const_iterator begin() const;
182  const_iterator end() const;
183 
184  void initialize();
185 
186  private:
187 
188  DTHVStatus(DTHVStatus const&);
190 
192 
193  std::vector< std::pair<DTHVStatusId,DTHVStatusData> > dataList;
194 
196 
198  std::string mapName() const;
199 
200 
202 };
203 #endif // DTHVStatus_H
DTHVStatus & operator=(DTHVStatus const &)
std::vector< std::pair< DTHVStatusId, DTHVStatusData > > dataList
Definition: DTHVStatus.h:193
int setFlagS(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:442
void clear()
reset content
Definition: DTHVStatus.cc:259
int setFlagC(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:392
int setFlagA(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:342
std::string mapName() const
read and store full content
Definition: DTHVStatus.cc:502
int offChannelsNumber() const
Definition: DTHVStatus.cc:176
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTHVStatus.h:195
int badChannelsNumber() const
Definition: DTHVStatus.cc:215
std::vector< std::pair< DTHVStatusId, DTHVStatusData > >::const_iterator const_iterator
Access methods to data.
Definition: DTHVStatus.h:180
#define COND_TRANSIENT
Definition: Serializable.h:60
void initialize()
Definition: DTHVStatus.cc:509
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:267
#define COND_SERIALIZABLE
Definition: Serializable.h:37
const_iterator end() const
Definition: DTHVStatus.cc:497
std::string dataVersion
Definition: DTHVStatus.h:191
const_iterator begin() const
Definition: DTHVStatus.cc:492
const std::string & version() const
access version
Definition: DTHVStatus.cc:249