CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiPixelCluster::PixelPos Class Reference

#include <SiPixelCluster.h>

Public Member Functions

constexpr int col () const
 
constexpr PixelPos operator+ (const Shift &shift) const
 
constexpr PixelPos ()
 
constexpr PixelPos (int row, int col)
 
constexpr int row () const
 

Private Attributes

int col_
 
int row_
 

Detailed Description

Definition at line 52 of file SiPixelCluster.h.

Constructor & Destructor Documentation

◆ PixelPos() [1/2]

constexpr SiPixelCluster::PixelPos::PixelPos ( )
inlineconstexpr

Definition at line 54 of file SiPixelCluster.h.

54 : row_(0), col_(0) {}

Referenced by operator+().

◆ PixelPos() [2/2]

constexpr SiPixelCluster::PixelPos::PixelPos ( int  row,
int  col 
)
inlineconstexpr

Definition at line 55 of file SiPixelCluster.h.

55 : row_(row), col_(col) {}

Member Function Documentation

◆ col()

constexpr int SiPixelCluster::PixelPos::col ( ) const
inlineconstexpr

◆ operator+()

constexpr PixelPos SiPixelCluster::PixelPos::operator+ ( const Shift shift) const
inlineconstexpr

Definition at line 58 of file SiPixelCluster.h.

58 { return PixelPos(row() + shift.dx(), col() + shift.dy()); }

References col(), PixelPos(), row(), and edm::shift.

◆ row()

constexpr int SiPixelCluster::PixelPos::row ( ) const
inlineconstexpr

Definition at line 56 of file SiPixelCluster.h.

56 { return row_; }

References row_.

Referenced by SiPixelCluster::add(), SiPixelArrayBuffer::index(), PixelThresholdClusterizer::make_cluster(), and operator+().

Member Data Documentation

◆ col_

int SiPixelCluster::PixelPos::col_
private

Definition at line 62 of file SiPixelCluster.h.

Referenced by col().

◆ row_

int SiPixelCluster::PixelPos::row_
private

Definition at line 61 of file SiPixelCluster.h.

Referenced by row().

SiPixelCluster::PixelPos::PixelPos
constexpr PixelPos()
Definition: SiPixelCluster.h:54
SiPixelCluster::PixelPos::col_
int col_
Definition: SiPixelCluster.h:62
SiPixelCluster::PixelPos::row_
int row_
Definition: SiPixelCluster.h:61
edm::shift
static unsigned const int shift
Definition: LuminosityBlockID.cc:7
SiPixelCluster::PixelPos::row
constexpr int row() const
Definition: SiPixelCluster.h:56
SiPixelCluster::PixelPos::col
constexpr int col() const
Definition: SiPixelCluster.h:57