CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/TBDataFormats/EcalTBObjects/src/EcalTBTDCSample.cc

Go to the documentation of this file.
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 }