identify pixel inside single ROC More...
#include <LocalPixel.h>
Classes | |
struct | DcolPxid |
double collumn and pixel ID in double collumn representation More... | |
struct | RocRowCol |
row and collumn in ROC representation More... | |
Public Member Functions | |
int | dcol () const |
LocalPixel (const RocRowCol &pixel) | |
LocalPixel (const DcolPxid &pixel) | |
int | pxid () const |
int | rocCol () const |
int | rocRow () const |
bool | valid () const |
Static Public Attributes | |
static const int | numColsInRoc = 52 |
static const int | numRowsInRoc = 80 |
Private Attributes | |
RocRowCol | thePixel |
identify pixel inside single ROC
Definition at line 7 of file LocalPixel.h.
sipixelobjects::LocalPixel::LocalPixel | ( | const DcolPxid & | pixel | ) | [inline] |
Definition at line 27 of file LocalPixel.h.
References sipixelobjects::LocalPixel::DcolPxid::dcol, numRowsInRoc, sipixelobjects::LocalPixel::DcolPxid::pxid, sipixelobjects::LocalPixel::RocRowCol::rocCol, sipixelobjects::LocalPixel::RocRowCol::rocRow, and thePixel.
{ thePixel.rocCol = pixel.dcol*2 + pixel.pxid%2; thePixel.rocRow = numRowsInRoc - pixel.pxid/2; }
sipixelobjects::LocalPixel::LocalPixel | ( | const RocRowCol & | pixel | ) | [inline] |
Definition at line 32 of file LocalPixel.h.
: thePixel(pixel) {}
int sipixelobjects::LocalPixel::dcol | ( | ) | const [inline] |
Definition at line 34 of file LocalPixel.h.
References sipixelobjects::LocalPixel::RocRowCol::rocCol, and thePixel.
Referenced by SiPixelFrameReverter::toCabling(), and SiPixelFrameConverter::toCabling().
int sipixelobjects::LocalPixel::pxid | ( | ) | const [inline] |
Definition at line 35 of file LocalPixel.h.
References numRowsInRoc, sipixelobjects::LocalPixel::RocRowCol::rocCol, sipixelobjects::LocalPixel::RocRowCol::rocRow, and thePixel.
Referenced by SiPixelFrameReverter::toCabling(), and SiPixelFrameConverter::toCabling().
{ return 2*(numRowsInRoc-thePixel.rocRow)+ (thePixel.rocCol%2); }
int sipixelobjects::LocalPixel::rocCol | ( | ) | const [inline] |
Definition at line 38 of file LocalPixel.h.
References sipixelobjects::LocalPixel::RocRowCol::rocCol, and thePixel.
Referenced by SiPixelOfflineCalibAnalysisBase::checkPixel(), SiPixelCalibDigiProducer::checkPixel(), SiPixelInformationExtractor::findNoisyPixels(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), sipixelobjects::PixelROC::toGlobal(), and PixelDataFormatter::word2digi().
int sipixelobjects::LocalPixel::rocRow | ( | ) | const [inline] |
Definition at line 37 of file LocalPixel.h.
References sipixelobjects::LocalPixel::RocRowCol::rocRow, and thePixel.
Referenced by SiPixelOfflineCalibAnalysisBase::checkPixel(), SiPixelCalibDigiProducer::checkPixel(), SiPixelInformationExtractor::findNoisyPixels(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), sipixelobjects::PixelROC::toGlobal(), and PixelDataFormatter::word2digi().
bool sipixelobjects::LocalPixel::valid | ( | ) | const [inline] |
Definition at line 40 of file LocalPixel.h.
References thePixel, and sipixelobjects::LocalPixel::RocRowCol::valid().
Referenced by SiPixelFrameReverter::findLinkInFed(), SiPixelFrameReverter::findPixelInRoc(), SiPixelFrameReverter::findRocInDet(), SiPixelFrameReverter::findRocInLink(), SiPixelFrameReverter::toCabling(), and SiPixelFrameConverter::toCabling().
const int sipixelobjects::LocalPixel::numColsInRoc = 52 [static] |
Definition at line 12 of file LocalPixel.h.
Referenced by sipixelobjects::LocalPixel::RocRowCol::valid().
const int sipixelobjects::LocalPixel::numRowsInRoc = 80 [static] |
Definition at line 11 of file LocalPixel.h.
Referenced by LocalPixel(), pxid(), and sipixelobjects::LocalPixel::RocRowCol::valid().
Definition at line 42 of file LocalPixel.h.
Referenced by dcol(), LocalPixel(), pxid(), rocCol(), rocRow(), and valid().