test
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 
13  theSample=(encodedEt&0xFF)|((fineGrainExt&0x3F)<<8);
14 }
15 
16 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveSample& samp) {
17  return s << "Value=" << samp.compressedEt() << ", FG=" << samp.fineGrain();
18 }
19 
20 
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
static int slb(const HcalTriggerPrimitiveSample &theSample)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int compressedEt() const
get the encoded/compressed Et