00001 #ifndef RPCDigi_RPCDigi_h 00002 #define RPCDigi_RPCDigi_h 00003 00015 #include <boost/cstdint.hpp> 00016 00017 class RPCDigi{ 00018 00019 public: 00020 explicit RPCDigi (int strip, int bx); 00021 RPCDigi (); 00022 00023 bool operator==(const RPCDigi& digi) const; 00024 bool operator<(const RPCDigi& digi) const; 00025 00026 int strip() const ; 00027 int bx() const; 00028 void print() const; 00029 00030 private: 00031 uint16_t strip_; 00032 int32_t bx_; 00033 }; 00034 00035 00036 #include<iostream> 00037 inline std::ostream & operator<<(std::ostream & o, const RPCDigi& digi) { 00038 return o << " " << digi.strip() 00039 << " " << digi.bx(); 00040 } 00041 #endif 00042