#include <L1MuDTAddressArray.h>
Public Member Functions | |
L1MuDTAddressArray | converted () const |
get converted Addresses More... | |
L1MuDTAddressArray () | |
default constructor More... | |
L1MuDTAddressArray (const L1MuDTAddressArray &) | |
copy constructor More... | |
bool | operator!= (const L1MuDTAddressArray &) const |
unequal operator More... | |
L1MuDTAddressArray & | operator= (const L1MuDTAddressArray &) |
assignment operator More... | |
bool | operator== (const L1MuDTAddressArray &) 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 | ~L1MuDTAddressArray () |
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 L1MuDTAddressArray &) |
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 L1MuDTAddressArray.h.
L1MuDTAddressArray::L1MuDTAddressArray | ( | ) |
L1MuDTAddressArray::L1MuDTAddressArray | ( | const L1MuDTAddressArray & | addarray | ) |
|
virtual |
|
static |
convert address to corresponding VHDL addresse
Definition at line 272 of file L1MuDTAddressArray.cc.
Referenced by converted().
L1MuDTAddressArray L1MuDTAddressArray::converted | ( | ) | const |
get converted Addresses
Definition at line 245 of file L1MuDTAddressArray.cc.
References convert(), and setStations().
|
static |
is it a next wheel address?
Definition at line 348 of file L1MuDTAddressArray.cc.
bool L1MuDTAddressArray::operator!= | ( | const L1MuDTAddressArray & | addarray | ) | const |
L1MuDTAddressArray & L1MuDTAddressArray::operator= | ( | const L1MuDTAddressArray & | addarray | ) |
bool L1MuDTAddressArray::operator== | ( | const L1MuDTAddressArray & | addarray | ) | const |
void L1MuDTAddressArray::reset | ( | void | ) |
reset address array
Definition at line 100 of file L1MuDTAddressArray.cc.
References edm_modernize_messagelogger::stat.
Referenced by L1MuDTTrackAssembler::reset(), L1MuDTTrack::reset(), L1MuDTAssignmentUnit::reset(), and L1MuDTTrackAssembler::run().
|
static |
is it a same wheel address?
Definition at line 340 of file L1MuDTAddressArray.cc.
void L1MuDTAddressArray::setStation | ( | int | stat, |
int | adr | ||
) |
set address of a given station [1-4]
Definition at line 109 of file L1MuDTAddressArray.cc.
References edm_modernize_messagelogger::stat.
Referenced by L1MuDTTrackAssembler::run().
void L1MuDTAddressArray::setStations | ( | int | adr1, |
int | adr2, | ||
int | adr3, | ||
int | adr4 | ||
) |
set addresses of all four stations
Definition at line 118 of file L1MuDTAddressArray.cc.
Referenced by converted(), L1MuDTTrackAssembler::runAddressAssignment1(), and L1MuDTTrackAssembler::runAddressAssignment2().
|
inline |
get address of a given station [1-4]
Definition at line 80 of file L1MuDTAddressArray.h.
References m_station, and edm_modernize_messagelogger::stat.
Referenced by L1MuDTTrackAssembler::address(), L1MuDTTrack::address(), L1MuDTAssignmentUnit::getPtMethod(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), operator<<(), L1MuDTTrackAssembler::run(), and L1MuDTAssignmentUnit::TSR().
int L1MuDTAddressArray::trackAddressCode | ( | ) | const |
get track address code (for eta track finder)
Definition at line 128 of file L1MuDTAddressArray.cc.
References indexGen::s2.
|
friend |
output stream operator for address array
|
private |
Definition at line 101 of file L1MuDTAddressArray.h.
Referenced by L1MuDTAddressArray(), operator!=(), operator=(), operator==(), and station().