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