File indexing completed on 2024-04-06 12:29:41
0001 #ifndef GEMOBJECTS_GEMDIGISIMLINK_H
0002 #define GEMOBJECTS_GEMDIGISIMLINK_H
0003
0004 #include <map>
0005 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0006 #include "DataFormats/GeometryVector/interface/LocalVector.h"
0007 #include "SimDataFormats/EncodedEventId/interface/EncodedEventId.h"
0008
0009 class GEMDigiSimLink {
0010 public:
0011 GEMDigiSimLink(uint16_t strip, int8_t bx, int16_t particleType, uint32_t trackId, EncodedEventId eventId) {
0012 strip_ = strip;
0013 bx_ = bx;
0014 particleType_ = particleType;
0015 trackId_ = trackId;
0016 eventId_ = eventId;
0017 }
0018
0019 GEMDigiSimLink() {}
0020 ~GEMDigiSimLink() {}
0021
0022 unsigned int getStrip() const { return strip_; }
0023 int getBx() const { return bx_; }
0024 int getParticleType() const { return particleType_; }
0025 unsigned int getTrackId() const { return trackId_; }
0026 EncodedEventId getEventId() const { return eventId_; }
0027
0028 inline bool operator<(const GEMDigiSimLink& other) const { return getStrip() < other.getStrip(); }
0029
0030 private:
0031 uint16_t strip_;
0032 int8_t bx_;
0033 int16_t particleType_;
0034 uint32_t trackId_;
0035 EncodedEventId eventId_;
0036 };
0037 #endif