Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:39:02

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