00001 #include "DataFormats/EcalDigi/interface/EcalMGPASample.h" 00002 #include<iostream> 00003 00004 EcalMGPASample::EcalMGPASample(int adc,int gainId) { 00005 theSample=(adc&0xFFF) | ((gainId&0x3)<<12); 00006 } 00007 00008 std::ostream& operator<<(std::ostream& s, const EcalMGPASample& samp) { 00009 s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId(); 00010 return s; 00011 }