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