CMS 3D CMS Logo

EcalPseudoStripInputSample.h

Go to the documentation of this file.
00001 #ifndef ECALPSEUDOSTRIPINPUTSAMPLE_H
00002 #define ECALPSEUDOSTRIPINPUTSAMPLE_H
00003 
00004 #include <boost/cstdint.hpp>
00005 #include <ostream>
00006 
00007 
00008 
00015 class EcalPseudoStripInputSample {
00016  public:
00017   EcalPseudoStripInputSample();
00018   EcalPseudoStripInputSample(uint16_t data);
00019   EcalPseudoStripInputSample(int pseudoStripInput, bool finegrain);
00020 
00022   void setValue(uint16_t data){ theSample = data;}
00024   uint16_t raw() const { return theSample; }
00026   int pseudoStripInput() const { return theSample&0xFFF; }
00028   bool fineGrain() const { return (theSample&0x1000)!=0; }
00029     
00031   uint16_t operator()() { return theSample; }
00032 
00033  private:
00034   uint16_t theSample;
00035 };
00036 
00037 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputSample& samp);
00038   
00039 #endif

Generated on Tue Jun 9 17:30:42 2009 for CMSSW by  doxygen 1.5.4