CMS 3D CMS Logo

DTLVStatus.h
Go to the documentation of this file.
1 #ifndef DTLVStatus_H
2 #define DTLVStatus_H
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
15 
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
22 
23 class DTChamberId;
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <string>
29 #include <vector>
30 #include <utility>
31 
32 template <class Key, class Content> class DTBufferTree;
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
38 class DTLVStatusId {
39 
40  public:
41 
42  DTLVStatusId();
43  ~DTLVStatusId();
44 
45  int wheelId;
46  int stationId;
47  int sectorId;
48 
49 
51 };
52 
53 
55 
56  public:
57 
59  ~DTLVStatusData();
60 
61  int flagCFE;
62  int flagDFE;
63  int flagCMC;
64  int flagDMC;
65 
66 
68 };
69 
70 
71 class DTLVStatus {
72 
73  public:
74 
77  DTLVStatus();
78  DTLVStatus( const std::string& version );
79 
82  ~DTLVStatus();
83 
86  int get( int wheelId,
88  int stationId,
89  int sectorId,
90  int& flagCFE,
91  int& flagDFE,
92  int& flagCMC,
93  int& flagDMC ) const;
94  int get( const DTChamberId& id,
95  int& flagCFE,
96  int& flagDFE,
97  int& flagCMC,
98  int& flagDMC ) const;
100  const
101  std::string& version() const;
102  std::string& version();
103 
105  void clear();
106 
107  int set( int wheelId,
108  int stationId,
109  int sectorId,
110  int flagCFE,
111  int flagDFE,
112  int flagCMC,
113  int flagDMC );
114  int set( const DTChamberId& id,
115  int flagCFE,
116  int flagDFE,
117  int flagCMC,
118  int flagDMC );
119  int setFlagCFE( int wheelId,
120  int stationId,
121  int sectorId,
122  int flag );
123  int setFlagCFE( const DTChamberId& id,
124  int flag );
125  int setFlagDFE( int wheelId,
126  int stationId,
127  int sectorId,
128  int flag );
129  int setFlagDFE( const DTChamberId& id,
130  int flag );
131  int setFlagCMC( int wheelId,
132  int stationId,
133  int sectorId,
134  int flag );
135  int setFlagCMC( const DTChamberId& id,
136  int flag );
137  int setFlagDMC( int wheelId,
138  int stationId,
139  int sectorId,
140  int flag );
141  int setFlagDMC( const DTChamberId& id,
142  int flag );
143 
145  typedef std::vector< std::pair<DTLVStatusId,
148  const_iterator begin() const;
149  const_iterator end() const;
150 
151  void initialize();
152 
153  private:
154 
155  DTLVStatus(DTLVStatus const&) = delete;
156  DTLVStatus& operator=(DTLVStatus const&) = delete;
157 
159 
160  std::vector< std::pair<DTLVStatusId,DTLVStatusData> > dataList;
161 
163 
165  std::string mapName() const;
166 
167 
169 };
170 #endif // DTLVStatus_H
static AlgebraicMatrix initialize()
std::string dataVersion
Definition: DTLVStatus.h:158
std::vector< std::pair< DTLVStatusId, DTLVStatusData > > dataList
Definition: DTLVStatus.h:160
std::vector< std::pair< DTLVStatusId, DTLVStatusData > >::const_iterator const_iterator
Access methods to data.
Definition: DTLVStatus.h:147
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
#define end
Definition: vmac.h:37
#define COND_TRANSIENT
Definition: Serializable.h:61
#define COND_SERIALIZABLE
Definition: Serializable.h:38
#define begin
Definition: vmac.h:30