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
L1MonitorDigi::value
unsigned value() const
Definition: L1MonitorDigi.h:36
L1MonitorDigi::x1
unsigned x1() const
Definition: L1MonitorDigi.h:32
L1MonitorDigi::setLoc
void setLoc(unsigned x1, unsigned x2, unsigned x3)
Definition: L1MonitorDigi.h:22
L1MonitorDigi::m_value
unsigned m_value
Definition: L1MonitorDigi.h:45
L1MonitorDigi::x2
unsigned x2() const
Definition: L1MonitorDigi.h:33
L1MonitorDigi::reset
unsigned reset()
Definition: L1MonitorDigi.cc:10
L1MonitorDigi::m_null
unsigned m_null
Definition: L1MonitorDigi.h:47
L1MonitorDigi::setSid
void setSid(int sid)
Definition: L1MonitorDigi.h:20
L1MonitorDigi::setCid
void setCid(int cid)
Definition: L1MonitorDigi.h:21
L1MonitorDigi::m_data
unsigned m_data
Definition: L1MonitorDigi.h:46
L1MonitorDigi::empty
bool empty() const
Definition: L1MonitorDigi.cc:4
L1MonitorDigi::m_location
unsigned m_location[3]
Definition: L1MonitorDigi.h:44
L1MonitorDigi::L1MonitorDigi
L1MonitorDigi()
Definition: L1MonitorDigi.cc:21
value
Definition: value.py:1
L1MonitorDigi::cid
unsigned cid() const
Definition: L1MonitorDigi.h:31
operator<<
std::ostream & operator<<(std::ostream &, const L1MonitorDigi &)
Definition: L1MonitorDigi.cc:37
L1MonitorDigi
Definition: L1MonitorDigi.h:14
heppy_batch.val
val
Definition: heppy_batch.py:351
L1MonitorDigi::x3
unsigned x3() const
Definition: L1MonitorDigi.h:34
L1MonitorDigi::m_cid
unsigned m_cid
Definition: L1MonitorDigi.h:43
L1MonitorDigi::setRaw
void setRaw(unsigned raw)
Definition: L1MonitorDigi.h:27
L1MonitorDigi::setValue
void setValue(unsigned val)
Definition: L1MonitorDigi.h:28
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
L1MonitorDigi::sid
unsigned sid() const
Definition: L1MonitorDigi.h:30
L1MonitorDigi::m_sid
unsigned m_sid
Definition: L1MonitorDigi.h:42
L1MonitorDigi::~L1MonitorDigi
~L1MonitorDigi()
Definition: L1MonitorDigi.cc:35
L1MonitorDigi::raw
unsigned raw() const
Definition: L1MonitorDigi.h:35