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 58 of file FTLCluster.h.

Constructor & Destructor Documentation

◆ FTLHitPos() [1/2]

constexpr FTLCluster::FTLHitPos::FTLHitPos ( )
inlineconstexpr

Definition at line 60 of file FTLCluster.h.

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

Referenced by operator+().

◆ FTLHitPos() [2/2]

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

Definition at line 61 of file FTLCluster.h.

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

Member Function Documentation

◆ col()

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

Definition at line 63 of file FTLCluster.h.

63 { 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 64 of file FTLCluster.h.

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

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

◆ row()

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

Definition at line 62 of file FTLCluster.h.

62 { return row_; }

References row_.

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

Member Data Documentation

◆ col_

int FTLCluster::FTLHitPos::col_
private

Definition at line 70 of file FTLCluster.h.

Referenced by col().

◆ row_

int FTLCluster::FTLHitPos::row_
private

Definition at line 69 of file FTLCluster.h.

Referenced by row().

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