CMS 3D CMS Logo

EcalEBPhase2TriggerPrimitiveSample.cc
Go to the documentation of this file.
2 #include <iostream>
3 
6  theSample_ = theSample_ & 0x3ffff;
7 }
8 
10  theSample_ = (encodedEt & 0xFFF) | ((isASpike) ? (0x1000) : (0));
11  theSample_ = theSample_ & 0x3ffff;
12 }
13 
15  theSample_ = (encodedEt & 0xFFF) | ((isASpike) ? (0x1000) : (0)) | timing << 13;
16  theSample_ = theSample_ & 0x3ffff;
17 }
18 
20  theSample_ = encodedEt & 0xFFF;
21  theSample_ = theSample_ & 0x3ffff;
22 }
23 
24 std::ostream& operator<<(std::ostream& s, const EcalEBPhase2TriggerPrimitiveSample& samp) {
25  return s << "ET=" << samp.encodedEt() << ", isASpike=" << samp.l1aSpike() << " timing= " << samp.time();
26 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
int encodedEt() const
get the encoded Et (12 bits)
std::ostream & operator<<(std::ostream &s, const EcalEBPhase2TriggerPrimitiveSample &samp)