CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/EcalDigi/src/EcalFEMSample.cc

Go to the documentation of this file.
00001 #include "DataFormats/EcalDigi/interface/EcalFEMSample.h"
00002 
00003 EcalFEMSample::EcalFEMSample(int adc, int gainId) {
00004   theSample=(adc&0xFFF) | ((gainId&0x3)<<12);
00005 }
00006 
00007 std::ostream& operator<<(std::ostream& s, const EcalFEMSample& samp) {
00008   s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId();
00009   return s;
00010 }