CMS 3D CMS Logo

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

Constructor & Destructor Documentation

global_eta_address::global_eta_address ( )
inline

Definition at line 58 of file CSCTrackFinderDataTypes.h.

58  : phi_bend(0),
59  phi_local(0),
60  wire_group(0),
61  cscid(0),
62  zero(0) {};
global_eta_address::global_eta_address ( const unsigned &  u)
inline

Definition at line 63 of file CSCTrackFinderDataTypes.h.

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

63 { 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 24 of file CSCTrackFinderDataTypes.cc.

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

Definition at line 114 of file CSCTrackFinderDataTypes.cc.

115 {
116  unsigned u = 0;
117  u = phi_bend | (phi_local << 6) | (wire_group << 8) | (cscid << 15);
118  return u;
119 }

Member Data Documentation

unsigned int global_eta_address::cscid

Definition at line 55 of file CSCTrackFinderDataTypes.h.

unsigned int global_eta_address::phi_bend

Definition at line 52 of file CSCTrackFinderDataTypes.h.

unsigned int global_eta_address::phi_local

Definition at line 53 of file CSCTrackFinderDataTypes.h.

unsigned int global_eta_address::wire_group

Definition at line 54 of file CSCTrackFinderDataTypes.h.

unsigned int global_eta_address::zero

Definition at line 56 of file CSCTrackFinderDataTypes.h.