CMS 3D CMS Logo

EcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
2 
5 
6 EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample(int encodedEt, bool fineGrain, int ttFlag) {
7  theSample = ((ttFlag & 0x7) << 9) | (encodedEt & 0xFF) | ((fineGrain) ? (0x100) : (0));
8 }
9 
10 EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample(int encodedEt, bool finegrain, int stripFGVB, int ttFlag) {
11  theSample = ((ttFlag & 0x7) << 9) | (encodedEt & 0xFF) | ((finegrain) ? (0x100) : (0)) | ((stripFGVB & 0x1) << 12);
12 }
13 
14 std::ostream& operator<<(std::ostream& s, const EcalTriggerPrimitiveSample& samp) {
15  return s << "ET=" << samp.compressedEt() << ", FG=" << samp.fineGrain() << ", sFGVB=" << samp.sFGVB()
16  << ", TTF=" << samp.ttFlag();
17 }
EcalTriggerPrimitiveSample::ttFlag
int ttFlag() const
get the Trigger tower Flag (3 bits)
Definition: EcalTriggerPrimitiveSample.h:28
operator<<
std::ostream & operator<<(std::ostream &s, const EcalTriggerPrimitiveSample &samp)
Definition: EcalTriggerPrimitiveSample.cc:14
EcalTriggerPrimitiveSample::fineGrain
bool fineGrain() const
get the fine-grain bit (1 bit)
Definition: EcalTriggerPrimitiveSample.h:26
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EcalTriggerPrimitiveSample::sFGVB
int sFGVB() const
Definition: EcalTriggerPrimitiveSample.h:39
EcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition: EcalTriggerPrimitiveSample.h:45
EcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et (8 bits)
Definition: EcalTriggerPrimitiveSample.h:24
EcalTriggerPrimitiveSample.h
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
EcalTriggerPrimitiveSample
Definition: EcalTriggerPrimitiveSample.h:12
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample
EcalTriggerPrimitiveSample()
Definition: EcalTriggerPrimitiveSample.cc:3