#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 272 of file L1MuBMAddressArray.cc.
Referenced by converted().
L1MuBMAddressArray L1MuBMAddressArray::converted | ( | ) | const |
get converted Addresses
Definition at line 245 of file L1MuBMAddressArray.cc.
References convert(), and setStations().
|
static |
is it a next wheel address?
Definition at line 348 of file L1MuBMAddressArray.cc.
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 100 of file L1MuBMAddressArray.cc.
References edm_modernize_messagelogger::stat.
Referenced by L1MuBMTrackAssembler::reset(), L1MuBMAssignmentUnit::reset(), L1MuBMTrack::reset(), and L1MuBMTrackAssembler::run().
|
static |
is it a same wheel address?
Definition at line 340 of file L1MuBMAddressArray.cc.
void L1MuBMAddressArray::setStation | ( | int | stat, |
int | adr | ||
) |
set address of a given station [1-4]
Definition at line 109 of file L1MuBMAddressArray.cc.
References edm_modernize_messagelogger::stat.
Referenced by L1MuBMTrackAssembler::run().
void L1MuBMAddressArray::setStations | ( | int | adr1, |
int | adr2, | ||
int | adr3, | ||
int | adr4 | ||
) |
set addresses of all four stations
Definition at line 118 of file L1MuBMAddressArray.cc.
Referenced by converted(), L1MuBMTrackAssembler::runAddressAssignment1(), and L1MuBMTrackAssembler::runAddressAssignment2().
|
inline |
get address of a given station [1-4]
Definition at line 80 of file L1MuBMAddressArray.h.
References m_station, and edm_modernize_messagelogger::stat.
Referenced by L1MuBMTrackAssembler::address(), L1MuBMTrack::address(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), operator<<(), L1MuBMTrackAssembler::run(), and L1MuBMAssignmentUnit::TSR().
int L1MuBMAddressArray::trackAddressCode | ( | ) | const |
|
friend |
output stream operator for address array
|
private |
Definition at line 101 of file L1MuBMAddressArray.h.
Referenced by L1MuBMAddressArray(), operator!=(), operator=(), operator==(), and station().