CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Friends
L1MuBMAddressArray Class Reference

#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...
 
L1MuBMAddressArrayoperator= (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...
 

Detailed Description

Array of relative addresses

Array of 4 relative addresses (one per station);<BR>
the valid range of a relative address is 0 - 11
thus a relative address is a 4 bit word;<BR>
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.

Constructor & Destructor Documentation

L1MuBMAddressArray::L1MuBMAddressArray ( )

default constructor

Definition at line 43 of file L1MuBMAddressArray.cc.

L1MuBMAddressArray::L1MuBMAddressArray ( const L1MuBMAddressArray addarray)

copy constructor

Definition at line 50 of file L1MuBMAddressArray.cc.

L1MuBMAddressArray::~L1MuBMAddressArray ( )
virtual

destructor

Definition at line 63 of file L1MuBMAddressArray.cc.

Member Function Documentation

unsigned short int L1MuBMAddressArray::convert ( unsigned short int  adr)
static

convert address to corresponding VHDL addresse

Definition at line 259 of file L1MuBMAddressArray.cc.

L1MuBMAddressArray L1MuBMAddressArray::converted ( ) const

get converted Addresses

Definition at line 226 of file L1MuBMAddressArray.cc.

bool L1MuBMAddressArray::nextWheel ( unsigned short int  adr)
static

is it a next wheel address?

Definition at line 300 of file L1MuBMAddressArray.cc.

bool L1MuBMAddressArray::operator!= ( const L1MuBMAddressArray addarray) const

unequal operator

Definition at line 102 of file L1MuBMAddressArray.cc.

L1MuBMAddressArray & L1MuBMAddressArray::operator= ( const L1MuBMAddressArray addarray)

assignment operator

Definition at line 73 of file L1MuBMAddressArray.cc.

bool L1MuBMAddressArray::operator== ( const L1MuBMAddressArray addarray) const

equal operator

Definition at line 88 of file L1MuBMAddressArray.cc.

void L1MuBMAddressArray::reset ( void  )

reset address array

Definition at line 116 of file L1MuBMAddressArray.cc.

bool L1MuBMAddressArray::sameWheel ( unsigned short int  adr)
static

is it a same wheel address?

Definition at line 289 of file L1MuBMAddressArray.cc.

void L1MuBMAddressArray::setStation ( int  stat,
int  adr 
)

set address of a given station [1-4]

Definition at line 128 of file L1MuBMAddressArray.cc.

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.

unsigned short L1MuBMAddressArray::station ( int  stat) const
inline

get address of a given station [1-4]

Definition at line 82 of file L1MuBMAddressArray.h.

References m_station.

Referenced by L1MuBMTrackAssembler::address().

82 { return m_station[stat-1]; }
unsigned short int m_station[4]
int L1MuBMAddressArray::trackAddressCode ( ) const

get track address code (for eta track finder)

Definition at line 153 of file L1MuBMAddressArray.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const L1MuBMAddressArray  
)
friend

output stream operator for address array

Member Data Documentation

unsigned short int L1MuBMAddressArray::m_station[4]
private

Definition at line 104 of file L1MuBMAddressArray.h.

Referenced by station().