File indexing completed on 2024-04-06 12:02:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #ifndef L1MUDT_ETA_PATTERN_H
0023 #define L1MUDT_ETA_PATTERN_H
0024
0025
0026
0027
0028
0029 #include "CondFormats/Serialization/interface/Serializable.h"
0030
0031 #include <iosfwd>
0032 #include <string>
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046 class L1MuDTEtaPattern {
0047 public:
0048
0049 L1MuDTEtaPattern();
0050
0051
0052 L1MuDTEtaPattern(int id, int w1, int w2, int w3, int p1, int p2, int p3, int eta, int qual);
0053
0054 L1MuDTEtaPattern(int id, const std::string& pat, int eta, int qual);
0055
0056
0057 L1MuDTEtaPattern(const L1MuDTEtaPattern&);
0058
0059
0060 virtual ~L1MuDTEtaPattern();
0061
0062
0063 inline int id() const { return m_id; }
0064
0065
0066 inline int eta() const { return m_eta; }
0067
0068
0069 inline int quality() const { return m_qual; }
0070
0071
0072 inline int wheel(int station) const { return m_wheel[station - 1]; }
0073
0074
0075 inline int position(int station) const { return m_position[station - 1]; }
0076
0077
0078 L1MuDTEtaPattern& operator=(const L1MuDTEtaPattern&);
0079
0080
0081 bool operator==(const L1MuDTEtaPattern&) const;
0082
0083
0084 bool operator!=(const L1MuDTEtaPattern&) const;
0085
0086
0087 friend std::ostream& operator<<(std::ostream&, const L1MuDTEtaPattern&);
0088
0089
0090 friend std::istream& operator>>(std::istream&, L1MuDTEtaPattern&);
0091
0092 private:
0093 short m_id;
0094 short m_wheel[3];
0095 short m_position[3];
0096 short m_eta;
0097 short m_qual;
0098
0099 COND_SERIALIZABLE;
0100 };
0101
0102 #endif