File indexing completed on 2024-04-06 12:04:12
0001 #ifndef GEMDigi_ME0TriggerDigi_h
0002 #define GEMDigi_ME0TriggerDigi_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include <cstdint>
0025 #include <iosfwd>
0026 #include "DataFormats/GEMRecHit/interface/ME0Segment.h"
0027
0028 class ME0TriggerDigi {
0029 public:
0030
0031 ME0TriggerDigi(const int chamberid,
0032 const int quality,
0033 const int phiposition,
0034 const int partition,
0035 const int deltaphi,
0036 const int bend,
0037 const int bx);
0038
0039
0040 ME0TriggerDigi();
0041
0042
0043 void clear();
0044
0045
0046 bool operator==(const ME0TriggerDigi &) const;
0047 bool operator!=(const ME0TriggerDigi &rhs) const { return !(this->operator==(rhs)); }
0048
0049
0050 int getChamberid() const { return chamberid_; }
0051
0052
0053 int getQuality() const { return quality_; }
0054
0055
0056 int getStrip() const { return strip_; }
0057
0058
0059 int getPhiposition() const { return phiposition_; }
0060
0061
0062 int getPartition() const { return partition_; }
0063
0064
0065 int getDeltaphi() const { return deltaphi_; }
0066
0067
0068 int getBend() const { return bend_; }
0069
0070
0071 int getBX() const { return bx_; }
0072
0073
0074 bool isValid() const { return quality_ != 0; }
0075
0076
0077 void setChamberid(const uint16_t number) { chamberid_ = number; }
0078
0079
0080 void setQuality(unsigned int q) { quality_ = q; }
0081
0082
0083 void setStrip(unsigned int s) { strip_ = s; }
0084
0085
0086 void setPhiposition(unsigned int phi) { phiposition_ = phi; }
0087
0088
0089 void setPartition(unsigned int p) { partition_ = p; }
0090
0091
0092 void setDeltaphi(unsigned int dphi) { deltaphi_ = dphi; }
0093
0094
0095 void setBend(unsigned int b) { bend_ = b; }
0096
0097
0098 void setBX(unsigned int b) { bx_ = b; }
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108 private:
0109 uint16_t chamberid_;
0110 uint16_t quality_;
0111 uint16_t strip_;
0112 uint16_t phiposition_;
0113 uint16_t partition_;
0114 uint16_t deltaphi_;
0115 uint16_t bend_;
0116 uint16_t bx_;
0117
0118 private:
0119 ME0Segment segment_;
0120 };
0121
0122 std::ostream &operator<<(std::ostream &o, const ME0TriggerDigi &digi);
0123
0124 #endif