CMS 3D CMS Logo

L1MonitorDigi.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Monitor_h
2 #define DataFormats_L1Monitor_h
3 
4 /*\class L1MonitorDigi
5  *\description L1 trigger generic digi for monitoring
6  *\author Nuno Leonardo (CERN)
7  *\date 08.03
8  */
9 
10 #include <ostream>
11 #include <string>
12 #include <utility>
13 
15 public:
16  L1MonitorDigi();
17  L1MonitorDigi(unsigned sid, unsigned cid, unsigned x1, unsigned x2, unsigned x3, unsigned value, unsigned data);
19 
20  void setSid(int sid) { m_sid = sid; }
21  void setCid(int cid) { m_cid = cid; }
22  void setLoc(unsigned x1, unsigned x2, unsigned x3) {
23  m_location[0] = x1;
24  m_location[1] = x2;
25  m_location[2] = x3;
26  }
27  void setRaw(unsigned raw) { m_data = raw; }
28  void setValue(unsigned val) { m_value = val; }
29 
30  unsigned sid() const { return m_sid; }
31  unsigned cid() const { return m_cid; }
32  unsigned x1() const { return m_location[0]; }
33  unsigned x2() const { return m_location[1]; }
34  unsigned x3() const { return m_location[2]; }
35  unsigned raw() const { return m_data; }
36  unsigned value() const { return m_value; }
37 
38  unsigned reset();
39  bool empty() const;
40 
41 private:
42  unsigned m_sid;
43  unsigned m_cid;
44  unsigned m_location[3];
45  unsigned m_value;
46  unsigned m_data;
47  unsigned m_null;
48 };
49 
50 std::ostream& operator<<(std::ostream&, const L1MonitorDigi&);
51 
52 #endif
unsigned m_location[3]
Definition: L1MonitorDigi.h:44
void setRaw(unsigned raw)
Definition: L1MonitorDigi.h:27
unsigned m_null
Definition: L1MonitorDigi.h:47
unsigned m_sid
Definition: L1MonitorDigi.h:42
unsigned x2() const
Definition: L1MonitorDigi.h:33
unsigned sid() const
Definition: L1MonitorDigi.h:30
void setCid(int cid)
Definition: L1MonitorDigi.h:21
unsigned m_value
Definition: L1MonitorDigi.h:45
unsigned raw() const
Definition: L1MonitorDigi.h:35
void setSid(int sid)
Definition: L1MonitorDigi.h:20
unsigned m_data
Definition: L1MonitorDigi.h:46
unsigned m_cid
Definition: L1MonitorDigi.h:43
unsigned x3() const
Definition: L1MonitorDigi.h:34
Definition: value.py:1
void setLoc(unsigned x1, unsigned x2, unsigned x3)
Definition: L1MonitorDigi.h:22
void setValue(unsigned val)
Definition: L1MonitorDigi.h:28
unsigned cid() const
Definition: L1MonitorDigi.h:31
std::ostream & operator<<(std::ostream &, const L1MonitorDigi &)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
unsigned reset()
unsigned value() const
Definition: L1MonitorDigi.h:36
unsigned x1() const
Definition: L1MonitorDigi.h:32
bool empty() const
Definition: L1MonitorDigi.cc:4