CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/EcalDigi/src/EcalPseudoStripInputSample.cc

Go to the documentation of this file.
00001 #include "DataFormats/EcalDigi/interface/EcalPseudoStripInputSample.h"
00002 
00003 
00004 EcalPseudoStripInputSample::EcalPseudoStripInputSample() : theSample(0) { }
00005 EcalPseudoStripInputSample::EcalPseudoStripInputSample(uint16_t data) : theSample(data) { }
00006 
00007 EcalPseudoStripInputSample::EcalPseudoStripInputSample(int pseudoStripInput, bool fineGrain) { 
00008     theSample=(pseudoStripInput&0xFFF)|((fineGrain)?(0x1000):(0));
00009 }
00010 
00011 
00012 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputSample& samp) {
00013   return s << "PSInput=" << samp.pseudoStripInput() << ", FG=" << samp.fineGrain();
00014 }