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){};

◆ global_phi_data() [2/2]

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

Definition at line 92 of file CSCTrackFinderDataTypes.h.

92 { this->operator=(us); }

References operator=().

Member Function Documentation

◆ operator=()

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

Definition at line 49 of file CSCTrackFinderDataTypes.cc.

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

References global_phi.

Referenced by global_phi_data().

◆ toint()

unsigned short global_phi_data::toint ( ) const

Definition at line 83 of file CSCTrackFinderDataTypes.cc.

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

References 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.

global_phi_data::global_phi
unsigned short global_phi
Definition: CSCTrackFinderDataTypes.h:88
global_phi_data::spare
unsigned short spare
Definition: CSCTrackFinderDataTypes.h:89
global_phi_data::operator=
global_phi_data & operator=(const unsigned short &us)
Definition: CSCTrackFinderDataTypes.cc:49