CMS 3D CMS Logo

Public Member Functions | Public Attributes

global_phi_address Class Reference

#include <CSCTrackFinderDataTypes.h>

List of all members.

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


Constructor & Destructor Documentation

global_phi_address::global_phi_address ( ) [inline]

Definition at line 38 of file CSCTrackFinderDataTypes.h.

                      : phi_local(0), 
                        wire_group(0), 
                        cscid(0), 
                        zero(0) {};
global_phi_address::global_phi_address ( const unsigned &  u) [inline]

Definition at line 42 of file CSCTrackFinderDataTypes.h.

References operator=().

{ this->operator=(u); }

Member Function Documentation

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

Definition at line 14 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_local, and wire_group.

Referenced by global_phi_address().

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

Definition at line 120 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_local, and wire_group.

{
  unsigned u = 0;
  u = phi_local | (wire_group << 10) | (cscid << 15);
  return u;
}

Member Data Documentation

Definition at line 35 of file CSCTrackFinderDataTypes.h.

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

Definition at line 33 of file CSCTrackFinderDataTypes.h.

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

Definition at line 34 of file CSCTrackFinderDataTypes.h.

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

Definition at line 36 of file CSCTrackFinderDataTypes.h.