test
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 15 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_local, and wire_group.

Referenced by global_phi_address().

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

Definition at line 121 of file CSCTrackFinderDataTypes.cc.

References cscid, phi_local, and wire_group.

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

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.