CMS 3D CMS Logo

L1MuBMTrackSegEta.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef L1MUBM_TRACK_SEG_ETA_H
14 #define L1MUBM_TRACK_SEG_ETA_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 #include <iosfwd>
21 #include <vector>
22 
23 //----------------------
24 // Base Class Headers --
25 //----------------------
26 
27 //------------------------------------
28 // Collaborating Class Declarations --
29 //------------------------------------
30 
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
38 
39 typedef std::vector<L1MuBMTrackSegEta> L1MuBMTrackSegEtaCollection;
40 
42 public:
45 
47  L1MuBMTrackSegEta(int wheel_id, int sector_id, int station_id, int position = 0, int quality = 0, int bx = 17);
48 
50  L1MuBMTrackSegEta(const L1MuBMTrackSegLoc&, int position = 0, int quality = 0, int bx = 17);
51 
54 
56  virtual ~L1MuBMTrackSegEta();
57 
59  void reset();
60 
62  inline int wheel() const { return m_location.wheel(); }
63 
65  inline int sector() const { return m_location.sector(); }
66 
68  inline int station() const { return m_location.station(); }
69 
71  inline const L1MuBMTrackSegLoc& where() const { return m_location; }
72 
74  inline unsigned int position() const { return m_position; }
75 
77  inline unsigned int quality() const { return m_quality; }
78 
80  inline int bx() const { return m_bx; }
81 
83  inline bool empty() const { return m_position == 0; }
84 
87 
89  bool operator==(const L1MuBMTrackSegEta&) const;
90 
92  bool operator!=(const L1MuBMTrackSegEta&) const;
93 
95  friend std::ostream& operator<<(std::ostream&, const L1MuBMTrackSegEta&);
96 
97 private:
98  L1MuBMTrackSegLoc m_location; // logical location of a TS
99  unsigned int m_position; // 7 bits
100  unsigned int m_quality; // 7 bits
101  int m_bx; // bunch crossing identifier
102 };
103 
104 #endif
L1MuBMTrackSegEta::m_location
L1MuBMTrackSegLoc m_location
Definition: L1MuBMTrackSegEta.h:98
L1MuBMTrackSegEta::quality
unsigned int quality() const
return quality code
Definition: L1MuBMTrackSegEta.h:77
L1MuBMTrackSegLoc::station
int station() const
return station
Definition: L1MuBMTrackSegLoc.h:62
L1MuBMTrackSegEta
Definition: L1MuBMTrackSegEta.h:41
L1MuBMTrackSegEta::operator==
bool operator==(const L1MuBMTrackSegEta &) const
equal operator
Definition: L1MuBMTrackSegEta.cc:90
L1MuBMTrackSegEta::m_position
unsigned int m_position
Definition: L1MuBMTrackSegEta.h:99
L1MuBMTrackSegEta::position
unsigned int position() const
return position
Definition: L1MuBMTrackSegEta.h:74
L1MuBMTrackSegEta::L1MuBMTrackSegEta
L1MuBMTrackSegEta()
default constructor
Definition: L1MuBMTrackSegEta.cc:45
L1MuBMTrackSegEta::bx
int bx() const
return bunch crossing
Definition: L1MuBMTrackSegEta.h:80
L1MuBMTrackSegEta::~L1MuBMTrackSegEta
virtual ~L1MuBMTrackSegEta()
destructor
Definition: L1MuBMTrackSegEta.cc:59
L1MuBMTrackSegLoc.h
L1MuBMTrackSegLoc::wheel
int wheel() const
return wheel
Definition: L1MuBMTrackSegLoc.h:56
L1MuBMTrackSegLoc
Definition: L1MuBMTrackSegLoc.h:41
L1MuBMTrackSegEta::operator<<
friend std::ostream & operator<<(std::ostream &, const L1MuBMTrackSegEta &)
output stream operator
L1MuBMTrackSegEta::operator=
L1MuBMTrackSegEta & operator=(const L1MuBMTrackSegEta &)
assignment operator
Definition: L1MuBMTrackSegEta.cc:77
L1MuBMTrackSegEta::empty
bool empty() const
is it an empty eta track segment?
Definition: L1MuBMTrackSegEta.h:83
L1MuBMTrackSegEta::reset
void reset()
reset eta track segment
Definition: L1MuBMTrackSegEta.cc:68
L1MuBMTrackSegEta::wheel
int wheel() const
return wheel
Definition: L1MuBMTrackSegEta.h:62
L1MuBMTrackSegEta::sector
int sector() const
return sector
Definition: L1MuBMTrackSegEta.h:65
L1MuBMTrackSegEta::m_quality
unsigned int m_quality
Definition: L1MuBMTrackSegEta.h:100
L1MuBMTrackSegLoc::sector
int sector() const
return sector (30 deg)
Definition: L1MuBMTrackSegLoc.h:59
L1MuBMTrackSegEta::operator!=
bool operator!=(const L1MuBMTrackSegEta &) const
unequal operator
Definition: L1MuBMTrackSegEta.cc:105
L1MuBMTrackSegEtaCollection
std::vector< L1MuBMTrackSegEta > L1MuBMTrackSegEtaCollection
Definition: L1MuBMTrackSegEta.h:37
L1MuBMTrackSegEta::m_bx
int m_bx
Definition: L1MuBMTrackSegEta.h:101
L1MuBMTrackSegEta::where
const L1MuBMTrackSegLoc & where() const
return location of eta track segment
Definition: L1MuBMTrackSegEta.h:71
L1MuBMTrackSegEta::station
int station() const
return station
Definition: L1MuBMTrackSegEta.h:68