#include <CSCTrackFinderDataTypes.h>
Public Member Functions | |
local_phi_data () | |
local_phi_data (const unsigned short &us) | |
local_phi_data & | operator= (const unsigned short &us) |
unsigned short | toint () const |
Public Attributes | |
unsigned short | phi_bend_local: 6 |
unsigned short | phi_local: 10 |
Definition at line 95 of file CSCTrackFinderDataTypes.h.
local_phi_data::local_phi_data | ( | ) | [inline] |
Definition at line 101 of file CSCTrackFinderDataTypes.h.
: phi_local(0), phi_bend_local(0) {};
local_phi_data::local_phi_data | ( | const unsigned short & | us | ) | [inline] |
Definition at line 103 of file CSCTrackFinderDataTypes.h.
References operator=().
{ this->operator=(us); }
local_phi_data & local_phi_data::operator= | ( | const unsigned short & | us | ) |
Definition at line 45 of file CSCTrackFinderDataTypes.cc.
References phi_bend_local, and phi_local.
Referenced by local_phi_data().
{ this->phi_local = ((1<<10)-1)&us; this->phi_bend_local = ((1<<6)-1)&(us>>10); return *this; }
unsigned short local_phi_data::toint | ( | ) | const |
Definition at line 78 of file CSCTrackFinderDataTypes.cc.
References phi_bend_local, and phi_local.
{ unsigned short us = 0; us = (phi_local | (phi_bend_local << 10)); return us; }
unsigned short local_phi_data::phi_bend_local |
Definition at line 99 of file CSCTrackFinderDataTypes.h.
Referenced by operator=(), and toint().
unsigned short local_phi_data::phi_local |
Definition at line 98 of file CSCTrackFinderDataTypes.h.
Referenced by operator=(), and toint().