test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalFEMSample.cc
Go to the documentation of this file.
2 
4  theSample=(adc&0xFFF) | ((gainId&0x3)<<12);
5 }
6 
7 std::ostream& operator<<(std::ostream& s, const EcalFEMSample& samp) {
8  s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId();
9  return s;
10 }
int adc(sample_type sample)
get the ADC sample (12 bits)
int gainId(sample_type sample)
get the gainId (2 bits)
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:188
uint16_t theSample
Definition: EcalFEMSample.h:30
int gainId() const
get the gainId (2 bits)
Definition: EcalFEMSample.h:25