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 // Collaborating Class Declarations --
18 //------------------------------------
21 
22 class DTChamberId;
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 #include <string>
28 #include <vector>
29 #include <utility>
30 
31 template <class Key, class Content>
32 class DTBufferTree;
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
38 class DTLVStatusId {
39 public:
40  DTLVStatusId();
41  ~DTLVStatusId();
42 
43  int wheelId;
44  int stationId;
45  int sectorId;
46 
48 };
49 
51 public:
54 
55  int flagCFE;
56  int flagDFE;
57  int flagCMC;
58  int flagDMC;
59 
61 };
62 
63 class DTLVStatus {
64 public:
67  DTLVStatus();
69 
72  ~DTLVStatus();
73 
76  int get(int wheelId, int stationId, int sectorId, int& flagCFE, int& flagDFE, int& flagCMC, int& flagDMC) const;
78  int get(const DTChamberId& id, int& flagCFE, int& flagDFE, int& flagCMC, int& flagDMC) const;
80  const std::string& version() const;
82 
84  void clear();
85 
86  int set(int wheelId, int stationId, int sectorId, int flagCFE, int flagDFE, int flagCMC, int flagDMC);
87  int set(const DTChamberId& id, int flagCFE, int flagDFE, int flagCMC, int flagDMC);
88  int setFlagCFE(int wheelId, int stationId, int sectorId, int flag);
89  int setFlagCFE(const DTChamberId& id, int flag);
90  int setFlagDFE(int wheelId, int stationId, int sectorId, int flag);
91  int setFlagDFE(const DTChamberId& id, int flag);
92  int setFlagCMC(int wheelId, int stationId, int sectorId, int flag);
93  int setFlagCMC(const DTChamberId& id, int flag);
94  int setFlagDMC(int wheelId, int stationId, int sectorId, int flag);
95  int setFlagDMC(const DTChamberId& id, int flag);
96 
98  typedef std::vector<std::pair<DTLVStatusId, DTLVStatusData> >::const_iterator const_iterator;
99  const_iterator begin() const;
100  const_iterator end() const;
101 
102  void initialize();
103 
104 private:
105  DTLVStatus(DTLVStatus const&) = delete;
106  DTLVStatus& operator=(DTLVStatus const&) = delete;
107 
109 
110  std::vector<std::pair<DTLVStatusId, DTLVStatusData> > dataList;
111 
113 
115  std::string mapName() const;
116 
118 };
119 #endif // DTLVStatus_H
ConstRespectingPtr.h
DTLVStatusData::flagDMC
int flagDMC
Definition: DTLVStatus.h:58
DTLVStatusData::flagCMC
int flagCMC
Definition: DTLVStatus.h:57
DTLVStatusId::sectorId
int sectorId
Definition: DTLVStatus.h:45
DTLVStatus::setFlagCFE
int setFlagCFE(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:132
DTLVStatus::end
const_iterator end() const
Definition: DTLVStatus.cc:186
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
DTLVStatus::const_iterator
std::vector< std::pair< DTLVStatusId, DTLVStatusData > >::const_iterator const_iterator
Access methods to data.
Definition: DTLVStatus.h:98
DTLVStatus::get
int get(int wheelId, int stationId, int sectorId, int &flagCFE, int &flagDFE, int &flagCMC, int &flagDMC) const
get content
Definition: DTLVStatus.cc:54
DTLVStatusId
Definition: DTLVStatus.h:38
DTLVStatus::DTLVStatus
DTLVStatus()
Definition: DTLVStatus.cc:32
DTLVStatusId::wheelId
int wheelId
Definition: DTLVStatus.h:43
DTLVStatus::operator=
DTLVStatus & operator=(DTLVStatus const &)=delete
DTLVStatusData
Definition: DTLVStatus.h:50
DTLVStatus
Definition: DTLVStatus.h:63
DTLVStatusData::flagCFE
int flagCFE
Definition: DTLVStatus.h:55
DTLVStatus::set
int set(int wheelId, int stationId, int sectorId, int flagCFE, int flagDFE, int flagCMC, int flagDMC)
Definition: DTLVStatus.cc:93
DTLVStatus::setFlagDFE
int setFlagDFE(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:145
DTLVStatusId::~DTLVStatusId
~DTLVStatusId()
Definition: DTLVStatus.cc:47
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTLVStatus::dataVersion
std::string dataVersion
Definition: DTLVStatus.h:108
DTLVStatus::clear
void clear()
reset content
Definition: DTLVStatus.cc:87
DTLVStatus::initialize
void initialize()
Definition: DTLVStatus.cc:194
DTLVStatus::~DTLVStatus
~DTLVStatus()
Definition: DTLVStatus.cc:45
DTLVStatus::setFlagCMC
int setFlagCMC(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:158
Serializable.h
DTLVStatusData::DTLVStatusData
DTLVStatusData()
Definition: DTLVStatus.cc:40
DTBufferTree
Definition: DTBufferTree.h:42
DTLVStatusId::DTLVStatusId
DTLVStatusId()
Definition: DTLVStatus.cc:38
edm::ConstRespectingPtr
Definition: ConstRespectingPtr.h:27
DTLVStatusData::flagDFE
int flagDFE
Definition: DTLVStatus.h:56
DTLVStatus::begin
const_iterator begin() const
Definition: DTLVStatus.cc:184
DTLVStatus::dBuf
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTLVStatus.h:112
DTLVStatusData::~DTLVStatusData
~DTLVStatusData()
Definition: DTLVStatus.cc:49
DTLVStatus::setFlagDMC
int setFlagDMC(int wheelId, int stationId, int sectorId, int flag)
Definition: DTLVStatus.cc:171
DTLVStatus::version
const std::string & version() const
access version
Definition: DTLVStatus.cc:83
DTLVStatus::mapName
std::string mapName() const
read and store full content
Definition: DTLVStatus.cc:188
DTChamberId
Definition: DTChamberId.h:14
DTLVStatusId::stationId
int stationId
Definition: DTLVStatus.h:44
DTLVStatus::dataList
std::vector< std::pair< DTLVStatusId, DTLVStatusData > > dataList
Definition: DTLVStatus.h:110
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116