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() [1/2]

pt_address::pt_address ( )
inline

Definition at line 63 of file CSCTrackFinderDataTypes.h.

◆ pt_address() [2/2]

pt_address::pt_address ( const unsigned &  us)
inline

Definition at line 64 of file CSCTrackFinderDataTypes.h.

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

References operator=().

Member Function Documentation

◆ delta_phi()

unsigned pt_address::delta_phi ( ) const

Definition at line 120 of file CSCTrackFinderDataTypes.cc.

120 { return (delta_phi_12 | (delta_phi_23 << 8)); }

References delta_phi_12, and delta_phi_23.

◆ operator=()

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 }

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

Referenced by pt_address().

◆ toint()

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 }

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

Member Data Documentation

◆ delta_phi_12

unsigned int pt_address::delta_phi_12

Definition at line 56 of file CSCTrackFinderDataTypes.h.

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

◆ delta_phi_23

unsigned int pt_address::delta_phi_23

Definition at line 57 of file CSCTrackFinderDataTypes.h.

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

◆ delta_phi_sign

unsigned int pt_address::delta_phi_sign

Definition at line 60 of file CSCTrackFinderDataTypes.h.

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

◆ track_eta

unsigned int pt_address::track_eta

Definition at line 58 of file CSCTrackFinderDataTypes.h.

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

◆ track_fr

unsigned int pt_address::track_fr

Definition at line 61 of file CSCTrackFinderDataTypes.h.

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

◆ track_mode

unsigned int pt_address::track_mode

Definition at line 59 of file CSCTrackFinderDataTypes.h.

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

pt_address::delta_phi_12
unsigned int delta_phi_12
Definition: CSCTrackFinderDataTypes.h:56
pt_address::delta_phi_23
unsigned int delta_phi_23
Definition: CSCTrackFinderDataTypes.h:57
pt_address::operator=
pt_address & operator=(const unsigned &)
Definition: CSCTrackFinderDataTypes.cc:31
pt_address::delta_phi_sign
unsigned int delta_phi_sign
Definition: CSCTrackFinderDataTypes.h:60
pt_address::track_fr
unsigned int track_fr
Definition: CSCTrackFinderDataTypes.h:61
pt_address::track_mode
unsigned int track_mode
Definition: CSCTrackFinderDataTypes.h:59
pt_address::track_eta
unsigned int track_eta
Definition: CSCTrackFinderDataTypes.h:58