CMS 3D CMS Logo

L1MuBMAddressArray.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
27 //
28 //--------------------------------------------------
29 #ifndef L1MUBM_ADDRESS_ARRAY_H
30 #define L1MUBM_ADDRESS_ARRAY_H
31 
32 //---------------
33 // C++ Headers --
34 //---------------
35 
36 #include <iosfwd>
37 
38 //----------------------
39 // Base Class Headers --
40 //----------------------
41 
42 //------------------------------------
43 // Collaborating Class Declarations --
44 //------------------------------------
45 
46 // ---------------------
47 // -- Class Interface --
48 // ---------------------
49 
51 public:
54 
57 
59  virtual ~L1MuBMAddressArray();
60 
63 
65  bool operator==(const L1MuBMAddressArray&) const;
66 
68  bool operator!=(const L1MuBMAddressArray&) const;
69 
71  void reset();
72 
74  void setStation(int stat, int adr);
75 
77  void setStations(int adr1, int adr2, int adr3, int adr4);
78 
80  inline unsigned short station(int stat) const { return m_station[stat - 1]; }
81 
83  int trackAddressCode() const;
84 
87 
89  friend std::ostream& operator<<(std::ostream&, const L1MuBMAddressArray&);
90 
92  static unsigned short int convert(unsigned short int adr);
93 
95  static bool sameWheel(unsigned short int adr);
96 
98  static bool nextWheel(unsigned short int adr);
99 
100 private:
101  unsigned short int m_station[4];
102 };
103 
104 #endif
L1MuBMAddressArray::sameWheel
static bool sameWheel(unsigned short int adr)
is it a same wheel address?
Definition: L1MuBMAddressArray.cc:340
L1MuBMAddressArray::setStations
void setStations(int adr1, int adr2, int adr3, int adr4)
set addresses of all four stations
Definition: L1MuBMAddressArray.cc:118
L1MuBMAddressArray
Definition: L1MuBMAddressArray.h:50
L1MuBMAddressArray::station
unsigned short station(int stat) const
get address of a given station [1-4]
Definition: L1MuBMAddressArray.h:80
L1MuBMAddressArray::reset
void reset()
reset address array
Definition: L1MuBMAddressArray.cc:100
L1MuBMAddressArray::operator==
bool operator==(const L1MuBMAddressArray &) const
equal operator
Definition: L1MuBMAddressArray.cc:76
L1MuBMAddressArray::~L1MuBMAddressArray
virtual ~L1MuBMAddressArray()
destructor
Definition: L1MuBMAddressArray.cc:55
L1MuBMAddressArray::nextWheel
static bool nextWheel(unsigned short int adr)
is it a next wheel address?
Definition: L1MuBMAddressArray.cc:348
L1MuBMAddressArray::L1MuBMAddressArray
L1MuBMAddressArray()
default constructor
Definition: L1MuBMAddressArray.cc:43
L1MuBMAddressArray::trackAddressCode
int trackAddressCode() const
get track address code (for eta track finder)
Definition: L1MuBMAddressArray.cc:128
L1MuBMAddressArray::operator!=
bool operator!=(const L1MuBMAddressArray &) const
unequal operator
Definition: L1MuBMAddressArray.cc:88
L1MuBMAddressArray::operator<<
friend std::ostream & operator<<(std::ostream &, const L1MuBMAddressArray &)
output stream operator for address array
L1MuBMAddressArray::operator=
L1MuBMAddressArray & operator=(const L1MuBMAddressArray &)
assignment operator
Definition: L1MuBMAddressArray.cc:64
L1MuBMAddressArray::setStation
void setStation(int stat, int adr)
set address of a given station [1-4]
Definition: L1MuBMAddressArray.cc:109
L1MuBMAddressArray::m_station
unsigned short int m_station[4]
Definition: L1MuBMAddressArray.h:101
L1MuBMAddressArray::convert
static unsigned short int convert(unsigned short int adr)
convert address to corresponding VHDL addresse
Definition: L1MuBMAddressArray.cc:272
edm_modernize_messagelogger.stat
stat
Definition: edm_modernize_messagelogger.py:27
L1MuBMAddressArray::converted
L1MuBMAddressArray converted() const
get converted Addresses
Definition: L1MuBMAddressArray.cc:245