11#include <pxd/dataobjects/PXDRawHit.h>
12#include <pxd/dataobjects/PXDDigit.h>
43 m_u(digit->getUCellID()),
m_v(digit->getVCellID()),
47 m_u(rawhit->getColumn()),
m_v(rawhit->getRow()),
51 Pixel(
unsigned int index,
unsigned short u,
unsigned short v,
float charge):
66 unsigned short getU()
const {
return m_u; }
68 unsigned short getV()
const {
return m_v; }
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
Class to represent one pixel, used in clustering for fast access.
bool operator>(const Pixel &b) const
Comparison operator, sorting by row,column in ascending order.
Pixel(unsigned int index, unsigned short u, unsigned short v, float charge)
Construct using an index, coordinates and charge.
unsigned short getU() const
Return the CellID in u.
unsigned int m_index
Index of the corresponding PXDDigit in the StoreArray.
Pixel(const PXDDigit *digit, unsigned int index)
Construct from a given PXDDigit and its store index.
unsigned int getIndex() const
Return the Index of the digit.
bool operator<(const Pixel &b) const
Comparison operator, sorting by row,column in ascending order.
float m_charge
Charge of the pixel.
unsigned short m_u
Cell ID in u.
float getCharge() const
Return the Charge of the Pixel.
bool operator==(const Pixel &b) const
Equality operator.
unsigned short m_v
Cell ID in v.
bool operator<=(const Pixel &b) const
Comparison operator, sorting by row,column in ascending order.
Pixel(unsigned int index=0)
Construct using only an index, used for testing.
unsigned short getV() const
Return the CellID in v.
void setCharge(float newCharge)
Adjust the charge of a pixel.
bool operator>=(const Pixel &b) const
Comparison operator, sorting by row,column in ascending order.
Pixel(const PXDRawHit *rawhit, unsigned int index)
Construct from a given PXDRawHit and its store index.
Abstract base class for different kinds of events.