CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GEMDigiSimLink.h
Go to the documentation of this file.
1 #ifndef GEMOBJECTS_GEMDIGISIMLINK_H
2 #define GEMOBJECTS_GEMDIGISIMLINK_H
3 
4 #include <map>
8 
10 public:
11  GEMDigiSimLink(uint16_t strip, int8_t bx, int16_t particleType, uint32_t trackId, EncodedEventId eventId) {
12  strip_ = strip;
13  bx_ = bx;
15  trackId_ = trackId;
16  eventId_ = eventId;
17  }
18 
21 
22  unsigned int getStrip() const { return strip_; }
23  int getBx() const { return bx_; }
24  int getParticleType() const { return particleType_; }
25  unsigned int getTrackId() const { return trackId_; }
26  EncodedEventId getEventId() const { return eventId_; }
27 
28  inline bool operator<(const GEMDigiSimLink& other) const { return getStrip() < other.getStrip(); }
29 
30 private:
31  uint16_t strip_;
32  int8_t bx_;
33  int16_t particleType_;
34  uint32_t trackId_;
36 };
37 #endif