CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DataFormats/CSCDigi/interface/CSCComparatorDigi.h

Go to the documentation of this file.
00001 #ifndef CSCComparatorDigi_CSCComparatorDigi_h
00002 #define CSCComparatorDigi_CSCComparatorDigi_h
00003 
00014 #include <iosfwd>
00015 #include <vector>
00016 #include <stdint.h>
00017 
00018 class CSCComparatorDigi{
00019 
00020 public:
00021 
00023   CSCComparatorDigi (int strip, int comparator, int timeBinWord);
00025 
00027   CSCComparatorDigi ();
00028 
00029 
00031   bool operator==(const CSCComparatorDigi& digi) const;
00032 
00034   bool operator<(const CSCComparatorDigi& digi) const;
00035 
00037     int getStrip() const { return strip_; }
00038 
00040   int getComparator() const { return comparator_; }
00041 
00043   int getTimeBinWord() const { return timeBinWord_; }
00044 
00046   int getTimeBin() const;
00047 
00051   std::vector<int> getTimeBinsOn() const;
00052 
00054   void setStrip(int strip);
00055 
00057   void setComparator (int comparator);
00058 
00060   void print() const;
00061 
00062 
00063 private:
00064 
00065   uint16_t strip_;
00066   uint16_t comparator_;
00067   uint16_t timeBinWord_;
00068 
00069 };
00070 
00072 std::ostream & operator<<(std::ostream & o, const CSCComparatorDigi& digi);
00073 
00074 #endif
00075 
00076