CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
pt_address Class Reference

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

unsigned delta_phi () const
 
pt_addressoperator= (const unsigned &)
 
 pt_address ()
 
 pt_address (const unsigned &us)
 
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 70 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

pt_address::pt_address ( )
inline

Definition at line 80 of file CSCTrackFinderDataTypes.h.

80  : delta_phi_12(0),
81  delta_phi_23(0),
82  track_eta(0),
83  track_mode(0),
84  delta_phi_sign(0),
85  track_fr(0) {};
unsigned int delta_phi_23
unsigned int track_mode
unsigned int track_fr
unsigned int delta_phi_sign
unsigned int track_eta
unsigned int delta_phi_12
pt_address::pt_address ( const unsigned &  us)
inline

Definition at line 86 of file CSCTrackFinderDataTypes.h.

References operator=().

86 { this->operator=(us); }
pt_address & operator=(const unsigned &)

Member Function Documentation

unsigned pt_address::delta_phi ( ) const

Definition at line 135 of file CSCTrackFinderDataTypes.cc.

References delta_phi_12, and delta_phi_23.

136 {
137  return ( delta_phi_12 | (delta_phi_23 << 8) );
138 }
unsigned int delta_phi_23
unsigned int delta_phi_12
pt_address & pt_address::operator= ( const unsigned &  u)

Definition at line 34 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().

35 {
36  this->delta_phi_12 = ((1<<8)-1)&u;
37  this->delta_phi_23 = ((1<<4)-1)&(u>>8);
38  this->track_eta = ((1<<4)-1)&(u>>12);
39  this->track_mode = ((1<<4)-1)&(u>>16);
40  this->delta_phi_sign = ((1<<1)-1)&(u>>20);
41  this->track_fr = ((1<<1)-1)&(u>>21);
42 
43  return *this;
44 }
unsigned int delta_phi_23
unsigned int track_mode
unsigned int track_fr
unsigned int delta_phi_sign
unsigned int track_eta
unsigned int delta_phi_12
unsigned pt_address::toint ( ) const

Definition at line 128 of file CSCTrackFinderDataTypes.cc.

References delta_phi_12, delta_phi_23, delta_phi_sign, track_eta, track_fr, and track_mode.

129 {
130  unsigned u = 0;
131  u = delta_phi_12 | (delta_phi_23 << 8) | (track_eta << 12) | (track_mode << 16) | (delta_phi_sign << 20) | (track_fr << 21);
132  return u;
133 }
unsigned int delta_phi_23
unsigned int track_mode
unsigned int track_fr
unsigned int delta_phi_sign
unsigned int track_eta
unsigned int delta_phi_12

Member Data Documentation

unsigned int pt_address::delta_phi_12

Definition at line 73 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::delta_phi_23

Definition at line 74 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::delta_phi_sign

Definition at line 77 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_eta

Definition at line 75 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_fr

Definition at line 78 of file CSCTrackFinderDataTypes.h.

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

unsigned int pt_address::track_mode

Definition at line 76 of file CSCTrackFinderDataTypes.h.

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