CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTTrackSegEta.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef L1MUDT_TRACK_SEG_ETA_H
16 #define L1MUDT_TRACK_SEG_ETA_H
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 
22 #include <iosfwd>
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
27 
28 //------------------------------------
29 // Collaborating Class Declarations --
30 //------------------------------------
31 
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
39 
40  public:
41 
44 
46  L1MuDTTrackSegEta(int wheel_id, int sector_id, int station_id,
47  int position = 0, int quality = 0, int bx = 17);
48 
51  int position = 0, int quality = 0, int bx = 17);
52 
55 
57  virtual ~L1MuDTTrackSegEta();
58 
60  void reset();
61 
63  inline int wheel() const { return m_location.wheel(); }
64 
66  inline int sector() const { return m_location.sector(); }
67 
69  inline int station() const { return m_location.station(); }
70 
72  inline const L1MuDTTrackSegLoc& where() const{ return m_location; }
73 
75  inline unsigned int position() const { return m_position; }
76 
78  inline unsigned int quality() const { return m_quality; }
79 
81  inline int bx() const { return m_bx; }
82 
84  inline bool empty() const { return m_position == 0; }
85 
88 
90  bool operator==(const L1MuDTTrackSegEta&) const;
91 
93  bool operator!=(const L1MuDTTrackSegEta&) const;
94 
96  friend std::ostream& operator<<(std::ostream&, const L1MuDTTrackSegEta&);
97 
98  private:
99 
100  L1MuDTTrackSegLoc m_location; // logical location of a TS
101  unsigned int m_position; // 7 bits
102  unsigned int m_quality; // 7 bits
103  int m_bx; // bunch crossing identifier
104 
105 };
106 
107 #endif
unsigned int position() const
return position
void reset()
reset eta track segment
int wheel() const
return wheel
const L1MuDTTrackSegLoc & where() const
return location of eta track segment
friend std::ostream & operator<<(std::ostream &, const L1MuDTTrackSegEta &)
output stream operator
int sector() const
return sector
unsigned int quality() const
return quality code
int sector() const
return sector (30 deg)
int station() const
return station
bool operator!=(const L1MuDTTrackSegEta &) const
unequal operator
bool empty() const
is it an empty eta track segment?
unsigned int m_position
L1MuDTTrackSegEta()
default constructor
int station() const
return station
int bx() const
return bunch crossing
unsigned int m_quality
L1MuDTTrackSegLoc m_location
bool operator==(const L1MuDTTrackSegEta &) const
equal operator
L1MuDTTrackSegEta & operator=(const L1MuDTTrackSegEta &)
assignment operator
virtual ~L1MuDTTrackSegEta()
destructor
int wheel() const
return wheel