Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:04

0001 #include "DataFormats/EcalDigi/interface/EcalLiteDTUSample.h"
0002 #include <iostream>
0003 
0004 EcalLiteDTUSample::EcalLiteDTUSample(int adc, int gainId) {
0005   theSample = (adc & ecalPh2::kAdcMask) | ((gainId & ecalPh2::kGainIdMask) << ecalPh2::NBITS);
0006 }
0007 
0008 std::ostream& operator<<(std::ostream& s, const EcalLiteDTUSample& samp) {
0009   s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId();
0010   return s;
0011 }