CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalFEMSample.cc
Go to the documentation of this file.
2 
3 EcalFEMSample::EcalFEMSample(int adc, int gainId) { theSample = (adc & 0xFFF) | ((gainId & 0x3) << 12); }
4 
5 std::ostream& operator<<(std::ostream& s, const EcalFEMSample& samp) {
6  s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId();
7  return s;
8 }
int adc() const
get the ADC sample (12 bits)
Definition: EcalFEMSample.h:23
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
uint16_t theSample
Definition: EcalFEMSample.h:30
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
uint16_t *__restrict__ uint16_t const *__restrict__ adc
int gainId() const
get the gainId (2 bits)
Definition: EcalFEMSample.h:25