test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
52  public:
53 
56 
59 
61  virtual ~L1MuBMAddressArray();
62 
65 
67  bool operator==(const L1MuBMAddressArray&) const;
68 
70  bool operator!=(const L1MuBMAddressArray&) const;
71 
73  void reset();
74 
76  void setStation(int stat, int adr);
77 
79  void setStations(int adr1, int adr2, int adr3, int adr4);
80 
82  inline unsigned short station(int stat) const { return m_station[stat-1]; }
83 
85  int trackAddressCode() const;
86 
89 
91  friend std::ostream& operator<<(std::ostream&, const L1MuBMAddressArray&);
92 
94  static unsigned short int convert(unsigned short int adr);
95 
97  static bool sameWheel(unsigned short int adr);
98 
100  static bool nextWheel(unsigned short int adr);
101 
102  private:
103 
104  unsigned short int m_station[4];
105 
106 };
107 
108 #endif
friend std::ostream & operator<<(std::ostream &, const L1MuBMAddressArray &)
output stream operator for address array
int trackAddressCode() const
get track address code (for eta track finder)
bool operator!=(const L1MuBMAddressArray &) const
unequal operator
unsigned short station(int stat) const
get address of a given station [1-4]
static unsigned short int convert(unsigned short int adr)
convert address to corresponding VHDL addresse
L1MuBMAddressArray converted() const
get converted Addresses
static bool nextWheel(unsigned short int adr)
is it a next wheel address?
L1MuBMAddressArray()
default constructor
void setStations(int adr1, int adr2, int adr3, int adr4)
set addresses of all four stations
static bool sameWheel(unsigned short int adr)
is it a same wheel address?
L1MuBMAddressArray & operator=(const L1MuBMAddressArray &)
assignment operator
bool operator==(const L1MuBMAddressArray &) const
equal operator
void reset()
reset address array
void setStation(int stat, int adr)
set address of a given station [1-4]
virtual ~L1MuBMAddressArray()
destructor
unsigned short int m_station[4]