CMS 3D CMS Logo

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 }
static int slb(const HcalTriggerPrimitiveSample &theSample)
int compressedEt() const
get the encoded/compressed Et
std::ostream & operator<<(std::ostream &s, const HcalTriggerPrimitiveSample &samp)
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79