CMS 3D CMS Logo

pt_address Class Reference

#include <L1Trigger/CSCTrackFinder/interface/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 57 of file CSCTrackFinderDataTypes.h.


Constructor & Destructor Documentation

pt_address::pt_address (  )  [inline]

Definition at line 67 of file CSCTrackFinderDataTypes.h.

00067 {};

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

Definition at line 68 of file CSCTrackFinderDataTypes.h.

References operator=().

00068 { 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.

00135 {
00136   return ( delta_phi_12 | (delta_phi_23 << 8) );
00137 }

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().

00034 {
00035   this->delta_phi_12   = ((1<<8)-1)&u;
00036   this->delta_phi_23   = ((1<<4)-1)&(u>>8);
00037   this->track_eta      = ((1<<4)-1)&(u>>12);
00038   this->track_mode     = ((1<<4)-1)&(u>>16);
00039   this->delta_phi_sign = ((1<<1)-1)&(u>>20);
00040   this->track_fr       = ((1<<1)-1)&(u>>21);
00041   
00042   return *this;
00043 }

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.

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


Member Data Documentation

unsigned int pt_address::delta_phi_12

Definition at line 60 of file CSCTrackFinderDataTypes.h.

Referenced by delta_phi(), operator=(), CSCTFPtLUT::Pt(), CSCTFSPCoreLogic::run(), and toint().

unsigned int pt_address::delta_phi_23

Definition at line 61 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::delta_phi_sign

Definition at line 64 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_eta

Definition at line 62 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_fr

Definition at line 65 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_mode

Definition at line 63 of file CSCTrackFinderDataTypes.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:23 2009 for CMSSW by  doxygen 1.5.4