CMS 3D CMS Logo

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 // Collaborating Class Declarations --
19 //------------------------------------
22 
23 class DTWireId;
24 class DTLayerId;
25 class DTChamberId;
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <string>
31 #include <vector>
32 #include <utility>
33 
34 template <class Key, class Content>
35 class DTBufferTree;
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 class DTHVStatusId {
42 public:
43  DTHVStatusId();
44  ~DTHVStatusId();
45 
46  int wheelId;
47  int stationId;
48  int sectorId;
49  int slId;
50  int layerId;
51  int partId;
52 
54 };
55 
57 public:
59  ~DTHVStatusData();
60 
61  int fCell;
62  int lCell;
63  int flagA;
64  int flagC;
65  int flagS;
66 
68 };
69 
70 class DTHVStatus {
71 public:
74  DTHVStatus();
76 
79  ~DTHVStatus();
80 
83  int get(int wheelId,
85  int stationId,
86  int sectorId,
87  int slId,
88  int layerId,
89  int partId,
90  int& fCell,
91  int& lCell,
92  int& flagA,
93  int& flagC,
94  int& flagS) const;
95  int get(const DTLayerId& id, int partId, int& fCell, int& lCell, int& flagA, int& flagC, int& flagS) const;
96  int get(const DTWireId& id, int& flagA, int& flagC, int& flagS) const;
97  int offChannelsNumber() const;
98  int offChannelsNumber(const DTChamberId& id) const;
99  int badChannelsNumber() const;
100  int badChannelsNumber(const DTChamberId& id) const;
102  const std::string& version() const;
103  std::string& version();
104 
106  void clear();
107 
108  int set(int wheelId,
109  int stationId,
110  int sectorId,
111  int slId,
112  int layerId,
113  int partId,
114  int fCell,
115  int lCell,
116  int flagA,
117  int flagC,
118  int flagS);
119  int set(const DTLayerId& id, int partId, int fCell, int lCell, int flagA, int flagC, int flagS);
120  int setFlagA(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag);
121  int setFlagA(const DTLayerId& id, int partId, int flag);
122  int setFlagC(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag);
123  int setFlagC(const DTLayerId& id, int partId, int flag);
124  int setFlagS(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag);
125  int setFlagS(const DTLayerId& id, int partId, int flag);
126 
128  typedef std::vector<std::pair<DTHVStatusId, DTHVStatusData> >::const_iterator const_iterator;
129  const_iterator begin() const;
130  const_iterator end() const;
131 
132  void initialize();
133 
134 private:
135  DTHVStatus(DTHVStatus const&) = delete;
136  DTHVStatus& operator=(DTHVStatus const&) = delete;
137 
139 
140  std::vector<std::pair<DTHVStatusId, DTHVStatusData> > dataList;
141 
143 
145  std::string mapName() const;
146 
148 };
149 #endif // DTHVStatus_H
static AlgebraicMatrix initialize()
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:151
#define end
Definition: vmac.h:39
std::vector< std::pair< DTHVStatusId, DTHVStatusData > > dataList
Definition: DTHVStatus.h:140
#define COND_TRANSIENT
Definition: Serializable.h:62
std::vector< std::pair< DTHVStatusId, DTHVStatusData > >::const_iterator const_iterator
Access methods to data.
Definition: DTHVStatus.h:128
#define COND_SERIALIZABLE
Definition: Serializable.h:38
#define begin
Definition: vmac.h:32
std::string dataVersion
Definition: DTHVStatus.h:138