src
DataFormats
TotemReco
src
TotemT2Digi.cc
Go to the documentation of this file.
1
#include "
DataFormats/TotemReco/interface/TotemT2Digi.h
"
2
3
TotemT2Digi::TotemT2Digi
(
4
unsigned
short
id
,
unsigned
char
marker,
unsigned
short
le,
unsigned
short
te,
unsigned
char
status
)
5
: id_(
id
), marker_(marker), lead_edge_(le), trail_edge_(te), status_(
status
) {}
6
7
bool
operator<
(
const
TotemT2Digi
& lhs,
const
TotemT2Digi
& rhs) {
8
if
(lhs.
leadingEdge
() < rhs.
leadingEdge
())
9
return
true
;
10
if
(lhs.
leadingEdge
() > rhs.
leadingEdge
())
11
return
false
;
12
if
(lhs.
trailingEdge
() < rhs.
trailingEdge
())
13
return
true
;
14
if
(lhs.
trailingEdge
() > rhs.
trailingEdge
())
15
return
false
;
16
return
false
;
17
}
TotemT2Digi.h
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:86
operator<
bool operator<(const TotemT2Digi &lhs, const TotemT2Digi &rhs)
Definition:
TotemT2Digi.cc:7
mps_update.status
status
Definition:
mps_update.py:68
TotemT2Digi::TotemT2Digi
TotemT2Digi()=default
TotemT2Digi::trailingEdge
unsigned short trailingEdge() const
Definition:
TotemT2Digi.h:20
TotemT2Digi::leadingEdge
unsigned short leadingEdge() const
Definition:
TotemT2Digi.h:18
TotemT2Digi
Definition:
TotemT2Digi.h:12
Generated for CMSSW Reference Manual by
1.8.14