CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
pt_data Class Reference

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

pt_dataoperator= (const unsigned short &)
 
 pt_data ()
 
 pt_data (const unsigned short &us)
 
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 143 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

pt_data::pt_data ( )
inline

Definition at line 151 of file CSCTrackFinderDataTypes.h.

151  : front_rank(0),
153  rear_rank(0),
154  charge_valid_rear(0) {};
unsigned short front_rank
unsigned short charge_valid_rear
unsigned short rear_rank
unsigned short charge_valid_front
pt_data::pt_data ( const unsigned short &  us)
inline

Definition at line 155 of file CSCTrackFinderDataTypes.h.

References local_phi_address::operator=(), and local_phi_address::toint().

155 { this->operator=(us); }
pt_data & operator=(const unsigned short &)

Member Function Documentation

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

Definition at line 69 of file CSCTrackFinderDataTypes.cc.

70 {
71  this->front_rank = ((1<<7)-1)&us;
72  this->charge_valid_front = ((1<<1)-1)&(us>>7);
73  this->rear_rank = ((1<<7)-1)&(us>>8);
74  this->charge_valid_rear = ((1<<1)-1)&(us>>15);
75 
76  return *this;
77 }
unsigned short front_rank
unsigned short charge_valid_rear
unsigned short rear_rank
unsigned short charge_valid_front
unsigned short pt_data::toint ( ) const

Definition at line 100 of file CSCTrackFinderDataTypes.cc.

101 {
102  unsigned short us = 0;
103  us = front_rank | (charge_valid_front << 7) | (rear_rank << 8) | (charge_valid_rear << 15);
104  return us;
105 }
unsigned short front_rank
unsigned short charge_valid_rear
unsigned short rear_rank
unsigned short charge_valid_front

Member Data Documentation

unsigned short pt_data::charge_valid_front

Definition at line 147 of file CSCTrackFinderDataTypes.h.

unsigned short pt_data::charge_valid_rear

Definition at line 149 of file CSCTrackFinderDataTypes.h.

unsigned short pt_data::front_rank

Definition at line 146 of file CSCTrackFinderDataTypes.h.

unsigned short pt_data::rear_rank

Definition at line 148 of file CSCTrackFinderDataTypes.h.