File indexing completed on 2024-04-06 12:19:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef L1MUDT_TRACK_SEG_ETA_H
0014 #define L1MUDT_TRACK_SEG_ETA_H
0015
0016
0017
0018
0019
0020 #include <iosfwd>
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 #include "L1Trigger/DTTrackFinder/interface/L1MuDTTrackSegLoc.h"
0031
0032
0033
0034
0035
0036 class L1MuDTTrackSegEta {
0037 public:
0038
0039 L1MuDTTrackSegEta();
0040
0041
0042 L1MuDTTrackSegEta(int wheel_id, int sector_id, int station_id, int position = 0, int quality = 0, int bx = 17);
0043
0044
0045 L1MuDTTrackSegEta(const L1MuDTTrackSegLoc&, int position = 0, int quality = 0, int bx = 17);
0046
0047
0048 L1MuDTTrackSegEta(const L1MuDTTrackSegEta&);
0049
0050
0051 virtual ~L1MuDTTrackSegEta();
0052
0053
0054 void reset();
0055
0056
0057 inline int wheel() const { return m_location.wheel(); }
0058
0059
0060 inline int sector() const { return m_location.sector(); }
0061
0062
0063 inline int station() const { return m_location.station(); }
0064
0065
0066 inline const L1MuDTTrackSegLoc& where() const { return m_location; }
0067
0068
0069 inline unsigned int position() const { return m_position; }
0070
0071
0072 inline unsigned int quality() const { return m_quality; }
0073
0074
0075 inline int bx() const { return m_bx; }
0076
0077
0078 inline bool empty() const { return m_position == 0; }
0079
0080
0081 L1MuDTTrackSegEta& operator=(const L1MuDTTrackSegEta&);
0082
0083
0084 bool operator==(const L1MuDTTrackSegEta&) const;
0085
0086
0087 bool operator!=(const L1MuDTTrackSegEta&) const;
0088
0089
0090 friend std::ostream& operator<<(std::ostream&, const L1MuDTTrackSegEta&);
0091
0092 private:
0093 L1MuDTTrackSegLoc m_location;
0094 unsigned int m_position;
0095 unsigned int m_quality;
0096 int m_bx;
0097 };
0098
0099 #endif