CMS 3D CMS Logo

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 54 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

pt_address::pt_address ( )
inline

Definition at line 63 of file CSCTrackFinderDataTypes.h.

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 64 of file CSCTrackFinderDataTypes.h.

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

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

Member Function Documentation

unsigned pt_address::delta_phi ( ) const

Definition at line 120 of file CSCTrackFinderDataTypes.cc.

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

Definition at line 31 of file CSCTrackFinderDataTypes.cc.

31  {
32  this->delta_phi_12 = ((1 << 8) - 1) & u;
33  this->delta_phi_23 = ((1 << 4) - 1) & (u >> 8);
34  this->track_eta = ((1 << 4) - 1) & (u >> 12);
35  this->track_mode = ((1 << 4) - 1) & (u >> 16);
36  this->delta_phi_sign = ((1 << 1) - 1) & (u >> 20);
37  this->track_fr = ((1 << 1) - 1) & (u >> 21);
38 
39  return *this;
40 }
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 113 of file CSCTrackFinderDataTypes.cc.

113  {
114  unsigned u = 0;
115  u = delta_phi_12 | (delta_phi_23 << 8) | (track_eta << 12) | (track_mode << 16) | (delta_phi_sign << 20) |
116  (track_fr << 21);
117  return u;
118 }
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 56 of file CSCTrackFinderDataTypes.h.

unsigned int pt_address::delta_phi_23

Definition at line 57 of file CSCTrackFinderDataTypes.h.

unsigned int pt_address::delta_phi_sign

Definition at line 60 of file CSCTrackFinderDataTypes.h.

unsigned int pt_address::track_eta

Definition at line 58 of file CSCTrackFinderDataTypes.h.

unsigned int pt_address::track_fr

Definition at line 61 of file CSCTrackFinderDataTypes.h.

unsigned int pt_address::track_mode

Definition at line 59 of file CSCTrackFinderDataTypes.h.