CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/DataFormats/EcalDigi/src/EcalMGPASample.cc

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