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

Constructor & Destructor Documentation

global_phi_address::global_phi_address ( )
inline

Definition at line 38 of file CSCTrackFinderDataTypes.h.

38  : phi_local(0),
39  wire_group(0),
40  cscid(0),
41  zero(0) {};
global_phi_address::global_phi_address ( const unsigned &  u)
inline

Definition at line 42 of file CSCTrackFinderDataTypes.h.

References operator=().

42 { this->operator=(u); }
global_phi_address & operator=(const unsigned &u)

Member Function Documentation

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

Definition at line 14 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_local, and wire_group.

Referenced by global_phi_address().

15 {
16  this->phi_local = ((1<<10)-1)&u;
17  this->wire_group = ((1<<5)-1)&(u>>10);
18  this->cscid = ((1<<4)-1)&(u>>15);
19 
20  return *this;
21 }
unsigned global_phi_address::toint ( ) const

Definition at line 120 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_local, and wire_group.

121 {
122  unsigned u = 0;
123  u = phi_local | (wire_group << 10) | (cscid << 15);
124  return u;
125 }

Member Data Documentation

unsigned int global_phi_address::cscid

Definition at line 35 of file CSCTrackFinderDataTypes.h.

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

unsigned int global_phi_address::phi_local

Definition at line 33 of file CSCTrackFinderDataTypes.h.

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

unsigned int global_phi_address::wire_group

Definition at line 34 of file CSCTrackFinderDataTypes.h.

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

unsigned int global_phi_address::zero

Definition at line 36 of file CSCTrackFinderDataTypes.h.