File indexing completed on 2023-03-17 10:49:34
0001 #ifndef CSCWireDigi_CSCWireDigi_h
0002 #define CSCWireDigi_CSCWireDigi_h
0003
0004
0005
0006
0007
0008
0009
0010 #include <vector>
0011 #include <iosfwd>
0012 #include <cstdint>
0013
0014 class CSCWireDigi {
0015 public:
0016
0017
0018 CSCWireDigi(int wire, unsigned int tbinb);
0019 CSCWireDigi();
0020
0021
0022 int getWireGroup() const { return wire_; }
0023
0024 int getWireGroupBX() const { return wireBX_; }
0025
0026
0027 int getBXandWireGroup() const { return wireBXandWires_; }
0028
0029 unsigned int getTimeBinWord() const { return tbinb_; }
0030
0031 int getBeamCrossingTag() const;
0032
0033 int getTimeBin() const;
0034
0035 std::vector<int> getTimeBinsOn() const;
0036
0037
0038 void print() const;
0039
0040
0041 void setWireGroup(unsigned int wiregroup) { wire_ = wiregroup; }
0042
0043 private:
0044 int wire_;
0045 uint32_t tbinb_;
0046
0047 int wireBXandWires_;
0048 int wireBX_;
0049 };
0050
0051 std::ostream& operator<<(std::ostream& o, const CSCWireDigi& digi);
0052
0053 #endif