CMS 3D CMS Logo

EcalTBTDCSample.h
Go to the documentation of this file.
1 #ifndef DIGIECAL_ECALTBTDCSAMPLE_H
2 #define DIGIECAL_ECALTBTDCSAMPLE_H 1
3 
4 #include <ostream>
5 #include <cstdint>
6 
15 public:
18  EcalTBTDCSample(unsigned int tdcChan, unsigned int tdcVal);
19 
21  uint32_t raw() const { return theSample; }
23  unsigned int tdcValue() const { return theSample & 0xFFFFFF; }
25  unsigned int tdcChannel() const { return (theSample >> 24) & 0xFF; }
27  uint32_t operator()() { return theSample; }
28 
29 private:
30  uint32_t theSample;
31 };
32 
33 std::ostream& operator<<(std::ostream&, const EcalTBTDCSample&);
34 
35 #endif
unsigned int tdcChannel() const
get the gainId (8 bits)
std::ostream & operator<<(std::ostream &, const EcalTBTDCSample &)
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:79
EcalTBTDCSample(uint32_t data)
uint32_t operator()()
for streaming