#include <PixelChannelIdentifier.h>
Classes | |
class | Packing |
Public Types | |
typedef unsigned int | ChannelType |
typedef unsigned int | PackedDigiType |
Static Public Member Functions | |
static std::pair< int, int > | channelToPixel (int ch) |
static int | pixelToChannel (int row, int col) |
Static Public Attributes | |
static Packing | thePacking |
Definition at line 6 of file PixelChannelIdentifier.h.
typedef unsigned int PixelChannelIdentifier::ChannelType |
Definition at line 10 of file PixelChannelIdentifier.h.
typedef unsigned int PixelChannelIdentifier::PackedDigiType |
Definition at line 9 of file PixelChannelIdentifier.h.
static std::pair<int,int> PixelChannelIdentifier::channelToPixel | ( | int | ch | ) | [inline, static] |
Definition at line 12 of file PixelChannelIdentifier.h.
References PixelChannelIdentifier::Packing::column_mask, PixelChannelIdentifier::Packing::column_width, PixelChannelIdentifier::Packing::row_mask, and thePacking.
{ int row = ( ch >> thePacking.column_width) & thePacking.row_mask; int col = ch & thePacking.column_mask; return std::pair<int,int>(row,col); }
static int PixelChannelIdentifier::pixelToChannel | ( | int | row, |
int | col | ||
) | [inline, static] |
Definition at line 18 of file PixelChannelIdentifier.h.
References PixelChannelIdentifier::Packing::column_width, and thePacking.
Referenced by GCC11_FINAL< T >::channel(), and SiClusterTranslator::produce().
{ return (row << thePacking.column_width) | col; }
Definition at line 55 of file PixelChannelIdentifier.h.
Referenced by PixelDigi::adc(), PixelDigi::channelToPixel(), channelToPixel(), PixelDigi::column(), PixelDigi::init(), PixelDigi::pixelToChannel(), pixelToChannel(), and PixelDigi::row().