CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuDTTrackSegPhi.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef L1MUDT_TRACK_SEG_PHI_H
14 #define L1MUDT_TRACK_SEG_PHI_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 #include <iosfwd>
21 
22 //----------------------
23 // Base Class Headers --
24 //----------------------
25 
26 //------------------------------------
27 // Collaborating Class Declarations --
28 //------------------------------------
29 
31 
32 // ---------------------
33 // -- Class Interface --
34 // ---------------------
35 
37 public:
39  enum TSQuality { Li, Lo, Hi, Ho, LL, HL, HH, Null };
40 
43 
45  L1MuDTTrackSegPhi(int wheel_id,
46  int sector_id,
47  int station_id,
48  int phi = 0,
49  int phib = 0,
51  bool tag = false,
52  int bx = 17,
53  bool etaFlag = false);
54 
57  int phi = 0,
58  int phib = 0,
60  bool tag = false,
61  int bx = 17,
62  bool etaFlag = false);
63 
66 
68  virtual ~L1MuDTTrackSegPhi();
69 
71  void reset();
72 
74  double phiValue() const;
75 
77  double phibValue() const;
78 
80  inline int wheel() const { return m_location.wheel(); }
81 
83  inline int sector() const { return m_location.sector(); }
84 
86  inline int station() const { return m_location.station(); }
87 
89  inline const L1MuDTTrackSegLoc& where() const { return m_location; }
90 
92  inline int phi() const { return m_phi; }
93 
95  inline int phib() const { return m_phib; }
96 
98  inline int quality() const { return m_quality; }
99 
101  inline int tag() const { return m_tag; }
102 
104  inline int bx() const { return m_bx; }
105 
107  inline bool etaFlag() const { return m_etaFlag; }
108 
110  inline bool empty() const { return m_quality == Null; }
111 
113  inline void setEtaFlag(bool flag) { m_etaFlag = flag; }
114 
117 
119  bool operator==(const L1MuDTTrackSegPhi&) const;
120 
122  bool operator!=(const L1MuDTTrackSegPhi&) const;
123 
125  friend std::ostream& operator<<(std::ostream&, const TSQuality&);
126 
128  friend std::ostream& operator<<(std::ostream&, const L1MuDTTrackSegPhi&);
129 
130 private:
131  L1MuDTTrackSegLoc m_location; // logical location of TS
132  int m_phi; // 12 bits
133  int m_phib; // 10 bits
134  TSQuality m_quality; // 3 bits
135  bool m_tag; // tag for second TS (of chamber)
136  int m_bx; // bunch crossing identifier
137  bool m_etaFlag; // eta flag (for overlap region)
138 };
139 
140 #endif
int tag() const
return tag (second TS tag)
virtual ~L1MuDTTrackSegPhi()
destructor
bool operator!=(const L1MuDTTrackSegPhi &) const
unequal operator
int quality() const
return quality code
bool etaFlag() const
return eta flag
int station() const
return station
int sector() const
return sector (30 deg)
void reset()
reset phi track segment
int station() const
return station
int phi() const
return phi
int bx() const
return bunch crossing
double phiValue() const
return phi-value in global coordinates [0,2pi]
friend std::ostream & operator<<(std::ostream &, const TSQuality &)
overload output stream operator for phi track segment quality
int phib() const
return phib
bool empty() const
is it an empty phi track segment?
bool operator==(const L1MuDTTrackSegPhi &) const
equal operator
const L1MuDTTrackSegLoc & where() const
return location of phi track segment
TSQuality
quality code of DTBX phi track segments
L1MuDTTrackSegPhi()
default constructor
double phibValue() const
return phib-value in global coordinates [0,2pi]
int sector() const
return sector
int wheel() const
return wheel
L1MuDTTrackSegLoc m_location
L1MuDTTrackSegPhi & operator=(const L1MuDTTrackSegPhi &)
assignment operator
int wheel() const
return wheel
void setEtaFlag(bool flag)
set eta flag