src
DataFormats
EcalDigi
src
EcalEBPhase2TriggerPrimitiveSample.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalEBPhase2TriggerPrimitiveSample.h
"
2
#include <iostream>
3
4
EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample
() : theSample_(0) {}
5
EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample
(uint32_t
data
) : theSample_(
data
) {
6
theSample_
=
theSample_
& 0x3ffff;
7
}
8
9
EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample
(
int
encodedEt,
bool
isASpike) {
10
theSample_
= (
encodedEt
& 0xFFF) | ((isASpike) ? (0x1000) : (0));
11
theSample_
=
theSample_
& 0x3ffff;
12
}
13
14
EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample
(
int
encodedEt,
bool
isASpike,
int
timing
) {
15
theSample_
= (
encodedEt
& 0xFFF) | ((isASpike) ? (0x1000) : (0)) |
timing
<< 13;
16
theSample_
=
theSample_
& 0x3ffff;
17
}
18
19
EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample
(
int
encodedEt) {
20
theSample_
=
encodedEt
& 0xFFF;
21
theSample_
=
theSample_
& 0x3ffff;
22
}
23
24
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalEBPhase2TriggerPrimitiveSample
& samp) {
25
return
s
<<
"ET="
<< samp.
encodedEt
() <<
", isASpike="
<< samp.
l1aSpike
() <<
" timing= "
<< samp.
time
();
26
}
EcalEBPhase2TriggerPrimitiveSample
Definition:
EcalEBPhase2TriggerPrimitiveSample.h:12
EcalEBPhase2TriggerPrimitiveSample::l1aSpike
bool l1aSpike() const
Definition:
EcalEBPhase2TriggerPrimitiveSample.h:36
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EcalEBPhase2TriggerPrimitiveSample::EcalEBPhase2TriggerPrimitiveSample
EcalEBPhase2TriggerPrimitiveSample()
Definition:
EcalEBPhase2TriggerPrimitiveSample.cc:4
EcalEBPhase2TriggerPrimitiveSample.h
EcalEBPhase2TriggerPrimitiveSample::theSample_
uint32_t theSample_
Definition:
EcalEBPhase2TriggerPrimitiveSample.h:44
ecalMatacq_cfi.timing
timing
Definition:
ecalMatacq_cfi.py:26
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:80
EcalEBPhase2TriggerPrimitiveSample::time
int time() const
Definition:
EcalEBPhase2TriggerPrimitiveSample.h:38
EcalEBPhase2TriggerPrimitiveSample::encodedEt
int encodedEt() const
get the encoded Et (12 bits)
Definition:
EcalEBPhase2TriggerPrimitiveSample.h:34
operator<<
std::ostream & operator<<(std::ostream &s, const EcalEBPhase2TriggerPrimitiveSample &samp)
Definition:
EcalEBPhase2TriggerPrimitiveSample.cc:24
Generated for CMSSW Reference Manual by
1.8.14