CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuDTSecProcId.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
16 //
17 //--------------------------------------------------
18 #ifndef L1MUDT_SEC_PROC_ID_H
19 #define L1MUDT_SEC_PROC_ID_H
20 
21 //---------------
22 // C++ Headers --
23 //---------------
24 
25 #include <iosfwd>
26 #include <cstdlib>
27 
28 //----------------------
29 // Base Class Headers --
30 //----------------------
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
41 public:
44 
46  L1MuDTSecProcId(int wheel_id, int sector_id);
47 
50 
52  virtual ~L1MuDTSecProcId();
53 
55  inline int wheel() const { return m_wheel; }
56 
58  inline int sector() const { return m_sector; }
59 
61  inline bool ovl() const { return (abs(m_wheel) == 3) ? true : false; }
62 
64  int locwheel() const;
65 
68 
70  bool operator==(const L1MuDTSecProcId&) const;
71 
73  bool operator!=(const L1MuDTSecProcId&) const;
74 
76  bool operator<(const L1MuDTSecProcId&) const;
77 
79  friend std::ostream& operator<<(std::ostream&, const L1MuDTSecProcId&);
80 
81 private:
82  int m_wheel;
83  int m_sector;
84 };
85 
86 #endif
bool operator==(const L1MuDTSecProcId &) const
equal operator
L1MuDTSecProcId()
default constructor
int sector() const
return sector number
bool operator!=(const L1MuDTSecProcId &) const
unequal operator
virtual ~L1MuDTSecProcId()
destructor
friend std::ostream & operator<<(std::ostream &, const L1MuDTSecProcId &)
output stream operator
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool ovl() const
is it an overlap region Sector Processor?
int locwheel() const
return physical wheel number (-2,-1,0,+1,+2)
L1MuDTSecProcId & operator=(const L1MuDTSecProcId &)
assignment operator
int wheel() const
return wheel number
bool operator<(const L1MuDTSecProcId &) const
less operator