CMS 3D CMS Logo

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

#include <CSCTrackFinderDataTypes.h>

Public Member Functions

 global_phi_address ()
 
 global_phi_address (const unsigned &u)
 
global_phi_addressoperator= (const unsigned &u)
 
unsigned toint () const
 

Public Attributes

unsigned int cscid: 4
 
unsigned int phi_local: 10
 
unsigned int wire_group: 5
 
unsigned int zero: 13
 

Detailed Description

Definition at line 23 of file CSCTrackFinderDataTypes.h.

Constructor & Destructor Documentation

◆ global_phi_address() [1/2]

global_phi_address::global_phi_address ( )
inline

Definition at line 30 of file CSCTrackFinderDataTypes.h.

30 : phi_local(0), wire_group(0), cscid(0), zero(0){};

◆ global_phi_address() [2/2]

global_phi_address::global_phi_address ( const unsigned &  u)
inline

Definition at line 31 of file CSCTrackFinderDataTypes.h.

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

References operator=().

Member Function Documentation

◆ operator=()

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

Definition at line 14 of file CSCTrackFinderDataTypes.cc.

14  {
15  this->phi_local = ((1 << 10) - 1) & u;
16  this->wire_group = ((1 << 5) - 1) & (u >> 10);
17  this->cscid = ((1 << 4) - 1) & (u >> 15);
18 
19  return *this;
20 }

References cscid, phi_local, and wire_group.

Referenced by global_phi_address().

◆ toint()

unsigned global_phi_address::toint ( ) const

Definition at line 107 of file CSCTrackFinderDataTypes.cc.

107  {
108  unsigned u = 0;
109  u = phi_local | (wire_group << 10) | (cscid << 15);
110  return u;
111 }

References cscid, phi_local, and wire_group.

Member Data Documentation

◆ cscid

unsigned int global_phi_address::cscid

Definition at line 27 of file CSCTrackFinderDataTypes.h.

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

◆ phi_local

unsigned int global_phi_address::phi_local

Definition at line 25 of file CSCTrackFinderDataTypes.h.

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

◆ wire_group

unsigned int global_phi_address::wire_group

Definition at line 26 of file CSCTrackFinderDataTypes.h.

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

◆ zero

unsigned int global_phi_address::zero

Definition at line 28 of file CSCTrackFinderDataTypes.h.

global_phi_address::zero
unsigned int zero
Definition: CSCTrackFinderDataTypes.h:28
global_phi_address::phi_local
unsigned int phi_local
Definition: CSCTrackFinderDataTypes.h:25
global_phi_address::operator=
global_phi_address & operator=(const unsigned &u)
Definition: CSCTrackFinderDataTypes.cc:14
global_phi_address::wire_group
unsigned int wire_group
Definition: CSCTrackFinderDataTypes.h:26
global_phi_address::cscid
unsigned int cscid
Definition: CSCTrackFinderDataTypes.h:27