Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:16

0001 #include "DataFormats/EcalDigi/interface/EcalPseudoStripInputSample.h"
0002 
0003 EcalPseudoStripInputSample::EcalPseudoStripInputSample() : theSample(0) {}
0004 EcalPseudoStripInputSample::EcalPseudoStripInputSample(uint16_t data) : theSample(data) {}
0005 
0006 EcalPseudoStripInputSample::EcalPseudoStripInputSample(int pseudoStripInput, bool fineGrain) {
0007   theSample = (pseudoStripInput & 0xFFF) | ((fineGrain) ? (0x1000) : (0));
0008 }
0009 
0010 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputSample& samp) {
0011   return s << "PSInput=" << samp.pseudoStripInput() << ", FG=" << samp.fineGrain();
0012 }