test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuBMSecProcId.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
16 //
17 //--------------------------------------------------
18 #ifndef L1MUBM_SEC_PROC_ID_H
19 #define L1MUBM_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 //------------------------------------
34 // Collaborating Class Declarations --
35 //------------------------------------
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
42 
43  public:
44 
47 
49  L1MuBMSecProcId(int wheel_id, int sector_id);
50 
53 
55  virtual ~L1MuBMSecProcId();
56 
58  inline int wheel() const { return m_wheel; }
59 
61  inline int sector() const { return m_sector; }
62 
64  inline bool ovl() const { return (abs(m_wheel) == 3) ? true : false; }
65 
67  int locwheel() const;
68 
71 
73  bool operator==(const L1MuBMSecProcId&) const;
74 
76  bool operator!=(const L1MuBMSecProcId&) const;
77 
79  bool operator<(const L1MuBMSecProcId&) const;
80 
82  friend std::ostream& operator<<(std::ostream&, const L1MuBMSecProcId&);
83 
84  private:
85 
86  int m_wheel;
87  int m_sector;
88 
89 };
90 
91 #endif
L1MuBMSecProcId()
default constructor
bool ovl() const
is it an overlap region Sector Processor?
bool operator!=(const L1MuBMSecProcId &) const
unequal operator
int sector() const
return sector number
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool operator==(const L1MuBMSecProcId &) const
equal operator
L1MuBMSecProcId & operator=(const L1MuBMSecProcId &)
assignment operator
virtual ~L1MuBMSecProcId()
destructor
bool operator<(const L1MuBMSecProcId &) const
less operator
friend std::ostream & operator<<(std::ostream &, const L1MuBMSecProcId &)
output stream operator
int locwheel() const
return physical wheel number (-2,-1,0,+1,+2)
int wheel() const
return wheel number