CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DataFormats/SiStripDigi/interface/SiStripRawDigi.h

Go to the documentation of this file.
00001 #ifndef DataFormats_SiStripDigi_SiStripRawDigi_H
00002 #define DataFormats_SiStripDigi_SiStripRawDigi_H
00003 
00004 #include "DataFormats/Common/interface/traits.h"
00005 
00015 class SiStripRawDigi : public edm::DoNotSortUponInsertion {
00016   
00017  public:
00018 
00019   SiStripRawDigi( const uint16_t& adc ) : adc_(adc) {;}
00020 
00021   SiStripRawDigi() : adc_(0) {;}
00022   ~SiStripRawDigi() {;}
00023   
00024   inline const uint16_t& adc() const;
00025   
00027   inline bool operator< ( const SiStripRawDigi& other ) const;
00028   
00029  private:
00030   
00031   uint16_t adc_;
00032   
00033 };
00034 
00035 #include<iostream>
00036 inline std::ostream & operator<<(std::ostream & o, const SiStripRawDigi& digi) {
00037   return o << " " << digi.adc();
00038 }
00039 
00040 // inline methods 
00041 const uint16_t& SiStripRawDigi::adc() const {  return adc_; }
00042 bool SiStripRawDigi::operator< ( const SiStripRawDigi& other ) const { return ( this->adc() < other.adc() ); }
00043 
00044 #endif // DataFormats_SiStripDigi_SiStripRawDigi_H
00045