Belle II Software development
Digit Class Reference

Class to represent the coordinates of one pixel. More...

#include <PXDDigitizerModule.h>

Public Member Functions

 Digit (unsigned short u=0, unsigned short v=0)
 Constructor.
 
bool operator< (const Digit &b) const
 Comparison operator to provide unique ordering.
 
bool operator== (const Digit &b) const
 Equality operator to check for equality.
 
unsigned short u () const
 Return u (column) ID.
 
unsigned short v () const
 Return v (row) ID.
 

Protected Attributes

unsigned short m_u
 u (column) ID
 
unsigned short m_v
 v (row) ID
 

Detailed Description

Class to represent the coordinates of one pixel.

Definition at line 29 of file PXDDigitizerModule.h.

Constructor & Destructor Documentation

◆ Digit()

Digit ( unsigned short  u = 0,
unsigned short  v = 0 
)
inline

Constructor.

Definition at line 32 of file PXDDigitizerModule.h.

32: m_u(u), m_v(v) {}
unsigned short v() const
Return v (row) ID.
unsigned short m_u
u (column) ID
unsigned short u() const
Return u (column) ID.
unsigned short m_v
v (row) ID

Member Function Documentation

◆ operator<()

bool operator< ( const Digit b) const
inline

Comparison operator to provide unique ordering.

Definition at line 34 of file PXDDigitizerModule.h.

34{ return v() < b.v() || (v() == b.v() && u() < b.u()); }

◆ operator==()

bool operator== ( const Digit b) const
inline

Equality operator to check for equality.

Definition at line 36 of file PXDDigitizerModule.h.

36{ return v() == b.v() && u() == b.u(); }

◆ u()

unsigned short u ( ) const
inline

Return u (column) ID.

Definition at line 38 of file PXDDigitizerModule.h.

38{ return m_u; }

◆ v()

unsigned short v ( ) const
inline

Return v (row) ID.

Definition at line 40 of file PXDDigitizerModule.h.

40{ return m_v; }

Member Data Documentation

◆ m_u

unsigned short m_u
protected

u (column) ID

Definition at line 43 of file PXDDigitizerModule.h.

◆ m_v

unsigned short m_v
protected

v (row) ID

Definition at line 45 of file PXDDigitizerModule.h.


The documentation for this class was generated from the following file: