CMS 3D CMS Logo

HcalTriggerPrimitiveSample.h
Go to the documentation of this file.
1 #ifndef HCALTRIGGERPRIMITIVESAMPLE_H
2 #define HCALTRIGGERPRIMITIVESAMPLE_H 1
3 
4 #include <ostream>
5 #include <cstdint>
6 
12 public:
15  HcalTriggerPrimitiveSample(int encodedEt, bool finegrain, int slb, int slbchan);
16  HcalTriggerPrimitiveSample(int encodedEt, int finegrainExtended);
17 
19  uint16_t raw() const { return theSample; }
21  int compressedEt() const { return theSample & 0xFF; }
23  bool fineGrain(int i = 0) const { return (((theSample) >> (i + 8)) & 0x1) != 0; }
24 
25 private:
26  uint16_t theSample;
27 };
28 
29 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveSample& samp);
30 
31 #endif
std::ostream & operator<<(std::ostream &s, const HcalTriggerPrimitiveSample &samp)
static int slb(const HcalTriggerPrimitiveSample &theSample)
int compressedEt() const
get the encoded/compressed Et
uint16_t raw() const
get the raw word
bool fineGrain(int i=0) const
get fine-grain bit (traditional)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80