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
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
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
DataFormats
EcalDigi
interface
EcalEBTriggerPrimitiveSample.h
Go to the documentation of this file.
1
#ifndef ECALEBTRIGGERPRIMITIVESAMPLE_H
2
#define ECALEBTRIGGERPRIMITIVESAMPLE_H 1
3
4
#include <ostream>
5
#include <cstdint>
6
12
class
EcalEBTriggerPrimitiveSample
{
13
public
:
14
EcalEBTriggerPrimitiveSample
();
15
EcalEBTriggerPrimitiveSample
(uint16_t
data
);
16
EcalEBTriggerPrimitiveSample
(
int
encodedEt
);
17
EcalEBTriggerPrimitiveSample
(
int
encodedEt
,
bool
isASpike);
18
EcalEBTriggerPrimitiveSample
(
int
encodedEt
,
bool
isASpike,
int
timing
);
19
21
void
setValue
(uint16_t
data
) {
theSample
=
data
; }
22
// The sample is a 16 bit word defined as:
23
//
24
// o o o o o o o o o o o o o o o o
25
// |________| |____________________|
26
// ~60ps res spike Et
27
// time info flag
28
//
29
31
uint16_t
raw
()
const
{
return
theSample
; }
32
34
int
encodedEt
()
const
{
return
theSample
& 0x3FF; }
35
36
bool
l1aSpike
()
const
{
return
(
theSample
& 0x400) != 0; }
37
38
int
time
()
const
{
return
theSample
>> 11; }
39
41
uint16_t
operator()
() {
return
theSample
; }
42
43
private
:
44
uint16_t
theSample
;
45
};
46
47
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalEBTriggerPrimitiveSample
& samp);
48
49
#endif
EcalEBTriggerPrimitiveSample::l1aSpike
bool l1aSpike() const
Definition:
EcalEBTriggerPrimitiveSample.h:36
EcalEBTriggerPrimitiveSample::raw
uint16_t raw() const
get the raw word
Definition:
EcalEBTriggerPrimitiveSample.h:31
EcalEBTriggerPrimitiveSample
Definition:
EcalEBTriggerPrimitiveSample.h:12
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
operator<<
std::ostream & operator<<(std::ostream &s, const EcalEBTriggerPrimitiveSample &samp)
Definition:
EcalEBTriggerPrimitiveSample.cc:16
EcalEBTriggerPrimitiveSample::setValue
void setValue(uint16_t data)
Set data.
Definition:
EcalEBTriggerPrimitiveSample.h:21
EcalEBTriggerPrimitiveSample::time
int time() const
Definition:
EcalEBTriggerPrimitiveSample.h:38
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
EcalEBTriggerPrimitiveSample()
Definition:
EcalEBTriggerPrimitiveSample.cc:3
EcalEBTriggerPrimitiveSample::operator()
uint16_t operator()()
for streaming
Definition:
EcalEBTriggerPrimitiveSample.h:41
EcalEBTriggerPrimitiveSample::encodedEt
int encodedEt() const
get the encoded Et (10 bits)
Definition:
EcalEBTriggerPrimitiveSample.h:34
ecalMatacq_cfi.timing
timing
Definition:
ecalMatacq_cfi.py:26
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
EcalEBTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
EcalEBTriggerPrimitiveSample.h:44
Generated for CMSSW Reference Manual by
1.8.16