CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
global_phi_address Class Reference

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

 global_phi_address ()
 
 global_phi_address (const unsigned &u)
 
global_phi_addressoperator= (const unsigned &u)
 
unsigned toint () const
 

Public Attributes

unsigned int cscid: 4
 
unsigned int phi_local: 10
 
unsigned int wire_group: 5
 
unsigned int zero: 13
 

Detailed Description

Definition at line 23 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

global_phi_address::global_phi_address ( )
inline

Definition at line 30 of file CSCTrackFinderDataTypes.h.

global_phi_address::global_phi_address ( const unsigned &  u)
inline

Definition at line 31 of file CSCTrackFinderDataTypes.h.

References local_phi_address::operator=(), and local_phi_address::toint().

31 { this->operator=(u); }
global_phi_address & operator=(const unsigned &u)

Member Function Documentation

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

Definition at line 14 of file CSCTrackFinderDataTypes.cc.

14  {
15  this->phi_local = ((1 << 10) - 1) & u;
16  this->wire_group = ((1 << 5) - 1) & (u >> 10);
17  this->cscid = ((1 << 4) - 1) & (u >> 15);
18 
19  return *this;
20 }
unsigned global_phi_address::toint ( ) const

Definition at line 107 of file CSCTrackFinderDataTypes.cc.

107  {
108  unsigned u = 0;
109  u = phi_local | (wire_group << 10) | (cscid << 15);
110  return u;
111 }

Member Data Documentation

unsigned int global_phi_address::cscid

Definition at line 27 of file CSCTrackFinderDataTypes.h.

unsigned int global_phi_address::phi_local

Definition at line 25 of file CSCTrackFinderDataTypes.h.

unsigned int global_phi_address::wire_group

Definition at line 26 of file CSCTrackFinderDataTypes.h.

unsigned int global_phi_address::zero

Definition at line 28 of file CSCTrackFinderDataTypes.h.