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 }
HcalTriggerPrimitiveSample
Definition: HcalTriggerPrimitiveSample.h:11
operator<<
std::ostream & operator<<(std::ostream &s, const HcalTriggerPrimitiveSample &samp)
Definition: HcalTriggerPrimitiveSample.cc:14
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
HcalTriggerPrimitiveSample()
Definition: HcalTriggerPrimitiveSample.cc:3
slb
static int slb(const HcalTriggerPrimitiveSample &theSample)
Definition: CastorUnpacker.cc:71
HcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et
Definition: HcalTriggerPrimitiveSample.h:21
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalTriggerPrimitiveSample.h
HcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition: HcalTriggerPrimitiveSample.h:26
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
HcalTriggerPrimitiveSample::fineGrain
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
Definition: HcalTriggerPrimitiveSample.h:23