CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Attributes | Private Attributes
sipixelobjects::LocalPixel Class Reference

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 DcolPxid &pixel)
 
 LocalPixel (const RocRowCol &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
 

Detailed Description

identify pixel inside single ROC

Definition at line 7 of file LocalPixel.h.

Constructor & Destructor Documentation

◆ LocalPixel() [1/2]

sipixelobjects::LocalPixel::LocalPixel ( const DcolPxid pixel)
inline

◆ LocalPixel() [2/2]

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

Definition at line 29 of file LocalPixel.h.

29 : thePixel(pixel) {}

Member Function Documentation

◆ dcol()

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

Definition at line 31 of file LocalPixel.h.

31 { return thePixel.rocCol / 2; }

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

◆ pxid()

int sipixelobjects::LocalPixel::pxid ( ) const
inline

◆ rocCol()

int sipixelobjects::LocalPixel::rocCol ( ) const
inline

◆ rocRow()

int sipixelobjects::LocalPixel::rocRow ( ) const
inline

◆ valid()

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

Definition at line 37 of file LocalPixel.h.

37 { return thePixel.valid(); }

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

Member Data Documentation

◆ numColsInRoc

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

Definition at line 10 of file LocalPixel.h.

Referenced by sipixelobjects::LocalPixel::RocRowCol::valid().

◆ numRowsInRoc

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

Definition at line 9 of file LocalPixel.h.

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

◆ thePixel

RocRowCol sipixelobjects::LocalPixel::thePixel
private

Definition at line 40 of file LocalPixel.h.

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

sipixelobjects::LocalPixel::numRowsInRoc
static const int numRowsInRoc
Definition: LocalPixel.h:9
muonClassificationByHits_cfi.pixel
pixel
Definition: muonClassificationByHits_cfi.py:9
sipixelobjects::LocalPixel::RocRowCol::rocRow
int rocRow
Definition: LocalPixel.h:14
sipixelobjects::LocalPixel::RocRowCol::rocCol
int rocCol
Definition: LocalPixel.h:14
sipixelobjects::LocalPixel::thePixel
RocRowCol thePixel
Definition: LocalPixel.h:40
sipixelobjects::LocalPixel::RocRowCol::valid
bool valid() const
Definition: LocalPixel.h:15