CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/DataFormats/EcalDigi/interface/ESSample.h

Go to the documentation of this file.
00001 #ifndef DIGIECAL_ESSAMPLE_H
00002 #define DIGIECAL_ESSAMPLE_H
00003 
00004 #include <ostream>
00005 #include <boost/cstdint.hpp>
00006 
00007 class ESSample {
00008 
00009  public:
00010 
00011   ESSample() { theSample = 0; }
00012   ESSample(int16_t data) { theSample = data; }
00013   ESSample(int adc);
00014     
00016   int16_t raw() const { return theSample; }
00018   int adc() const { return theSample; }
00020   int16_t operator()() { return theSample; }
00021 
00022  private:
00023 
00024   int16_t theSample;
00025 
00026 };
00027 
00028 std::ostream& operator<<(std::ostream&, const ESSample&);
00029 
00030 #endif