CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiPixelCluster::PixelPos Class Reference

#include <SiPixelCluster.h>

List of all members.

Public Member Functions

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

Private Attributes

int col_
int row_

Detailed Description

Definition at line 49 of file SiPixelCluster.h.


Constructor & Destructor Documentation

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

Definition at line 51 of file SiPixelCluster.h.

Referenced by operator+().

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

Definition at line 52 of file SiPixelCluster.h.

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

Member Function Documentation

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

Definition at line 55 of file SiPixelCluster.h.

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

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

Member Data Documentation

Definition at line 60 of file SiPixelCluster.h.

Referenced by col().

Definition at line 59 of file SiPixelCluster.h.

Referenced by row().