#include <L1MuBMAddressArray.h>
Public Member Functions | |
L1MuBMAddressArray | converted () const |
get converted Addresses More... | |
L1MuBMAddressArray () | |
default constructor More... | |
L1MuBMAddressArray (const L1MuBMAddressArray &) | |
copy constructor More... | |
bool | operator!= (const L1MuBMAddressArray &) const |
unequal operator More... | |
L1MuBMAddressArray & | operator= (const L1MuBMAddressArray &) |
assignment operator More... | |
bool | operator== (const L1MuBMAddressArray &) const |
equal operator More... | |
void | reset () |
reset address array More... | |
void | setStation (int stat, int adr) |
set address of a given station [1-4] More... | |
void | setStations (int adr1, int adr2, int adr3, int adr4) |
set addresses of all four stations More... | |
unsigned short | station (int stat) const |
get address of a given station [1-4] More... | |
int | trackAddressCode () const |
get track address code (for eta track finder) More... | |
virtual | ~L1MuBMAddressArray () |
destructor More... | |
Static Public Member Functions | |
static unsigned short int | convert (unsigned short int adr) |
convert address to corresponding VHDL addresse More... | |
static bool | nextWheel (unsigned short int adr) |
is it a next wheel address? More... | |
static bool | sameWheel (unsigned short int adr) |
is it a same wheel address? More... | |
Private Attributes | |
unsigned short int | m_station [4] |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1MuBMAddressArray &) |
output stream operator for address array More... | |
Array of relative addresses
Array of 4 relative addresses (one per station);
the valid range of a relative address is 0 - 11 thus a relative address is a 4 bit word;
address = 15 indicates a negative extrapolation result
* ------------------------ * | 4 5 | 6 7 | * P ------------+----------- * H | 0 1 | 2 3 | * I ------------+----------- * | 8 9 | 10 11 | * ------------+----------- * my Wheel next Wheel *
N. Neumeister CERN EP
Definition at line 50 of file L1MuBMAddressArray.h.
L1MuBMAddressArray::L1MuBMAddressArray | ( | ) |
L1MuBMAddressArray::L1MuBMAddressArray | ( | const L1MuBMAddressArray & | addarray | ) |
|
virtual |
|
static |
convert address to corresponding VHDL addresse
Definition at line 259 of file L1MuBMAddressArray.cc.
Referenced by converted(), and station().
L1MuBMAddressArray L1MuBMAddressArray::converted | ( | ) | const |
get converted Addresses
Definition at line 226 of file L1MuBMAddressArray.cc.
References convert(), and setStations().
Referenced by station().
|
static |
is it a next wheel address?
Definition at line 300 of file L1MuBMAddressArray.cc.
Referenced by station().
bool L1MuBMAddressArray::operator!= | ( | const L1MuBMAddressArray & | addarray | ) | const |
L1MuBMAddressArray & L1MuBMAddressArray::operator= | ( | const L1MuBMAddressArray & | addarray | ) |
bool L1MuBMAddressArray::operator== | ( | const L1MuBMAddressArray & | addarray | ) | const |
void L1MuBMAddressArray::reset | ( | void | ) |
reset address array
Definition at line 116 of file L1MuBMAddressArray.cc.
Referenced by L1MuBMTrackAssembler::reset(), L1MuBMAssignmentUnit::reset(), L1MuBMTrack::reset(), and L1MuBMTrackAssembler::run().
|
static |
is it a same wheel address?
Definition at line 289 of file L1MuBMAddressArray.cc.
Referenced by station().
void L1MuBMAddressArray::setStation | ( | int | stat, |
int | adr | ||
) |
set address of a given station [1-4]
Definition at line 128 of file L1MuBMAddressArray.cc.
Referenced by L1MuBMTrackAssembler::run().
void L1MuBMAddressArray::setStations | ( | int | adr1, |
int | adr2, | ||
int | adr3, | ||
int | adr4 | ||
) |
set addresses of all four stations
Definition at line 140 of file L1MuBMAddressArray.cc.
Referenced by converted(), L1MuBMTrackAssembler::runAddressAssignment1(), and L1MuBMTrackAssembler::runAddressAssignment2().
|
inline |
get address of a given station [1-4]
Definition at line 82 of file L1MuBMAddressArray.h.
References convert(), converted(), m_station, nextWheel(), operator<<, sameWheel(), and trackAddressCode().
Referenced by L1MuBMTrackAssembler::address(), L1MuBMTrack::address(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), operator<<(), L1MuBMTrackAssembler::run(), and L1MuBMAssignmentUnit::TSR().
int L1MuBMAddressArray::trackAddressCode | ( | ) | const |
get track address code (for eta track finder)
Definition at line 153 of file L1MuBMAddressArray.cc.
References indexGen::s2.
Referenced by L1MuBMEtaProcessor::receiveAddresses(), and station().
|
friend |
output stream operator for address array
Referenced by station().
|
private |
Definition at line 104 of file L1MuBMAddressArray.h.
Referenced by L1MuBMAddressArray(), operator!=(), operator=(), operator==(), and station().