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:
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
DTHVStatus::setFlagA
int setFlagA(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:256
ConstRespectingPtr.h
DTHVStatusId::wheelId
int wheelId
Definition: DTHVStatus.h:46
DTHVStatus::initialize
void initialize()
Definition: DTHVStatus.cc:308
DTHVStatus::operator=
DTHVStatus & operator=(DTHVStatus const &)=delete
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
DTHVStatusId::slId
int slId
Definition: DTHVStatus.h:49
DTHVStatusId::layerId
int layerId
Definition: DTHVStatus.h:50
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
DTHVStatus::dataList
std::vector< std::pair< DTHVStatusId, DTHVStatusData > > dataList
Definition: DTHVStatus.h:140
DTHVStatusData::flagS
int flagS
Definition: DTHVStatus.h:65
DTHVStatusId::stationId
int stationId
Definition: DTHVStatus.h:47
DTHVStatus::const_iterator
std::vector< std::pair< DTHVStatusId, DTHVStatusData > >::const_iterator const_iterator
Access methods to data.
Definition: DTHVStatus.h:128
DTHVStatus::dBuf
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTHVStatus.h:142
DTHVStatus::set
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:198
DTWireId
Definition: DTWireId.h:12
DTHVStatus::offChannelsNumber
int offChannelsNumber() const
Definition: DTHVStatus.cc:113
DTHVStatus::begin
const_iterator begin() const
Definition: DTHVStatus.cc:298
DTHVStatus::dataVersion
std::string dataVersion
Definition: DTHVStatus.h:138
DTLayerId
Definition: DTLayerId.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTHVStatus::setFlagS
int setFlagS(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:284
DTHVStatus::clear
void clear()
reset content
Definition: DTHVStatus.cc:191
DTHVStatusData::flagA
int flagA
Definition: DTHVStatus.h:63
DTHVStatus::end
const_iterator end() const
Definition: DTHVStatus.cc:300
Serializable.h
DTBufferTree
Definition: DTBufferTree.h:42
DTHVStatusData::flagC
int flagC
Definition: DTHVStatus.h:64
DTHVStatus::version
const std::string & version() const
access version
Definition: DTHVStatus.cc:187
DTHVStatusData::lCell
int lCell
Definition: DTHVStatus.h:62
edm::ConstRespectingPtr
Definition: ConstRespectingPtr.h:27
DTHVStatus::setFlagC
int setFlagC(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
Definition: DTHVStatus.cc:270
DTHVStatus::badChannelsNumber
int badChannelsNumber() const
Definition: DTHVStatus.cc:153
DTHVStatusId::~DTHVStatusId
~DTHVStatusId()
Definition: DTHVStatus.cc:49
DTHVStatusId::partId
int partId
Definition: DTHVStatus.h:51
DTHVStatus::DTHVStatus
DTHVStatus()
Definition: DTHVStatus.cc:34
DTHVStatus
Definition: DTHVStatus.h:70
DTHVStatus::~DTHVStatus
~DTHVStatus()
Definition: DTHVStatus.cc:47
DTHVStatusId::DTHVStatusId
DTHVStatusId()
Definition: DTHVStatus.cc:40
DTChamberId
Definition: DTChamberId.h:14
DTHVStatus::get
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int &fCell, int &lCell, int &flagA, int &flagC, int &flagS) const
get content
Definition: DTHVStatus.cc:56
DTHVStatusId
Definition: DTHVStatus.h:41
DTHVStatusData
Definition: DTHVStatus.h:56
DTHVStatusData::fCell
int fCell
Definition: DTHVStatus.h:61
DTHVStatus::mapName
std::string mapName() const
read and store full content
Definition: DTHVStatus.cc:302
DTHVStatusId::sectorId
int sectorId
Definition: DTHVStatus.h:48
DTHVStatusData::~DTHVStatusData
~DTHVStatusData()
Definition: DTHVStatus.cc:51
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116
DTHVStatusData::DTHVStatusData
DTHVStatusData()
Definition: DTHVStatus.cc:42