File indexing completed on 2024-04-06 12:04:12
0001 #ifndef GEMDigi_GEMCoPadDigi_h
0002 #define GEMDigi_GEMCoPadDigi_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "DataFormats/GEMDigi/interface/GEMPadDigi.h"
0013 #include <cstdint>
0014 #include <iosfwd>
0015
0016 class GEMCoPadDigi {
0017 public:
0018 explicit GEMCoPadDigi(uint8_t roll, GEMPadDigi pad1, GEMPadDigi pad2);
0019 GEMCoPadDigi();
0020
0021 bool operator==(const GEMCoPadDigi& digi) const;
0022 bool operator!=(const GEMCoPadDigi& digi) const;
0023 bool isValid() const;
0024
0025 int roll() const { return roll_; }
0026 int pad(int l) const;
0027 int bx(int l) const;
0028
0029 GEMPadDigi first() const { return first_; }
0030 GEMPadDigi second() const { return second_; }
0031
0032 void print() const;
0033
0034 private:
0035 uint8_t roll_;
0036 GEMPadDigi first_;
0037 GEMPadDigi second_;
0038 };
0039
0040 std::ostream& operator<<(std::ostream& o, const GEMCoPadDigi& digi);
0041
0042 #endif