CMS 3D CMS Logo

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

Data Types. More...

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

 local_phi_data ()
 
 local_phi_data (const unsigned short &us)
 
local_phi_dataoperator= (const unsigned short &us)
 
unsigned short toint () const
 

Public Attributes

unsigned short phi_bend_local: 6
 
unsigned short phi_local: 10
 

Detailed Description

Data Types.

Definition at line 95 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

local_phi_data::local_phi_data ( )
inline

Definition at line 101 of file CSCTrackFinderDataTypes.h.

101  : phi_local(0),
102  phi_bend_local(0) {};
unsigned short phi_bend_local
unsigned short phi_local
local_phi_data::local_phi_data ( const unsigned short &  us)
inline

Definition at line 103 of file CSCTrackFinderDataTypes.h.

References operator=().

103 { this->operator=(us); }
local_phi_data & operator=(const unsigned short &us)

Member Function Documentation

local_phi_data & local_phi_data::operator= ( const unsigned short &  us)

Definition at line 46 of file CSCTrackFinderDataTypes.cc.

References phi_bend_local, and phi_local.

Referenced by local_phi_data().

47 {
48  this->phi_local = ((1<<10)-1)&us;
49  this->phi_bend_local = ((1<<6)-1)&(us>>10);
50 
51  return *this;
52 }
unsigned short phi_bend_local
unsigned short phi_local
unsigned short local_phi_data::toint ( ) const

Definition at line 79 of file CSCTrackFinderDataTypes.cc.

References phi_bend_local, and phi_local.

80 {
81  unsigned short us = 0;
82  us = (phi_local | (phi_bend_local << 10));
83  return us;
84 }
unsigned short phi_bend_local
unsigned short phi_local

Member Data Documentation

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().