File indexing completed on 2025-01-07 03:06:28
0001 #ifndef DataFormats_Phase2TrackerDigi_Phase2ITChipBitStream_H
0002 #define DataFormats_Phase2TrackerDigi_Phase2ITChipBitStream_H
0003 #include <vector>
0004
0005 class Phase2ITChipBitStream {
0006
0007 public:
0008 Phase2ITChipBitStream(int rocid, const std::vector<bool>& bitstream) {
0009 rocid_ = rocid;
0010 bitstream_ = bitstream;
0011 }
0012
0013 Phase2ITChipBitStream() { rocid_ = -1; }
0014
0015 int get_rocid() const { return rocid_; }
0016
0017 const std::vector<bool>& get_bitstream() const { return bitstream_; }
0018
0019 const bool operator<(const Phase2ITChipBitStream& other) { return rocid_ < other.rocid_; }
0020
0021 private:
0022 int rocid_;
0023 std::vector<bool> bitstream_;
0024 };
0025 #endif