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 }
bool fineGrain() const
get the fine-grain bit (1 bit)
int ttFlag() const
get the Trigger tower Flag (3 bits)
int compressedEt() const
get the encoded/compressed Et (8 bits)
std::ostream & operator<<(std::ostream &s, const EcalTriggerPrimitiveSample &samp)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79