CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiPixelCluster::PixelPos Class Reference

#include <SiPixelCluster.h>

List of all members.

Public Member Functions

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

Private Attributes

int col_
int row_

Detailed Description

Definition at line 59 of file SiPixelCluster.h.


Constructor & Destructor Documentation

constexpr SiPixelCluster::PixelPos::PixelPos ( ) [inline]

Definition at line 61 of file SiPixelCluster.h.

Referenced by operator+().

: row_(0), col_(0) {}
constexpr SiPixelCluster::PixelPos::PixelPos ( int  row,
int  col 
) [inline]

Definition at line 62 of file SiPixelCluster.h.

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

Member Function Documentation

constexpr int SiPixelCluster::PixelPos::col ( ) const [inline]
constexpr PixelPos SiPixelCluster::PixelPos::operator+ ( const Shift shift) [inline]

Definition at line 65 of file SiPixelCluster.h.

References col(), SiPixelCluster::Shift::dx(), SiPixelCluster::Shift::dy(), PixelPos(), and row().

                                                      {
      return PixelPos( row() + shift.dx(), col() + shift.dy());
    }
constexpr int SiPixelCluster::PixelPos::row ( ) const [inline]

Member Data Documentation

Definition at line 70 of file SiPixelCluster.h.

Referenced by col().

Definition at line 69 of file SiPixelCluster.h.

Referenced by row().