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

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

 global_eta_address ()
 
 global_eta_address (const unsigned &u)
 
global_eta_addressoperator= (const unsigned &u)
 
unsigned toint () const
 

Public Attributes

unsigned int cscid: 4
 
unsigned int phi_bend: 6
 
unsigned int phi_local: 2
 
unsigned int wire_group: 7
 
unsigned int zero: 13
 

Detailed Description

Definition at line 38 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

global_eta_address::global_eta_address ( )
inline

Definition at line 46 of file CSCTrackFinderDataTypes.h.

global_eta_address::global_eta_address ( const unsigned &  u)
inline

Definition at line 47 of file CSCTrackFinderDataTypes.h.

References operator=().

47 { this->operator=(u); }
global_eta_address & operator=(const unsigned &u)

Member Function Documentation

global_eta_address & global_eta_address::operator= ( const unsigned &  u)

Definition at line 22 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_bend, phi_local, and wire_group.

Referenced by global_eta_address().

22  {
23  this->phi_bend = ((1 << 6) - 1) & u;
24  this->phi_local = ((1 << 2) - 1) & (u >> 6);
25  this->wire_group = ((1 << 7) - 1) & (u >> 8);
26  this->cscid = ((1 << 4) - 1) & (u >> 15);
27 
28  return *this;
29 }
unsigned global_eta_address::toint ( ) const

Definition at line 101 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_bend, phi_local, and wire_group.

101  {
102  unsigned u = 0;
103  u = phi_bend | (phi_local << 6) | (wire_group << 8) | (cscid << 15);
104  return u;
105 }

Member Data Documentation

unsigned int global_eta_address::cscid

Definition at line 43 of file CSCTrackFinderDataTypes.h.

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

unsigned int global_eta_address::phi_bend

Definition at line 40 of file CSCTrackFinderDataTypes.h.

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

unsigned int global_eta_address::phi_local

Definition at line 41 of file CSCTrackFinderDataTypes.h.

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

unsigned int global_eta_address::wire_group

Definition at line 42 of file CSCTrackFinderDataTypes.h.

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

unsigned int global_eta_address::zero

Definition at line 44 of file CSCTrackFinderDataTypes.h.