CMS 3D CMS Logo

sipixelobjects::LocalPixel Class Reference

identify pixel inside single ROC More...

#include <CondFormats/SiPixelObjects/interface/LocalPixel.h>

List of all members.

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

Classes

struct  DcolPxid
 double collumn and pixel ID in double collumn representation More...
struct  RocRowCol
 row and collumn in ROC representation More...


Detailed Description

identify pixel inside single ROC

Definition at line 7 of file LocalPixel.h.


Constructor & Destructor Documentation

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.

00027                                           {
00028         thePixel.rocCol = pixel.dcol*2 + pixel.pxid%2;
00029         thePixel.rocRow = numRowsInRoc - pixel.pxid/2;
00030       }

sipixelobjects::LocalPixel::LocalPixel ( const RocRowCol pixel  )  [inline]

Definition at line 32 of file LocalPixel.h.

00032 : thePixel(pixel) {} 


Member Function Documentation

int sipixelobjects::LocalPixel::dcol (  )  const [inline]

Definition at line 34 of file LocalPixel.h.

References sipixelobjects::LocalPixel::RocRowCol::rocCol, and thePixel.

Referenced by SiPixelFrameConverter::toCabling().

00034 { return thePixel.rocCol/2; }

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 SiPixelFrameConverter::toCabling().

00035 { 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().

00038 { return thePixel.rocCol; }

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().

00037 { return thePixel.rocRow; }

bool sipixelobjects::LocalPixel::valid (  )  const [inline]

Definition at line 40 of file LocalPixel.h.

References thePixel, and sipixelobjects::LocalPixel::RocRowCol::valid().

Referenced by SiPixelFrameConverter::toCabling().

00040 { return thePixel.valid(); }


Member Data Documentation

const int sipixelobjects::LocalPixel::numColsInRoc = 52 [static]

Definition at line 12 of file LocalPixel.h.

Referenced by sipixelobjects::FrameConversion::FrameConversion(), and sipixelobjects::LocalPixel::RocRowCol::valid().

const int sipixelobjects::LocalPixel::numRowsInRoc = 80 [static]

Definition at line 11 of file LocalPixel.h.

Referenced by sipixelobjects::FrameConversion::FrameConversion(), LocalPixel(), pxid(), and sipixelobjects::LocalPixel::RocRowCol::valid().

RocRowCol sipixelobjects::LocalPixel::thePixel [private]

Definition at line 42 of file LocalPixel.h.

Referenced by dcol(), LocalPixel(), pxid(), rocCol(), rocRow(), and valid().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:52:33 2009 for CMSSW by  doxygen 1.5.4