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 54 of file CSCTrackFinderDataTypes.cc.

References global_phi.

Referenced by global_phi_data().

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

Definition at line 93 of file CSCTrackFinderDataTypes.cc.

References global_phi.

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

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.