CMS 3D CMS Logo

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 86 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

◆ global_phi_data() [1/2]

global_phi_data::global_phi_data ( )
inline

Definition at line 91 of file CSCTrackFinderDataTypes.h.

91 : global_phi(0), spare(0){};
unsigned short global_phi

◆ global_phi_data() [2/2]

global_phi_data::global_phi_data ( const unsigned short &  us)
inline

Definition at line 92 of file CSCTrackFinderDataTypes.h.

References operator=().

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

Member Function Documentation

◆ operator=()

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

Definition at line 49 of file CSCTrackFinderDataTypes.cc.

References global_phi.

Referenced by global_phi_data().

49  {
50  this->global_phi = ((1 << 12) - 1) & us;
51 
52  return *this;
53 }
unsigned short global_phi

◆ toint()

unsigned short global_phi_data::toint ( ) const

Definition at line 83 of file CSCTrackFinderDataTypes.cc.

References global_phi.

83  {
84  unsigned short us = 0;
85  us = global_phi;
86  return us;
87 }
unsigned short global_phi

Member Data Documentation

◆ global_phi

unsigned short global_phi_data::global_phi

Definition at line 88 of file CSCTrackFinderDataTypes.h.

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

◆ spare

unsigned short global_phi_data::spare

Definition at line 89 of file CSCTrackFinderDataTypes.h.