CMS 3D CMS Logo

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

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

 local_phi_address ()
 
 local_phi_address (const unsigned &u)
 
local_phi_addressoperator= (const unsigned &u)
 
unsigned toint () const
 

Public Attributes

unsigned int clct_pattern: 3
 
unsigned int lr: 1
 
unsigned int pattern_type: 1
 
unsigned int quality: 4
 
unsigned int spare: 2
 
unsigned int strip: 8
 
unsigned int zero: 13
 

Detailed Description

Definition at line 5 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

◆ local_phi_address() [1/2]

local_phi_address::local_phi_address ( )
inline

Definition at line 15 of file CSCTrackFinderDataTypes.h.

15 : strip(0), clct_pattern(0), pattern_type(0), quality(0), lr(0), spare(0), zero(0){};

◆ local_phi_address() [2/2]

local_phi_address::local_phi_address ( const unsigned &  u)
inline

Definition at line 16 of file CSCTrackFinderDataTypes.h.

16 { this->operator=(u); }

References operator=().

Member Function Documentation

◆ operator=()

local_phi_address & local_phi_address::operator= ( const unsigned &  u)

Definition at line 4 of file CSCTrackFinderDataTypes.cc.

4  {
5  this->strip = ((1 << 8) - 1) & u;
6  this->clct_pattern = ((1 << 3) - 1) & (u >> 8);
7  this->pattern_type = 1 & (u >> 11);
8  this->quality = ((1 << 4) - 1) & (u >> 12);
9  this->lr = 1 & (u >> 16);
10 
11  return *this;
12 }

References clct_pattern, lr, pattern_type, quality, and strip.

Referenced by local_phi_address().

◆ toint()

unsigned local_phi_address::toint ( ) const

Definition at line 95 of file CSCTrackFinderDataTypes.cc.

95  {
96  unsigned u = 0;
97  u = strip | (clct_pattern << 8) | (pattern_type << 11) | (quality << 12) | (lr << 16);
98  return u;
99 }

References clct_pattern, lr, pattern_type, quality, and strip.

Member Data Documentation

◆ clct_pattern

unsigned int local_phi_address::clct_pattern

Definition at line 8 of file CSCTrackFinderDataTypes.h.

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

◆ lr

unsigned int local_phi_address::lr

Definition at line 11 of file CSCTrackFinderDataTypes.h.

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

◆ pattern_type

unsigned int local_phi_address::pattern_type

Definition at line 9 of file CSCTrackFinderDataTypes.h.

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

◆ quality

unsigned int local_phi_address::quality

Definition at line 10 of file CSCTrackFinderDataTypes.h.

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

◆ spare

unsigned int local_phi_address::spare

Definition at line 12 of file CSCTrackFinderDataTypes.h.

◆ strip

unsigned int local_phi_address::strip

Definition at line 7 of file CSCTrackFinderDataTypes.h.

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

◆ zero

unsigned int local_phi_address::zero

Definition at line 13 of file CSCTrackFinderDataTypes.h.

local_phi_address::zero
unsigned int zero
Definition: CSCTrackFinderDataTypes.h:13
local_phi_address::spare
unsigned int spare
Definition: CSCTrackFinderDataTypes.h:12
local_phi_address::pattern_type
unsigned int pattern_type
Definition: CSCTrackFinderDataTypes.h:9
local_phi_address::operator=
local_phi_address & operator=(const unsigned &u)
Definition: CSCTrackFinderDataTypes.cc:4
local_phi_address::strip
unsigned int strip
Definition: CSCTrackFinderDataTypes.h:7
local_phi_address::clct_pattern
unsigned int clct_pattern
Definition: CSCTrackFinderDataTypes.h:8
local_phi_address::quality
unsigned int quality
Definition: CSCTrackFinderDataTypes.h:10
local_phi_address::lr
unsigned int lr
Definition: CSCTrackFinderDataTypes.h:11