Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:12

0001 #ifndef DataFormats_GEMDigi_ME0Digi_h
0002 #define DataFormats_GEMDigi_ME0Digi_h
0003 
0004 /** \class ME0Digi
0005  *
0006  * Digi for ME0
0007  *  
0008  * \author Sven Dildick (TAMU)
0009  *
0010  */
0011 
0012 #include <cstdint>
0013 #include <iosfwd>
0014 
0015 class ME0Digi {
0016 public:
0017   explicit ME0Digi(int strip, int bx);
0018   ME0Digi();
0019 
0020   bool operator==(const ME0Digi& digi) const;
0021   bool operator!=(const ME0Digi& digi) const;
0022   bool operator<(const ME0Digi& digi) const;
0023 
0024   // return the strip number. counts from 1.
0025   int strip() const { return strip_; }
0026   int bx() const { return bx_; }
0027 
0028 private:
0029   uint16_t strip_;
0030   int16_t bx_;
0031 };
0032 
0033 std::ostream& operator<<(std::ostream& o, const ME0Digi& digi);
0034 
0035 #endif