CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESSample.h
Go to the documentation of this file.
1 #ifndef DIGIECAL_ESSAMPLE_H
2 #define DIGIECAL_ESSAMPLE_H
3 
4 #include <ostream>
5 #include <boost/cstdint.hpp>
6 
7 class ESSample {
8 
9  public:
10 
11  ESSample() { theSample = 0; }
12  ESSample(int16_t data) { theSample = data; }
13  ESSample(int adc);
14 
16  int16_t raw() const { return theSample; }
18  int adc() const { return theSample; }
20  int16_t operator()() { return theSample; }
21 
22  private:
23 
24  int16_t theSample;
25 
26 };
27 
28 std::ostream& operator<<(std::ostream&, const ESSample&);
29 
30 #endif
int16_t operator()()
for streaming
Definition: ESSample.h:20
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
ESSample()
Definition: ESSample.h:11
int16_t theSample
Definition: ESSample.h:24
ESSample(int16_t data)
Definition: ESSample.h:12
int16_t raw() const
get the raw word
Definition: ESSample.h:16
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int adc() const
get the ADC sample (singed 16 bits)
Definition: ESSample.h:18