CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTriggerPrimitiveSample.h
Go to the documentation of this file.
1 #ifndef HCALTRIGGERPRIMITIVESAMPLE_H
2 #define HCALTRIGGERPRIMITIVESAMPLE_H 1
3 
4 #include <boost/cstdint.hpp>
5 #include <ostream>
6 
12 public:
15  HcalTriggerPrimitiveSample(int encodedEt, bool finegrain, int slb, int slbchan);
16 
18  uint16_t raw() const { return theSample; }
20  int compressedEt() const { return theSample&0xFF; }
22  bool fineGrain() const { return (theSample&0x100)!=0; }
24  int slb() const { return ((theSample>>13)&0x7); }
26  int slbChan() const { return (theSample>>11)&0x3; }
28  int slbAndChan() const { return (theSample>>11)&0x1F; }
29 
30 private:
31  uint16_t theSample;
32 };
33 
34 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveSample& samp);
35 
36 
37 #endif
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
int slbChan() const
get the slb channel number
int slbAndChan() const
get the id channel
uint16_t raw() const
get the raw word
int slb() const
get the slb site number
bool fineGrain() const
get the fine-grain bit
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int compressedEt() const
get the encoded/compressed Et