00001 #include "TBDataFormats/EcalTBObjects/interface/EcalTBTDCSample.h" 00002 00003 00004 EcalTBTDCSample::EcalTBTDCSample(unsigned int tdcChan, unsigned int tdcVal) { 00005 theSample=(tdcVal&0xFFFFFF) | ((tdcChan&0xFF)<<24); 00006 } 00007 00008 std::ostream& operator<<(std::ostream& s, const EcalTBTDCSample& samp) { 00009 s << "TDC Channel=" << samp.tdcChannel() << ", Value=" << samp.tdcValue(); 00010 return s; 00011 }