CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
2 
3 
6 
7 HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample(int encodedEt, bool fineGrain, int slb, int slbchan) {
8  theSample=(((slb)&0x7)<<13)|((slbchan&0x3)<<11)|(encodedEt&0xFF)|
9  ((fineGrain)?(0x100):(0));
10 }
11 
12 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveSample& samp) {
13  return s << "Value=" << samp.compressedEt() << ", FG=" << samp.fineGrain();
14 }
15 
16 
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
int slb() const
get the slb site number
bool fineGrain() const
get the fine-grain bit
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int compressedEt() const
get the encoded/compressed Et