Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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::time
int time() const
Definition:
EcalEBTriggerPrimitiveSample.h:38
EcalEBTriggerPrimitiveSample
Definition:
EcalEBTriggerPrimitiveSample.h:12
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:167
EcalEBTriggerPrimitiveSample::encodedEt
int encodedEt() const
get the encoded Et (10 bits)
Definition:
EcalEBTriggerPrimitiveSample.h:34
EcalEBTriggerPrimitiveSample.h
EcalEBTriggerPrimitiveSample::EcalEBTriggerPrimitiveSample
EcalEBTriggerPrimitiveSample()
Definition:
EcalEBTriggerPrimitiveSample.cc:3
EcalEBTriggerPrimitiveSample::l1aSpike
bool l1aSpike() const
Definition:
EcalEBTriggerPrimitiveSample.h:36
EcalEBTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
EcalEBTriggerPrimitiveSample.h:44
alignCSCRings.s
list s
Definition:
alignCSCRings.py:92
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
Generated for CMSSW Reference Manual by
1.8.5