DataFormats
HcalDigi
src
HcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h
"
2
3
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
() : theSample(0) {}
4
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
(uint16_t
data
) : theSample(
data
) {}
5
6
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
(
int
encodedEt,
bool
fineGrain,
int
slb
,
int
slbchan) {
7
theSample
= (((
slb
)&0x7) << 13) | ((slbchan & 0x3) << 11) | (encodedEt & 0xFF) | ((
fineGrain
) ? (0x100) : (0));
8
}
9
10
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
(
int
encodedEt,
int
fineGrainExt) {
11
theSample
= (encodedEt & 0xFF) | ((fineGrainExt & 0x3F) << 8);
12
}
13
14
std::ostream&
operator<<
(std::ostream&
s
,
const
HcalTriggerPrimitiveSample
& samp) {
15
return
s
<<
"Value="
<< samp.
compressedEt
() <<
", FG="
<< samp.
fineGrain
();
16
}
HcalTriggerPrimitiveSample
Definition:
HcalTriggerPrimitiveSample.h:11
operator<<
std::ostream & operator<<(std::ostream &s, const HcalTriggerPrimitiveSample &samp)
Definition:
HcalTriggerPrimitiveSample.cc:14
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
HcalTriggerPrimitiveSample()
Definition:
HcalTriggerPrimitiveSample.cc:3
slb
static int slb(const HcalTriggerPrimitiveSample &theSample)
Definition:
CastorUnpacker.cc:71
HcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et
Definition:
HcalTriggerPrimitiveSample.h:21
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
HcalTriggerPrimitiveSample.h
HcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
HcalTriggerPrimitiveSample.h:26
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
HcalTriggerPrimitiveSample::fineGrain
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
Definition:
HcalTriggerPrimitiveSample.h:23
Generated for CMSSW Reference Manual by
1.8.16