CMS 3D CMS Logo

L1MonitorDigi.cc
Go to the documentation of this file.
2 #include <iomanip>
3 
4 bool L1MonitorDigi::empty() const {
5  if(m_sid == m_null || m_cid == m_null || m_value==m_null )
6  return true;
7  return false;
8 }
9 
11  m_null = 999;
12  m_sid = m_null;
13  m_cid = m_null;
14  for(int i=0; i<3; i++)
16  m_data=0;
18  return m_null;
19 }
20 
22  reset();
23 }
24 
25 L1MonitorDigi::L1MonitorDigi(unsigned sid, unsigned cid,
26  unsigned x1, unsigned x2, unsigned x3,
27  unsigned value, unsigned data) {
28  reset();
29  m_sid = sid; m_cid = cid;
31  m_value = value;
32  m_data = data;
33 }
34 
36 
37 std::ostream& operator<<(std::ostream& s, const L1MonitorDigi& mon) {
38  s << "L1Mon "
39  << " system: " << std::setw(2) << mon.sid()
40  << " (cid." << std::setw(2) << mon.cid() << ")"
41  << std::hex << std::setfill('0')
42  << " location: "
43  << "(" << std::setw(5) << std::setprecision(2) << mon.x1()
44  << "," << std::setw(5) << std::setprecision(2) << mon.x2()
45  << "," << std::setw(5) << std::setprecision(2) << mon.x3() << ")"
46  << " value: " << std::setw(5) << std::setprecision(2) << mon.value()
47  << " word: " << std::setw(8) << mon.raw()
48  << std::dec << std::setfill(' ');
49  return s;
50 }
unsigned m_location[3]
Definition: L1MonitorDigi.h:45
unsigned m_null
Definition: L1MonitorDigi.h:48
std::ostream & operator<<(std::ostream &s, const L1MonitorDigi &mon)
unsigned m_sid
Definition: L1MonitorDigi.h:43
unsigned x2() const
Definition: L1MonitorDigi.h:33
unsigned sid() const
Definition: L1MonitorDigi.h:30
unsigned m_value
Definition: L1MonitorDigi.h:46
unsigned raw() const
Definition: L1MonitorDigi.h:35
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
unsigned cid() const
Definition: L1MonitorDigi.h:31
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