DataFormats
EcalDigi
src
EcalEBTriggerPrimitiveSample.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalEBTriggerPrimitiveSample.h
"
2
3
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
() : theSample(0) {}
4
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(uint16_t
data
) : theSample(
data
) {}
5
6
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt,
bool
isASpike) {
7
theSample
= (
encodedEt
& 0x3FF) | ((isASpike) ? (0x400) : (0));
8
}
9
10
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt,
bool
isASpike,
int
timing
) {
11
theSample
= (
encodedEt
& 0x3FF) | ((isASpike) ? (0x400) : (0)) |
timing
<< 11;
12
}
13
14
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt) {
theSample
=
encodedEt
& 0x3FF; }
15
16
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalEBTriggerPrimitiveSample
& samp) {
17
return
s
<<
"ET="
<< samp.
encodedEt
() <<
", isASpike="
<< samp.
l1aSpike
() <<
" timing= "
<< samp.
time
();
18
}
EcalEBTriggerPrimitiveSample::l1aSpike
bool l1aSpike() const
Definition:
EcalEBTriggerPrimitiveSample.h:36
EcalEBTriggerPrimitiveSample
Definition:
EcalEBTriggerPrimitiveSample.h:12
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EcalEBTriggerPrimitiveSample::time
int time() const
Definition:
EcalEBTriggerPrimitiveSample.h:38
operator<<
std::ostream & operator<<(std::ostream &s, const EcalEBTriggerPrimitiveSample &samp)
Definition:
EcalEBTriggerPrimitiveSample.cc:16
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
EcalEBTriggerPrimitiveSample()
Definition:
EcalEBTriggerPrimitiveSample.cc:3
EcalEBTriggerPrimitiveSample::encodedEt
int encodedEt() const
get the encoded Et (10 bits)
Definition:
EcalEBTriggerPrimitiveSample.h:34
ecalMatacq_cfi.timing
timing
Definition:
ecalMatacq_cfi.py:26
EcalEBTriggerPrimitiveSample.h
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