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 
16  public:
17 
18  L1MonitorDigi();
19  L1MonitorDigi(unsigned sid, unsigned cid, unsigned x1, unsigned x2,
20  unsigned x3, unsigned value, unsigned data);
22 
23  void setSid(int sid) {m_sid = sid;}
24  void setCid(int cid) {m_cid = cid;}
25  void setLoc(unsigned x1, unsigned x2, unsigned x3)
26  { m_location[0]=x1; m_location[1]=x2; m_location[2]=x3;}
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 
43  unsigned m_sid;
44  unsigned m_cid;
45  unsigned m_location[3];
46  unsigned m_value;
47  unsigned m_data;
48  unsigned m_null;
49 
50 };
51 
52 std::ostream& operator<<(std::ostream&, const L1MonitorDigi&);
53 
54 #endif
unsigned m_location[3]
Definition: L1MonitorDigi.h:45
void setRaw(unsigned raw)
Definition: L1MonitorDigi.h:27
unsigned m_null
Definition: L1MonitorDigi.h:48
unsigned m_sid
Definition: L1MonitorDigi.h:43
unsigned x2() const
Definition: L1MonitorDigi.h:33
unsigned sid() const
Definition: L1MonitorDigi.h:30
void setCid(int cid)
Definition: L1MonitorDigi.h:24
unsigned m_value
Definition: L1MonitorDigi.h:46
unsigned raw() const
Definition: L1MonitorDigi.h:35
void setSid(int sid)
Definition: L1MonitorDigi.h:23
unsigned m_data
Definition: L1MonitorDigi.h:47
unsigned m_cid
Definition: L1MonitorDigi.h:44
unsigned x3() const
Definition: L1MonitorDigi.h:34
Definition: value.py:1
void setLoc(unsigned x1, unsigned x2, unsigned x3)
Definition: L1MonitorDigi.h:25
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:82
unsigned reset()
unsigned value() const
Definition: L1MonitorDigi.h:36
unsigned x1() const
Definition: L1MonitorDigi.h:32
bool empty() const
Definition: L1MonitorDigi.cc:4