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
global_phi_data Class Reference

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

 global_phi_data ()
 
 global_phi_data (const unsigned short &us)
 
global_phi_dataoperator= (const unsigned short &us)
 
unsigned short toint () const
 

Public Attributes

unsigned short global_phi: 12
 
unsigned short spare: 4
 

Detailed Description

Definition at line 110 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

global_phi_data::global_phi_data ( )
inline

Definition at line 116 of file CSCTrackFinderDataTypes.h.

116  : global_phi(0),
117  spare(0) {};
global_phi_data::global_phi_data ( const unsigned short &  us)
inline

Definition at line 118 of file CSCTrackFinderDataTypes.h.

References operator=().

118 { this->operator=(us); }
global_phi_data & operator=(const unsigned short &us)

Member Function Documentation

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

Definition at line 53 of file CSCTrackFinderDataTypes.cc.

References global_phi.

Referenced by global_phi_data().

54 {
55  this->global_phi = ((1<<12)-1)&us;
56 
57  return *this;
58 }
unsigned short global_phi_data::toint ( ) const

Definition at line 92 of file CSCTrackFinderDataTypes.cc.

References global_phi.

93 {
94  unsigned short us = 0;
95  us = global_phi;
96  return us;
97 }

Member Data Documentation

unsigned short global_phi_data::global_phi

Definition at line 113 of file CSCTrackFinderDataTypes.h.

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

unsigned short global_phi_data::spare

Definition at line 114 of file CSCTrackFinderDataTypes.h.