CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTSecProcId.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
18 //
19 //--------------------------------------------------
20 #ifndef L1MUDT_SEC_PROC_ID_H
21 #define L1MUDT_SEC_PROC_ID_H
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 #include <iosfwd>
28 #include <cstdlib>
29 
30 //----------------------
31 // Base Class Headers --
32 //----------------------
33 
34 
35 //------------------------------------
36 // Collaborating Class Declarations --
37 //------------------------------------
38 
39 // ---------------------
40 // -- Class Interface --
41 // ---------------------
42 
44 
45  public:
46 
49 
51  L1MuDTSecProcId(int wheel_id, int sector_id);
52 
55 
57  virtual ~L1MuDTSecProcId();
58 
60  inline int wheel() const { return m_wheel; }
61 
63  inline int sector() const { return m_sector; }
64 
66  inline bool ovl() const { return (abs(m_wheel) == 3) ? true : false; }
67 
69  int locwheel() const;
70 
73 
75  bool operator==(const L1MuDTSecProcId&) const;
76 
78  bool operator!=(const L1MuDTSecProcId&) const;
79 
81  bool operator<(const L1MuDTSecProcId&) const;
82 
84  friend std::ostream& operator<<(std::ostream&, const L1MuDTSecProcId&);
85 
86  private:
87 
88  int m_wheel;
89  int m_sector;
90 
91 };
92 
93 #endif
bool operator==(const L1MuDTSecProcId &) const
equal operator
#define abs(x)
Definition: mlp_lapack.h:159
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
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