CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTAddressArray.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
29 //
30 //--------------------------------------------------
31 #ifndef L1MUDT_ADDRESS_ARRAY_H
32 #define L1MUDT_ADDRESS_ARRAY_H
33 
34 //---------------
35 // C++ Headers --
36 //---------------
37 
38 #include <iosfwd>
39 
40 //----------------------
41 // Base Class Headers --
42 //----------------------
43 
44 //------------------------------------
45 // Collaborating Class Declarations --
46 //------------------------------------
47 
48 // ---------------------
49 // -- Class Interface --
50 // ---------------------
51 
53 
54  public:
55 
58 
61 
63  virtual ~L1MuDTAddressArray();
64 
67 
69  bool operator==(const L1MuDTAddressArray&) const;
70 
72  bool operator!=(const L1MuDTAddressArray&) const;
73 
75  void reset();
76 
78  void setStation(int stat, int adr);
79 
81  void setStations(int adr1, int adr2, int adr3, int adr4);
82 
84  inline unsigned short station(int stat) const { return m_station[stat-1]; }
85 
87  int trackAddressCode() const;
88 
91 
93  friend std::ostream& operator<<(std::ostream&, const L1MuDTAddressArray&);
94 
96  static unsigned short int convert(unsigned short int adr);
97 
99  static bool sameWheel(unsigned short int adr);
100 
102  static bool nextWheel(unsigned short int adr);
103 
104  private:
105 
106  unsigned short int m_station[4];
107 
108 };
109 
110 #endif
static bool sameWheel(unsigned short int adr)
is it a same wheel address?
int trackAddressCode() const
get track address code (for eta track finder)
friend std::ostream & operator<<(std::ostream &, const L1MuDTAddressArray &)
output stream operator for address array
void reset()
reset address array
L1MuDTAddressArray converted() const
get converted Addresses
static unsigned short int convert(unsigned short int adr)
convert address to corresponding VHDL addresse
unsigned short int m_station[4]
static bool nextWheel(unsigned short int adr)
is it a next wheel address?
bool operator==(const L1MuDTAddressArray &) const
equal operator
L1MuDTAddressArray()
default constructor
void setStations(int adr1, int adr2, int adr3, int adr4)
set addresses of all four stations
void setStation(int stat, int adr)
set address of a given station [1-4]
bool operator!=(const L1MuDTAddressArray &) const
unequal operator
unsigned short station(int stat) const
get address of a given station [1-4]
virtual ~L1MuDTAddressArray()
destructor
L1MuDTAddressArray & operator=(const L1MuDTAddressArray &)
assignment operator