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 ( )
inlineconstexpr

Definition at line 59 of file FTLCluster.h.

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

Referenced by operator+().

◆ FTLHitPos() [2/2]

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

Definition at line 60 of file FTLCluster.h.

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

Member Function Documentation

◆ col()

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

Definition at line 62 of file FTLCluster.h.

62 { return col_; }

References col_.

Referenced by python.rootplot.root2matplotlib.Hist2D::colz(), MTDArrayBuffer::index(), operator+(), and MTDArrayBuffer::set().

◆ operator+()

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

Definition at line 63 of file FTLCluster.h.

63  {
64  return FTLHitPos(row() + shift.dx(), col() + shift.dy());
65  }

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

◆ row()

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

Definition at line 61 of file FTLCluster.h.

61 { return row_; }

References row_.

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

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().

FTLCluster::FTLHitPos::row
constexpr int row() const
Definition: FTLCluster.h:61
FTLCluster::FTLHitPos::row_
int row_
Definition: FTLCluster.h:68
FTLCluster::FTLHitPos::FTLHitPos
constexpr FTLHitPos()
Definition: FTLCluster.h:59
edm::shift
static unsigned const int shift
Definition: LuminosityBlockID.cc:7
FTLCluster::FTLHitPos::col_
int col_
Definition: FTLCluster.h:69
FTLCluster::FTLHitPos::col
constexpr int col() const
Definition: FTLCluster.h:62