CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalTriggerPrimitiveSample.cc
Go to the documentation of this file.
2 
5 
6 HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample(int encodedEt, bool fineGrain, int slb, int slbchan) {
7  theSample = (((slb)&0x7) << 13) | ((slbchan & 0x3) << 11) | (encodedEt & 0xFF) | ((fineGrain) ? (0x100) : (0));
8 }
9 
11  theSample = (encodedEt & 0xFF) | ((fineGrainExt & 0x3F) << 8);
12 }
13 
14 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveSample& samp) {
15  return s << "Value=" << samp.compressedEt() << ", FG=" << samp.fineGrain();
16 }
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:167
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int compressedEt() const
get the encoded/compressed Et