CMS 3D CMS Logo

Public Member Functions | Public Attributes

pt_address Class Reference

#include <CSCTrackFinderDataTypes.h>

List of all members.

Public Member Functions

unsigned delta_phi () const
pt_addressoperator= (const unsigned &)
 pt_address (const unsigned &us)
 pt_address ()
unsigned toint () const

Public Attributes

unsigned int delta_phi_12: 8
unsigned int delta_phi_23: 4
unsigned int delta_phi_sign: 1
unsigned int track_eta: 4
unsigned int track_fr: 1
unsigned int track_mode: 4

Detailed Description

Definition at line 70 of file CSCTrackFinderDataTypes.h.


Constructor & Destructor Documentation

pt_address::pt_address ( ) [inline]

Definition at line 80 of file CSCTrackFinderDataTypes.h.

pt_address::pt_address ( const unsigned &  us) [inline]

Definition at line 86 of file CSCTrackFinderDataTypes.h.

References operator=().

{ this->operator=(us); }

Member Function Documentation

unsigned pt_address::delta_phi ( ) const

Definition at line 134 of file CSCTrackFinderDataTypes.cc.

References delta_phi_12, and delta_phi_23.

{
  return ( delta_phi_12 | (delta_phi_23 << 8) );
}
pt_address & pt_address::operator= ( const unsigned &  u)

Definition at line 33 of file CSCTrackFinderDataTypes.cc.

References delta_phi_12, delta_phi_23, delta_phi_sign, track_eta, track_fr, and track_mode.

Referenced by pt_address().

{
  this->delta_phi_12   = ((1<<8)-1)&u;
  this->delta_phi_23   = ((1<<4)-1)&(u>>8);
  this->track_eta      = ((1<<4)-1)&(u>>12);
  this->track_mode     = ((1<<4)-1)&(u>>16);
  this->delta_phi_sign = ((1<<1)-1)&(u>>20);
  this->track_fr       = ((1<<1)-1)&(u>>21);
  
  return *this;
}
unsigned pt_address::toint ( ) const

Definition at line 127 of file CSCTrackFinderDataTypes.cc.

References delta_phi_12, delta_phi_23, delta_phi_sign, track_eta, track_fr, and track_mode.

{
  unsigned u = 0;
  u = delta_phi_12 | (delta_phi_23 << 8) | (track_eta << 12) | (track_mode << 16) | (delta_phi_sign << 20) | (track_fr << 21);
  return u;
}

Member Data Documentation

Definition at line 73 of file CSCTrackFinderDataTypes.h.

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

Definition at line 74 of file CSCTrackFinderDataTypes.h.

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

Definition at line 77 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_eta

Definition at line 75 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_fr

Definition at line 78 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_mode

Definition at line 76 of file CSCTrackFinderDataTypes.h.

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