Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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