Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
EcalDigi
src
EcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalTriggerPrimitiveSample.h
"
2
3
4
5
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample
() : theSample(0) { }
6
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample
(uint16_t
data
) : theSample(data) { }
7
8
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample
(
int
encodedEt,
bool
fineGrain,
int
ttFlag) {
9
theSample
=((ttFlag&0x7)<<9)|(encodedEt&0xFF)|
10
((fineGrain)?(0x100):(0));
11
}
12
13
14
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalTriggerPrimitiveSample
& samp) {
15
return
s <<
"ET="
<< samp.
compressedEt
() <<
", FG="
<< samp.
fineGrain
() <<
", TTF="
<< samp.
ttFlag
();
16
}
17
18
EcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et (8 bits)
Definition:
EcalTriggerPrimitiveSample.h:26
EcalTriggerPrimitiveSample.h
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
EcalTriggerPrimitiveSample
Definition:
EcalTriggerPrimitiveSample.h:15
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample
EcalTriggerPrimitiveSample()
Definition:
EcalTriggerPrimitiveSample.cc:5
EcalTriggerPrimitiveSample::fineGrain
bool fineGrain() const
get the fine-grain bit (1 bit)
Definition:
EcalTriggerPrimitiveSample.h:28
EcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
EcalTriggerPrimitiveSample.h:47
EcalTriggerPrimitiveSample::ttFlag
int ttFlag() const
get the Trigger tower Flag (3 bits)
Definition:
EcalTriggerPrimitiveSample.h:30
asciidump.s
string s
Definition:
asciidump.py:422
runTheMatrix.data
data
Definition:
runTheMatrix.py:756
Generated for CMSSW Reference Manual by
1.8.5