Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
HcalDigi
src
HcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h
"
2
3
4
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
() : theSample(0) { }
5
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
(uint16_t
data
) : theSample(data) { }
6
7
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
(
int
encodedEt,
bool
fineGrain,
int
slb,
int
slbchan) {
8
theSample
=(((
slb
)&0x7)<<13)|((slbchan&0x3)<<11)|(encodedEt&0xFF)|
9
((
fineGrain
)?(0x100):(0));
10
}
11
12
std::ostream&
operator<<
(std::ostream&
s
,
const
HcalTriggerPrimitiveSample
& samp) {
13
return
s <<
"Value="
<< samp.
compressedEt
() <<
", FG="
<< samp.
fineGrain
();
14
}
15
16
HcalTriggerPrimitiveSample.h
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
HcalTriggerPrimitiveSample()
Definition:
HcalTriggerPrimitiveSample.cc:4
HcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
HcalTriggerPrimitiveSample.h:33
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
HcalTriggerPrimitiveSample
Definition:
HcalTriggerPrimitiveSample.h:13
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
HcalTriggerPrimitiveSample::slb
int slb() const
get the slb site number
Definition:
HcalTriggerPrimitiveSample.h:26
HcalTriggerPrimitiveSample::fineGrain
bool fineGrain() const
get the fine-grain bit
Definition:
HcalTriggerPrimitiveSample.h:24
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
HcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et
Definition:
HcalTriggerPrimitiveSample.h:22
Generated for CMSSW Reference Manual by
1.8.5