CMS 3D CMS Logo

local_phi_address Class Reference

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

List of all members.

Public Member Functions

 local_phi_address (const unsigned &u)
 local_phi_address ()
local_phi_addressoperator= (const unsigned &u)
unsigned toint () const

Public Attributes

unsigned int clct_pattern: 3
unsigned int lr: 1
unsigned int pattern_type: 1
unsigned int quality: 4
unsigned int spare: 2
unsigned int strip: 8
unsigned int zero: 13


Detailed Description

Definition at line 5 of file CSCTrackFinderDataTypes.h.


Constructor & Destructor Documentation

local_phi_address::local_phi_address (  )  [inline]

Definition at line 16 of file CSCTrackFinderDataTypes.h.

00016 {};

local_phi_address::local_phi_address ( const unsigned &  u  )  [inline]

Definition at line 17 of file CSCTrackFinderDataTypes.h.

References operator=().

00017 { this->operator=(u); }


Member Function Documentation

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

Definition at line 3 of file CSCTrackFinderDataTypes.cc.

References clct_pattern, lr, pattern_type, quality, and strip.

Referenced by local_phi_address().

00004 {
00005   this->strip = ((1<<8)-1)&u;
00006   this->clct_pattern = ((1<<3)-1)&(u>>8);
00007   this->pattern_type = 1&(u>>11);
00008   this->quality = ((1<<4)-1)&(u>>12);
00009   this->lr = 1&(u>>16);
00010   
00011   return *this;
00012 }

unsigned local_phi_address::toint (  )  const

Definition at line 106 of file CSCTrackFinderDataTypes.cc.

References clct_pattern, lr, pattern_type, quality, and strip.

00107 {
00108   unsigned u = 0;
00109   u = strip | (clct_pattern << 8) | (pattern_type << 11) | (quality << 12) | (lr << 16);
00110   return u;
00111 }


Member Data Documentation

unsigned int local_phi_address::clct_pattern

Definition at line 9 of file CSCTrackFinderDataTypes.h.

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

unsigned int local_phi_address::lr

Definition at line 12 of file CSCTrackFinderDataTypes.h.

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

unsigned int local_phi_address::pattern_type

Definition at line 10 of file CSCTrackFinderDataTypes.h.

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

unsigned int local_phi_address::quality

Definition at line 11 of file CSCTrackFinderDataTypes.h.

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

unsigned int local_phi_address::spare

Definition at line 13 of file CSCTrackFinderDataTypes.h.

unsigned int local_phi_address::strip

Definition at line 8 of file CSCTrackFinderDataTypes.h.

Referenced by CSCSectorReceiverLUT::localPhi(), operator=(), and toint().

unsigned int local_phi_address::zero

Definition at line 14 of file CSCTrackFinderDataTypes.h.


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