CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTLVStatus.h
Go to the documentation of this file.
1 #ifndef DTLVStatus_H
2 #define DTLVStatus_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
17 
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
23 class DTChamberId;
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <string>
29 #include <vector>
30 
31 // ---------------------
32 // -- Class Interface --
33 // ---------------------
34 
35 class DTLVStatusId {
36 
37  public:
38 
39  DTLVStatusId();
40  ~DTLVStatusId();
41 
42  int wheelId;
43  int stationId;
44  int sectorId;
45 
46 };
47 
48 
50 
51  public:
52 
55 
56  int flagCFE;
57  int flagDFE;
58  int flagCMC;
59  int flagDMC;
60 
61 };
62 
63 
64 class DTLVStatus {
65 
66  public:
67 
70  DTLVStatus();
71  DTLVStatus( const std::string& version );
72 
75  ~DTLVStatus();
76 
79  int get( int wheelId,
81  int stationId,
82  int sectorId,
83  int& flagCFE,
84  int& flagDFE,
85  int& flagCMC,
86  int& flagDMC ) const;
87  int get( const DTChamberId& id,
88  int& flagCFE,
89  int& flagDFE,
90  int& flagCMC,
91  int& flagDMC ) const;
93  const
94  std::string& version() const;
96 
98  void clear();
99 
100  int set( int wheelId,
101  int stationId,
102  int sectorId,
103  int flagCFE,
104  int flagDFE,
105  int flagCMC,
106  int flagDMC );
107  int set( const DTChamberId& id,
108  int flagCFE,
109  int flagDFE,
110  int flagCMC,
111  int flagDMC );
112  int setFlagCFE( int wheelId,
113  int stationId,
114  int sectorId,
115  int flag );
116  int setFlagCFE( const DTChamberId& id,
117  int flag );
118  int setFlagDFE( int wheelId,
119  int stationId,
120  int sectorId,
121  int flag );
122  int setFlagDFE( const DTChamberId& id,
123  int flag );
124  int setFlagCMC( int wheelId,
125  int stationId,
126  int sectorId,
127  int flag );
128  int setFlagCMC( const DTChamberId& id,
129  int flag );
130  int setFlagDMC( int wheelId,
131  int stationId,
132  int sectorId,
133  int flag );
134  int setFlagDMC( const DTChamberId& id,
135  int flag );
136 
138  typedef std::vector< std::pair<DTLVStatusId,
141  const_iterator begin() const;
142  const_iterator end() const;
143 
144  private:
145 
147 
148  std::vector< std::pair<DTLVStatusId,DTLVStatusData> > dataList;
149 
151 
153  void cacheMap() const;
154  std::string mapName() const;
155 
156 };
157 
158 
159 #endif // DTLVStatus_H
160 
long int flag
Definition: mlp_lapack.h:47
int set(int wheelId, int stationId, int sectorId, int flagCFE, int flagDFE, int flagCMC, int flagDMC)
Definition: DTLVStatus.cc:161
const std::string & version() const
access version
Definition: DTLVStatus.cc:142
std::string dataVersion
Definition: DTLVStatus.h:146
void clear()
reset content
Definition: DTLVStatus.cc:152
int setFlagDMC(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:333
const_iterator end() const
Definition: DTLVStatus.cc:372
DTBufferTree< int, int > * dBuf
Definition: DTLVStatus.h:150
std::vector< std::pair< DTLVStatusId, DTLVStatusData > > dataList
Definition: DTLVStatus.h:148
std::string mapName() const
Definition: DTLVStatus.cc:377
std::vector< std::pair< DTLVStatusId, DTLVStatusData > >::const_iterator const_iterator
Access methods to data.
Definition: DTLVStatus.h:140
int setFlagCFE(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:231
const_iterator begin() const
Definition: DTLVStatus.cc:367
int setFlagDFE(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:265
void cacheMap() const
read and store full content
Definition: DTLVStatus.cc:384
int setFlagCMC(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:299