CMS 3D CMS Logo

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