CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes
Phase2TrackerDigi Class Reference

#include <Phase2TrackerDigi.h>

Public Types

typedef uint16_t PackedDigiType
 

Public Member Functions

unsigned int channel () const
 
unsigned int column () const
 
unsigned int edge () const
 
 Phase2TrackerDigi (unsigned int packed_channel)
 
 Phase2TrackerDigi (unsigned int row, unsigned int col)
 
 Phase2TrackerDigi ()
 
unsigned int row () const
 
unsigned int strip () const
 

Static Public Member Functions

static std::pair< unsigned int,
unsigned int > 
channelToPixel (unsigned int ch)
 
static PackedDigiType pixelToChannel (unsigned int row, unsigned int col)
 

Static Private Member Functions

static unsigned int channelToColumn (unsigned int ch)
 
static unsigned int channelToRow (unsigned int ch)
 

Private Attributes

PackedDigiType theChannel
 

Detailed Description

Persistent digi for the Phase 2 tracker

Definition at line 12 of file Phase2TrackerDigi.h.

Member Typedef Documentation

Definition at line 15 of file Phase2TrackerDigi.h.

Constructor & Destructor Documentation

Phase2TrackerDigi::Phase2TrackerDigi ( unsigned int  packed_channel)
inline

Definition at line 17 of file Phase2TrackerDigi.h.

17 : theChannel(packed_channel) {}
PackedDigiType theChannel
Phase2TrackerDigi::Phase2TrackerDigi ( unsigned int  row,
unsigned int  col 
)
inline

Definition at line 19 of file Phase2TrackerDigi.h.

References pixelToChannel(), and theChannel.

19  {
21  }
unsigned int row() const
static PackedDigiType pixelToChannel(unsigned int row, unsigned int col)
PackedDigiType theChannel
int col
Definition: cuy.py:1008
Phase2TrackerDigi::Phase2TrackerDigi ( )
inline

Definition at line 23 of file Phase2TrackerDigi.h.

23 : theChannel(0) {}
PackedDigiType theChannel

Member Function Documentation

unsigned int Phase2TrackerDigi::channel ( ) const
inline

Definition at line 32 of file Phase2TrackerDigi.h.

References theChannel.

Referenced by operator<(), and operator<<().

32 { return theChannel; }
PackedDigiType theChannel
static unsigned int Phase2TrackerDigi::channelToColumn ( unsigned int  ch)
inlinestaticprivate

Definition at line 47 of file Phase2TrackerDigi.h.

Referenced by channelToPixel(), and column().

47 { return ch >> 10; } // (theChannel & 0xFC00)>>10
static std::pair<unsigned int,unsigned int> Phase2TrackerDigi::channelToPixel ( unsigned int  ch)
inlinestatic

Definition at line 34 of file Phase2TrackerDigi.h.

References channelToColumn(), and channelToRow().

34  {
35  return std::pair<unsigned int, unsigned int>(channelToRow(ch),channelToColumn(ch));
36  }
static unsigned int channelToRow(unsigned int ch)
static unsigned int channelToColumn(unsigned int ch)
static unsigned int Phase2TrackerDigi::channelToRow ( unsigned int  ch)
inlinestaticprivate

Definition at line 46 of file Phase2TrackerDigi.h.

Referenced by channelToPixel(), and row().

46 { return ch & 0x03FF; } // (theChannel & 0x03FF)>>0
unsigned int Phase2TrackerDigi::column ( ) const
inline

Definition at line 27 of file Phase2TrackerDigi.h.

References channelToColumn(), and theChannel.

Referenced by edge().

27 { return channelToColumn(theChannel); }
PackedDigiType theChannel
static unsigned int channelToColumn(unsigned int ch)
unsigned int Phase2TrackerDigi::edge ( ) const
inline

Definition at line 30 of file Phase2TrackerDigi.h.

References column().

30 { return column(); } // CD: any better name for that?
unsigned int column() const
static PackedDigiType Phase2TrackerDigi::pixelToChannel ( unsigned int  row,
unsigned int  col 
)
inlinestatic

Definition at line 38 of file Phase2TrackerDigi.h.

References assert().

Referenced by Phase2TrackerDigi().

38  {
39  assert(row<1016);
40  assert(col<32);
41  return row|(col<<10);
42  }
unsigned int row() const
assert(m_qm.get())
int col
Definition: cuy.py:1008
unsigned int Phase2TrackerDigi::row ( ) const
inline

Definition at line 26 of file Phase2TrackerDigi.h.

References channelToRow(), and theChannel.

Referenced by strip().

26 { return channelToRow(theChannel); }
static unsigned int channelToRow(unsigned int ch)
PackedDigiType theChannel
unsigned int Phase2TrackerDigi::strip ( ) const
inline

Definition at line 29 of file Phase2TrackerDigi.h.

References row().

29 { return row(); }
unsigned int row() const

Member Data Documentation

PackedDigiType Phase2TrackerDigi::theChannel
private

Definition at line 45 of file Phase2TrackerDigi.h.

Referenced by channel(), column(), Phase2TrackerDigi(), and row().