CMS 3D CMS Logo

EcalTBTDCSample.cc
Go to the documentation of this file.
2 
3 EcalTBTDCSample::EcalTBTDCSample(unsigned int tdcChan, unsigned int tdcVal) {
4  theSample = (tdcVal & 0xFFFFFF) | ((tdcChan & 0xFF) << 24);
5 }
6 
7 std::ostream& operator<<(std::ostream& s, const EcalTBTDCSample& samp) {
8  s << "TDC Channel=" << samp.tdcChannel() << ", Value=" << samp.tdcValue();
9  return s;
10 }
std::ostream & operator<<(std::ostream &s, const EcalTBTDCSample &samp)
unsigned int tdcValue() const
get the ADC sample (24 bits)
unsigned int tdcChannel() const
get the gainId (8 bits)