CMS 3D CMS Logo

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