CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
unsigned int tdcChannel() const
get the gainId (8 bits)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
unsigned int tdcValue() const
get the ADC sample (24 bits)