Main Page
Namespaces
Classes
Package Documentation
src
DataFormats
EcalDigi
src
EcalEBTriggerPrimitiveSample.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalEBTriggerPrimitiveSample.h
"
2
3
4
5
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
() : theSample(0) { }
6
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(uint16_t
data
) :
theSample
(data) { }
7
8
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt
,
bool
isASpike) {
9
theSample
=(encodedEt&0x3FF)| ((isASpike)?(0x400):(0));
10
}
11
12
13
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt
,
bool
isASpike,
int
timing) {
14
theSample
=(encodedEt&0x3FF)| ((isASpike)?(0x400):(0)) | timing<<11;
15
}
16
17
18
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
(
int
encodedEt
) {
19
theSample
=encodedEt&0x3FF;
20
}
21
22
23
24
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalEBTriggerPrimitiveSample
& samp) {
25
return
s <<
"ET="
<< samp.
encodedEt
() <<
", isASpike="
<< samp.
l1aSpike
()<<
" timing= "
<< samp.
time
() ;
26
27
}
28
29
operator<<
std::ostream & operator<<(std::ostream &s, const EcalEBTriggerPrimitiveSample &samp)
Definition:
EcalEBTriggerPrimitiveSample.cc:24
EcalEBTriggerPrimitiveSample::time
int time() const
Definition:
EcalEBTriggerPrimitiveSample.h:41
EcalEBTriggerPrimitiveSample
Definition:
EcalEBTriggerPrimitiveSample.h:14
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EcalEBTriggerPrimitiveSample::encodedEt
int encodedEt() const
get the encoded Et (10 bits)
Definition:
EcalEBTriggerPrimitiveSample.h:37
EcalEBTriggerPrimitiveSample.h
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
EcalEBTriggerPrimitiveSample()
Definition:
EcalEBTriggerPrimitiveSample.cc:5
EcalEBTriggerPrimitiveSample::l1aSpike
bool l1aSpike() const
Definition:
EcalEBTriggerPrimitiveSample.h:39
EcalEBTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
EcalEBTriggerPrimitiveSample.h:47
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
Generated for CMSSW Reference Manual by
1.8.11