test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
2 
3 
4 
7 
8 EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample(int encodedEt, bool fineGrain, int ttFlag) {
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)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
bool fineGrain() const
get the fine-grain bit (1 bit)
int ttFlag() const
get the Trigger tower Flag (3 bits)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82