Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
DataFormats
EcalDigi
src
EcalEBTriggerPrimitiveSample.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalEBTriggerPrimitiveSample.h
"
2
#include <iostream>
3
4
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
() : theSample(0) {}
5
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(uint16_t
data
) : theSample(
data
) {}
6
7
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt,
bool
isASpike) {
8
theSample
= (
encodedEt
& 0x3FF) | ((isASpike) ? (0x400) : (0));
9
}
10
11
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt,
bool
isASpike,
int
timing
) {
12
theSample
= (
encodedEt
& 0x3FF) | ((isASpike) ? (0x400) : (0)) |
timing
<< 11;
13
}
14
15
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt) {
theSample
=
encodedEt
& 0x3FF; }
16
17
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalEBTriggerPrimitiveSample
& samp) {
18
return
s
<<
"ET="
<< samp.
encodedEt
() <<
", isASpike="
<< samp.
l1aSpike
() <<
" timing= "
<< samp.
time
();
19
}
operator<<
std::ostream & operator<<(std::ostream &s, const EcalEBTriggerPrimitiveSample &samp)
Definition:
EcalEBTriggerPrimitiveSample.cc:17
EcalEBTriggerPrimitiveSample
Definition:
EcalEBTriggerPrimitiveSample.h:12
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EcalEBTriggerPrimitiveSample::time
int time() const
Definition:
EcalEBTriggerPrimitiveSample.h:38
EcalEBTriggerPrimitiveSample::encodedEt
int encodedEt() const
get the encoded Et (10 bits)
Definition:
EcalEBTriggerPrimitiveSample.h:34
EcalEBTriggerPrimitiveSample.h
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
EcalEBTriggerPrimitiveSample()
Definition:
EcalEBTriggerPrimitiveSample.cc:4
ecalMatacq_cfi.timing
timing
Definition:
ecalMatacq_cfi.py:26
EcalEBTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
EcalEBTriggerPrimitiveSample.h:44
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:80
EcalEBTriggerPrimitiveSample::l1aSpike
bool l1aSpike() const
Definition:
EcalEBTriggerPrimitiveSample.h:36
Generated for CMSSW Reference Manual by
1.8.14