CMS 3D CMS Logo

local_phi_data Class Reference

Data Types. More...

#include <L1Trigger/CSCTrackFinder/interface/CSCTrackFinderDataTypes.h>

List of all members.

Public Member Functions

 local_phi_data (const unsigned short &us)
 local_phi_data ()
local_phi_dataoperator= (const unsigned short &us)
unsigned short toint () const

Public Attributes

unsigned short phi_bend_local: 6
unsigned short phi_local: 10


Detailed Description

Data Types.

Definition at line 77 of file CSCTrackFinderDataTypes.h.


Constructor & Destructor Documentation

local_phi_data::local_phi_data (  )  [inline]

Definition at line 83 of file CSCTrackFinderDataTypes.h.

00083 {};

local_phi_data::local_phi_data ( const unsigned short &  us  )  [inline]

Definition at line 84 of file CSCTrackFinderDataTypes.h.

References operator=().

00084 { this->operator=(us); }


Member Function Documentation

local_phi_data & local_phi_data::operator= ( const unsigned short &  us  ) 

Definition at line 45 of file CSCTrackFinderDataTypes.cc.

References phi_bend_local, and phi_local.

Referenced by local_phi_data().

00046 {
00047   this->phi_local = ((1<<10)-1)&us;
00048   this->phi_bend_local = ((1<<6)-1)&(us>>10);
00049   
00050   return *this;
00051 }

unsigned short local_phi_data::toint (  )  const

Definition at line 78 of file CSCTrackFinderDataTypes.cc.

References phi_bend_local, and phi_local.

00079 {
00080   unsigned short us = 0;
00081   us = (phi_local | (phi_bend_local << 10));
00082   return us;
00083 }


Member Data Documentation

unsigned short local_phi_data::phi_bend_local

Definition at line 81 of file CSCTrackFinderDataTypes.h.

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

unsigned short local_phi_data::phi_local

Definition at line 80 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:27:53 2009 for CMSSW by  doxygen 1.5.4