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

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

 global_eta_data ()
 
 global_eta_data (const unsigned short &us)
 
global_eta_dataoperator= (const unsigned short &us)
 
unsigned short toint () const
 

Public Attributes

unsigned short global_bend: 5
 
unsigned short global_eta: 7
 
unsigned short spare: 4
 

Detailed Description

Definition at line 99 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

global_eta_data::global_eta_data ( )
inline

Definition at line 105 of file CSCTrackFinderDataTypes.h.

105 : global_eta(0), global_bend(0), spare(0){};
unsigned short global_bend
global_eta_data::global_eta_data ( const unsigned short &  us)
inline

Definition at line 106 of file CSCTrackFinderDataTypes.h.

References operator=().

106 { this->operator=(us); }
global_eta_data & operator=(const unsigned short &us)

Member Function Documentation

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

Definition at line 55 of file CSCTrackFinderDataTypes.cc.

References global_bend, and global_eta.

Referenced by global_eta_data().

55  {
56  this->global_eta = ((1 << 7) - 1) & us;
57  this->global_bend = ((1 << 5) - 1) & (us >> 7);
58 
59  return *this;
60 }
unsigned short global_bend
unsigned short global_eta_data::toint ( ) const

Definition at line 77 of file CSCTrackFinderDataTypes.cc.

References global_bend, and global_eta.

77  {
78  unsigned short us = 0;
79  us = (global_eta | (global_bend << 7));
80  return us;
81 }
unsigned short global_bend

Member Data Documentation

unsigned short global_eta_data::global_bend

Definition at line 102 of file CSCTrackFinderDataTypes.h.

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

unsigned short global_eta_data::global_eta

Definition at line 101 of file CSCTrackFinderDataTypes.h.

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

unsigned short global_eta_data::spare

Definition at line 103 of file CSCTrackFinderDataTypes.h.