test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTBTDCSample.h
Go to the documentation of this file.
1 #ifndef DIGIECAL_ECALTBTDCSAMPLE_H
2 #define DIGIECAL_ECALTBTDCSAMPLE_H 1
3 
4 
5 #include <ostream>
6 #include <boost/cstdint.hpp>
7 
16  public:
19  EcalTBTDCSample(unsigned int tdcChan, unsigned int tdcVal);
20 
22  uint32_t raw() const { return theSample; }
24  unsigned int tdcValue() const { return theSample&0xFFFFFF; }
26  unsigned int tdcChannel() const { return (theSample>>24)&0xFF; }
28  uint32_t operator()() { return theSample; }
29 
30  private:
31  uint32_t theSample;
32 };
33 
34 std::ostream& operator<<(std::ostream&, const EcalTBTDCSample&);
35 
36 #endif
unsigned int tdcChannel() const
get the gainId (8 bits)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
unsigned int tdcValue() const
get the ADC sample (24 bits)
uint32_t raw() const
get the raw word
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
EcalTBTDCSample(uint32_t data)
uint32_t operator()()
for streaming