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 
14 public:
17  HcalTriggerPrimitiveSample(int encodedEt, bool finegrain, int slb, int slbchan);
18 
20  uint16_t raw() const { return theSample; }
22  int compressedEt() const { return theSample&0xFF; }
24  bool fineGrain() const { return (theSample&0x100)!=0; }
26  int slb() const { return ((theSample>>13)&0x7); }
28  int slbChan() const { return (theSample>>11)&0x3; }
30  int slbAndChan() const { return (theSample>>11)&0x1F; }
31 
32 private:
33  uint16_t theSample;
34 };
35 
36 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveSample& samp);
37 
38 
39 #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