CMS 3D CMS Logo

pt_data Class Reference

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

List of all members.

Public Member Functions

pt_dataoperator= (const unsigned short &)
 pt_data (const unsigned short &us)
 pt_data ()
unsigned short toint () const

Public Attributes

unsigned short charge_valid_front: 1
unsigned short charge_valid_rear: 1
unsigned short front_rank: 7
unsigned short rear_rank: 7


Detailed Description

Definition at line 121 of file CSCTrackFinderDataTypes.h.


Constructor & Destructor Documentation

pt_data::pt_data (  )  [inline]

Definition at line 129 of file CSCTrackFinderDataTypes.h.

00129 {};

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

Definition at line 130 of file CSCTrackFinderDataTypes.h.

References operator=().

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


Member Function Documentation

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

Definition at line 68 of file CSCTrackFinderDataTypes.cc.

References charge_valid_front, charge_valid_rear, front_rank, and rear_rank.

Referenced by pt_data().

00069 {
00070   this->front_rank         = ((1<<7)-1)&us;
00071   this->charge_valid_front = ((1<<1)-1)&(us>>7);
00072   this->rear_rank          = ((1<<7)-1)&(us>>8);
00073   this->charge_valid_rear  = ((1<<1)-1)&(us>>15);
00074   
00075   return *this;
00076 }

unsigned short pt_data::toint (  )  const

Definition at line 99 of file CSCTrackFinderDataTypes.cc.

References charge_valid_front, charge_valid_rear, front_rank, and rear_rank.

00100 {
00101   unsigned short us = 0;
00102   us = front_rank | (charge_valid_front << 7) | (rear_rank << 8) | (charge_valid_rear << 15);
00103   return us;
00104 }


Member Data Documentation

unsigned short pt_data::charge_valid_front

Definition at line 125 of file CSCTrackFinderDataTypes.h.

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

unsigned short pt_data::charge_valid_rear

Definition at line 127 of file CSCTrackFinderDataTypes.h.

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

unsigned short pt_data::front_rank

Definition at line 124 of file CSCTrackFinderDataTypes.h.

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

unsigned short pt_data::rear_rank

Definition at line 126 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