CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FTLCluster::FTLHitPos Class Reference

#include <FTLCluster.h>

Public Member Functions

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

Private Attributes

int col_
 
int row_
 

Detailed Description

Definition at line 57 of file FTLCluster.h.

Constructor & Destructor Documentation

◆ FTLHitPos() [1/2]

constexpr FTLCluster::FTLHitPos::FTLHitPos ( )
inline

Definition at line 59 of file FTLCluster.h.

Referenced by operator+().

◆ FTLHitPos() [2/2]

constexpr FTLCluster::FTLHitPos::FTLHitPos ( int  row,
int  col 
)
inline

Definition at line 60 of file FTLCluster.h.

60 : row_(row), col_(col) {}
constexpr int row() const
Definition: FTLCluster.h:61
constexpr int col() const
Definition: FTLCluster.h:62

Member Function Documentation

◆ col()

constexpr int FTLCluster::FTLHitPos::col ( ) const
inline

◆ operator+()

constexpr FTLHitPos FTLCluster::FTLHitPos::operator+ ( const Shift shift) const
inline

Definition at line 63 of file FTLCluster.h.

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

63  {
64  return FTLHitPos(row() + shift.dx(), col() + shift.dy());
65  }
constexpr int row() const
Definition: FTLCluster.h:61
constexpr FTLHitPos()
Definition: FTLCluster.h:59
static unsigned int const shift
constexpr int col() const
Definition: FTLCluster.h:62

◆ row()

constexpr int FTLCluster::FTLHitPos::row ( ) const
inline

Definition at line 61 of file FTLCluster.h.

References row_.

Referenced by MTDArrayBuffer::index(), operator+(), and MTDArrayBuffer::set().

61 { return row_; }

Member Data Documentation

◆ col_

int FTLCluster::FTLHitPos::col_
private

Definition at line 69 of file FTLCluster.h.

Referenced by col().

◆ row_

int FTLCluster::FTLHitPos::row_
private

Definition at line 68 of file FTLCluster.h.

Referenced by row().