CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 73 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

local_phi_data::local_phi_data ( )
inline

Definition at line 78 of file CSCTrackFinderDataTypes.h.

78 : phi_local(0), 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 79 of file CSCTrackFinderDataTypes.h.

References operator=().

79 { 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 42 of file CSCTrackFinderDataTypes.cc.

References phi_bend_local, and phi_local.

Referenced by local_phi_data().

42  {
43  this->phi_local = ((1 << 10) - 1) & us;
44  this->phi_bend_local = ((1 << 6) - 1) & (us >> 10);
45 
46  return *this;
47 }
unsigned short phi_bend_local
unsigned short phi_local
unsigned short local_phi_data::toint ( ) const

Definition at line 71 of file CSCTrackFinderDataTypes.cc.

References phi_bend_local, and phi_local.

71  {
72  unsigned short us = 0;
73  us = (phi_local | (phi_bend_local << 10));
74  return us;
75 }
unsigned short phi_bend_local
unsigned short phi_local

Member Data Documentation

unsigned short local_phi_data::phi_bend_local

Definition at line 76 of file CSCTrackFinderDataTypes.h.

Referenced by operator=(), and toint().

unsigned short local_phi_data::phi_local

Definition at line 75 of file CSCTrackFinderDataTypes.h.

Referenced by operator=(), and toint().