File indexing completed on 2024-04-06 11:58:13
0001 #ifndef PixelROCStatus_h
0002 #define PixelROCStatus_h
0003
0004
0005
0006
0007
0008
0009 #include <cstdint>
0010 #include <set>
0011 #include <string>
0012
0013 namespace pos {
0014
0015
0016
0017
0018
0019
0020 class PixelROCStatus {
0021 private:
0022 uint32_t bits_;
0023
0024 public:
0025
0026 enum ROCstatus { off = 0, noHits, noInit, noAnalogSignal, nStatus };
0027
0028 PixelROCStatus();
0029 PixelROCStatus(const std::set<ROCstatus>& stat);
0030 virtual ~PixelROCStatus();
0031
0032 std::string statusName(ROCstatus stat) const;
0033 std::string statusName() const;
0034
0035 void set(ROCstatus stat);
0036 void clear(ROCstatus stat);
0037 void set(ROCstatus stat, bool mode);
0038 void set(const std::string& statName);
0039 bool get(ROCstatus stat) const;
0040
0041
0042 void reset(void);
0043 };
0044 }
0045 #endif