CMS 3D CMS Logo

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 // Collaborating Class Declarations --
34 //------------------------------------
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
41 public:
44 
46  L1MuBMSecProcId(int wheel_id, int sector_id);
47 
50 
52  virtual ~L1MuBMSecProcId();
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 L1MuBMSecProcId&) const;
71 
73  bool operator!=(const L1MuBMSecProcId&) const;
74 
76  bool operator<(const L1MuBMSecProcId&) const;
77 
79  friend std::ostream& operator<<(std::ostream&, const L1MuBMSecProcId&);
80 
81 private:
82  int m_wheel;
83  int m_sector;
84 };
85 
86 #endif
L1MuBMSecProcId::m_sector
int m_sector
Definition: L1MuBMSecProcId.h:83
L1MuBMSecProcId
Definition: L1MuBMSecProcId.h:40
L1MuBMSecProcId::operator!=
bool operator!=(const L1MuBMSecProcId &) const
unequal operator
Definition: L1MuBMSecProcId.cc:95
L1MuBMSecProcId::~L1MuBMSecProcId
virtual ~L1MuBMSecProcId()
destructor
Definition: L1MuBMSecProcId.cc:59
L1MuBMSecProcId::sector
int sector() const
return sector number
Definition: L1MuBMSecProcId.h:58
L1MuBMSecProcId::wheel
int wheel() const
return wheel number
Definition: L1MuBMSecProcId.h:55
L1MuBMSecProcId::locwheel
int locwheel() const
return physical wheel number (-2,-1,0,+1,+2)
Definition: L1MuBMSecProcId.cc:79
L1MuBMSecProcId::operator<<
friend std::ostream & operator<<(std::ostream &, const L1MuBMSecProcId &)
output stream operator
funct::true
true
Definition: Factorize.h:173
L1MuBMSecProcId::operator<
bool operator<(const L1MuBMSecProcId &) const
less operator
Definition: L1MuBMSecProcId.cc:106
L1MuBMSecProcId::m_wheel
int m_wheel
Definition: L1MuBMSecProcId.h:82
L1MuBMSecProcId::ovl
bool ovl() const
is it an overlap region Sector Processor?
Definition: L1MuBMSecProcId.h:61
L1MuBMSecProcId::L1MuBMSecProcId
L1MuBMSecProcId()
default constructor
Definition: L1MuBMSecProcId.cc:42
L1MuBMSecProcId::operator==
bool operator==(const L1MuBMSecProcId &) const
equal operator
Definition: L1MuBMSecProcId.cc:84
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
L1MuBMSecProcId::operator=
L1MuBMSecProcId & operator=(const L1MuBMSecProcId &)
assignment operator
Definition: L1MuBMSecProcId.cc:68