CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1MonitorDigi Class Reference

#include <L1MonitorDigi.h>

Public Member Functions

unsigned cid () const
 
bool empty () const
 
 L1MonitorDigi ()
 
 L1MonitorDigi (unsigned sid, unsigned cid, unsigned x1, unsigned x2, unsigned x3, unsigned value, unsigned data)
 
unsigned raw () const
 
unsigned reset ()
 
void setCid (int cid)
 
void setLoc (unsigned x1, unsigned x2, unsigned x3)
 
void setRaw (unsigned raw)
 
void setSid (int sid)
 
void setValue (unsigned val)
 
unsigned sid () const
 
unsigned value () const
 
unsigned x1 () const
 
unsigned x2 () const
 
unsigned x3 () const
 
 ~L1MonitorDigi ()
 

Private Attributes

unsigned m_cid
 
unsigned m_data
 
unsigned m_location [3]
 
unsigned m_null
 
unsigned m_sid
 
unsigned m_value
 

Detailed Description

Definition at line 14 of file L1MonitorDigi.h.

Constructor & Destructor Documentation

◆ L1MonitorDigi() [1/2]

L1MonitorDigi::L1MonitorDigi ( )

Definition at line 21 of file L1MonitorDigi.cc.

References reset().

21 { reset(); }
unsigned reset()

◆ L1MonitorDigi() [2/2]

L1MonitorDigi::L1MonitorDigi ( unsigned  sid,
unsigned  cid,
unsigned  x1,
unsigned  x2,
unsigned  x3,
unsigned  value,
unsigned  data 
)

Definition at line 23 of file L1MonitorDigi.cc.

References cid(), data, m_cid, m_data, m_location, m_sid, m_value, reset(), sid(), value(), x1(), x2(), and x3().

24  {
25  reset();
26  m_sid = sid;
27  m_cid = cid;
28  m_location[0] = x1;
29  m_location[1] = x2;
30  m_location[2] = x3;
31  m_value = value;
32  m_data = data;
33 }
unsigned sid() const
Definition: L1MonitorDigi.h:30
unsigned m_location[3]
Definition: L1MonitorDigi.h:44
unsigned m_sid
Definition: L1MonitorDigi.h:42
unsigned value() const
Definition: L1MonitorDigi.h:36
unsigned m_value
Definition: L1MonitorDigi.h:45
unsigned m_data
Definition: L1MonitorDigi.h:46
unsigned x2() const
Definition: L1MonitorDigi.h:33
unsigned x1() const
Definition: L1MonitorDigi.h:32
unsigned m_cid
Definition: L1MonitorDigi.h:43
unsigned cid() const
Definition: L1MonitorDigi.h:31
unsigned x3() const
Definition: L1MonitorDigi.h:34
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
unsigned reset()

◆ ~L1MonitorDigi()

L1MonitorDigi::~L1MonitorDigi ( )

Definition at line 35 of file L1MonitorDigi.cc.

35 {}

Member Function Documentation

◆ cid()

unsigned L1MonitorDigi::cid ( ) const
inline

Definition at line 31 of file L1MonitorDigi.h.

References m_cid.

Referenced by L1MonitorDigi(), and setCid().

31 { return m_cid; }
unsigned m_cid
Definition: L1MonitorDigi.h:43

◆ empty()

bool L1MonitorDigi::empty ( ) const

Definition at line 4 of file L1MonitorDigi.cc.

References m_cid, m_null, m_sid, and m_value.

4  {
5  if (m_sid == m_null || m_cid == m_null || m_value == m_null)
6  return true;
7  return false;
8 }
unsigned m_null
Definition: L1MonitorDigi.h:47
unsigned m_sid
Definition: L1MonitorDigi.h:42
unsigned m_value
Definition: L1MonitorDigi.h:45
unsigned m_cid
Definition: L1MonitorDigi.h:43

◆ raw()

unsigned L1MonitorDigi::raw ( ) const
inline

Definition at line 35 of file L1MonitorDigi.h.

References m_data.

Referenced by setRaw().

35 { return m_data; }
unsigned m_data
Definition: L1MonitorDigi.h:46

◆ reset()

unsigned L1MonitorDigi::reset ( void  )

Definition at line 10 of file L1MonitorDigi.cc.

References mps_fire::i, m_cid, m_data, m_location, m_null, m_sid, and m_value.

Referenced by L1MonitorDigi().

10  {
11  m_null = 999;
12  m_sid = m_null;
13  m_cid = m_null;
14  for (int i = 0; i < 3; i++)
15  m_location[i] = m_null;
16  m_data = 0;
17  m_value = m_null;
18  return m_null;
19 }
unsigned m_location[3]
Definition: L1MonitorDigi.h:44
unsigned m_null
Definition: L1MonitorDigi.h:47
unsigned m_sid
Definition: L1MonitorDigi.h:42
unsigned m_value
Definition: L1MonitorDigi.h:45
unsigned m_data
Definition: L1MonitorDigi.h:46
unsigned m_cid
Definition: L1MonitorDigi.h:43

◆ setCid()

void L1MonitorDigi::setCid ( int  cid)
inline

Definition at line 21 of file L1MonitorDigi.h.

References cid(), and m_cid.

21 { m_cid = cid; }
unsigned m_cid
Definition: L1MonitorDigi.h:43
unsigned cid() const
Definition: L1MonitorDigi.h:31

◆ setLoc()

void L1MonitorDigi::setLoc ( unsigned  x1,
unsigned  x2,
unsigned  x3 
)
inline

Definition at line 22 of file L1MonitorDigi.h.

References m_location, x1(), x2(), and x3().

22  {
23  m_location[0] = x1;
24  m_location[1] = x2;
25  m_location[2] = x3;
26  }
unsigned m_location[3]
Definition: L1MonitorDigi.h:44
unsigned x2() const
Definition: L1MonitorDigi.h:33
unsigned x1() const
Definition: L1MonitorDigi.h:32
unsigned x3() const
Definition: L1MonitorDigi.h:34

◆ setRaw()

void L1MonitorDigi::setRaw ( unsigned  raw)
inline

Definition at line 27 of file L1MonitorDigi.h.

References m_data, and raw().

27 { m_data = raw; }
unsigned m_data
Definition: L1MonitorDigi.h:46
unsigned raw() const
Definition: L1MonitorDigi.h:35

◆ setSid()

void L1MonitorDigi::setSid ( int  sid)
inline

Definition at line 20 of file L1MonitorDigi.h.

References m_sid, and sid().

20 { m_sid = sid; }
unsigned sid() const
Definition: L1MonitorDigi.h:30
unsigned m_sid
Definition: L1MonitorDigi.h:42

◆ setValue()

void L1MonitorDigi::setValue ( unsigned  val)
inline

Definition at line 28 of file L1MonitorDigi.h.

References m_value, and heppy_batch::val.

28 { m_value = val; }
unsigned m_value
Definition: L1MonitorDigi.h:45

◆ sid()

unsigned L1MonitorDigi::sid ( ) const
inline

Definition at line 30 of file L1MonitorDigi.h.

References m_sid.

Referenced by L1MonitorDigi(), and setSid().

30 { return m_sid; }
unsigned m_sid
Definition: L1MonitorDigi.h:42

◆ value()

unsigned L1MonitorDigi::value ( ) const
inline

◆ x1()

unsigned L1MonitorDigi::x1 ( ) const
inline

◆ x2()

unsigned L1MonitorDigi::x2 ( ) const
inline

◆ x3()

unsigned L1MonitorDigi::x3 ( ) const
inline

Definition at line 34 of file L1MonitorDigi.h.

References m_location.

Referenced by L1MonitorDigi(), and setLoc().

34 { return m_location[2]; }
unsigned m_location[3]
Definition: L1MonitorDigi.h:44

Member Data Documentation

◆ m_cid

unsigned L1MonitorDigi::m_cid
private

Definition at line 43 of file L1MonitorDigi.h.

Referenced by cid(), empty(), L1MonitorDigi(), reset(), and setCid().

◆ m_data

unsigned L1MonitorDigi::m_data
private

Definition at line 46 of file L1MonitorDigi.h.

Referenced by L1MonitorDigi(), raw(), reset(), and setRaw().

◆ m_location

unsigned L1MonitorDigi::m_location[3]
private

Definition at line 44 of file L1MonitorDigi.h.

Referenced by L1MonitorDigi(), reset(), setLoc(), x1(), x2(), and x3().

◆ m_null

unsigned L1MonitorDigi::m_null
private

Definition at line 47 of file L1MonitorDigi.h.

Referenced by empty(), and reset().

◆ m_sid

unsigned L1MonitorDigi::m_sid
private

Definition at line 42 of file L1MonitorDigi.h.

Referenced by empty(), L1MonitorDigi(), reset(), setSid(), and sid().

◆ m_value

unsigned L1MonitorDigi::m_value
private

Definition at line 45 of file L1MonitorDigi.h.

Referenced by empty(), L1MonitorDigi(), reset(), setValue(), and value().