test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
L1Trigger
src
L1MonitorDigi.cc
Go to the documentation of this file.
1
#include "
DataFormats/L1Trigger/interface/L1MonitorDigi.h
"
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
10
unsigned
L1MonitorDigi::reset
() {
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
}
20
21
L1MonitorDigi::L1MonitorDigi
() {
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
;
30
m_location
[0]=
x1
;
m_location
[1]=
x2
;
m_location
[2]=
x3
;
31
m_value
=
value
;
32
m_data
=
data
;
33
}
34
35
L1MonitorDigi::~L1MonitorDigi
() {}
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
}
L1MonitorDigi::m_location
unsigned m_location[3]
Definition:
L1MonitorDigi.h:45
i
int i
Definition:
DBlmapReader.cc:9
L1MonitorDigi::m_null
unsigned m_null
Definition:
L1MonitorDigi.h:48
L1MonitorDigi::L1MonitorDigi
L1MonitorDigi()
Definition:
L1MonitorDigi.cc:21
L1MonitorDigi::m_sid
unsigned m_sid
Definition:
L1MonitorDigi.h:43
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
L1MonitorDigi::x2
unsigned x2() const
Definition:
L1MonitorDigi.h:33
L1MonitorDigi::sid
unsigned sid() const
Definition:
L1MonitorDigi.h:30
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:188
L1MonitorDigi::m_value
unsigned m_value
Definition:
L1MonitorDigi.h:46
L1MonitorDigi::raw
unsigned raw() const
Definition:
L1MonitorDigi.h:35
L1MonitorDigi::m_data
unsigned m_data
Definition:
L1MonitorDigi.h:47
L1MonitorDigi::m_cid
unsigned m_cid
Definition:
L1MonitorDigi.h:44
L1MonitorDigi::x3
unsigned x3() const
Definition:
L1MonitorDigi.h:34
L1MonitorDigi
Definition:
L1MonitorDigi.h:14
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
L1MonitorDigi::cid
unsigned cid() const
Definition:
L1MonitorDigi.h:31
LaserDQM_cfi.mon
tuple mon
Definition:
LaserDQM_cfi.py:3
L1MonitorDigi::reset
unsigned reset()
Definition:
L1MonitorDigi.cc:10
L1MonitorDigi::value
unsigned value() const
Definition:
L1MonitorDigi.h:36
L1MonitorDigi.h
L1MonitorDigi::~L1MonitorDigi
~L1MonitorDigi()
Definition:
L1MonitorDigi.cc:35
TauDecayModes.dec
tuple dec
Definition:
TauDecayModes.py:141
L1MonitorDigi::x1
unsigned x1() const
Definition:
L1MonitorDigi.h:32
AlCaHLTBitMon_QueryRunRegistry.data
tuple data
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:288
L1MonitorDigi::empty
bool empty() const
Definition:
L1MonitorDigi.cc:4
Generated for CMSSW Reference Manual by
1.8.5