#include <CSCTrackFinderDataTypes.h>
Public Member Functions | |
global_phi_address () | |
global_phi_address (const unsigned &u) | |
global_phi_address & | operator= (const unsigned &u) |
unsigned | toint () const |
Public Attributes | |
unsigned int | cscid: 4 |
unsigned int | phi_local: 10 |
unsigned int | wire_group: 5 |
unsigned int | zero: 13 |
Definition at line 30 of file CSCTrackFinderDataTypes.h.
global_phi_address::global_phi_address | ( | ) | [inline] |
Definition at line 38 of file CSCTrackFinderDataTypes.h.
: phi_local(0), wire_group(0), cscid(0), zero(0) {};
global_phi_address::global_phi_address | ( | const unsigned & | u | ) | [inline] |
Definition at line 42 of file CSCTrackFinderDataTypes.h.
References operator=().
{ this->operator=(u); }
global_phi_address & global_phi_address::operator= | ( | const unsigned & | u | ) |
Definition at line 14 of file CSCTrackFinderDataTypes.cc.
References cscid, phi_local, and wire_group.
Referenced by global_phi_address().
{ this->phi_local = ((1<<10)-1)&u; this->wire_group = ((1<<5)-1)&(u>>10); this->cscid = ((1<<4)-1)&(u>>15); return *this; }
unsigned global_phi_address::toint | ( | ) | const |
Definition at line 120 of file CSCTrackFinderDataTypes.cc.
References cscid, phi_local, and wire_group.
{ unsigned u = 0; u = phi_local | (wire_group << 10) | (cscid << 15); return u; }
unsigned int global_phi_address::cscid |
Definition at line 35 of file CSCTrackFinderDataTypes.h.
Referenced by operator=(), and toint().
unsigned int global_phi_address::phi_local |
Definition at line 33 of file CSCTrackFinderDataTypes.h.
Referenced by operator=(), and toint().
unsigned int global_phi_address::wire_group |
Definition at line 34 of file CSCTrackFinderDataTypes.h.
Referenced by operator=(), and toint().
unsigned int global_phi_address::zero |
Definition at line 36 of file CSCTrackFinderDataTypes.h.