CMS 3D CMS Logo

ESSample.cc
Go to the documentation of this file.
2 
3 ESSample::ESSample(int adc) { theSample = (int16_t)adc; }
4 
5 std::ostream& operator<<(std::ostream& s, const ESSample& samp) {
6  s << "ADC = " << samp.adc();
7  return s;
8 }
std::ostream & operator<<(std::ostream &s, const ESSample &samp)
Definition: ESSample.cc:5
ESSample()
Definition: ESSample.h:9
int16_t theSample
Definition: ESSample.h:21
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
int adc() const
get the ADC sample (singed 16 bits)
Definition: ESSample.h:16