1 #ifndef DataFormats_CTPPS_CTPPSPixelCluster_h 2 #define DataFormats_CTPPS_CTPPSPixelCluster_h 21 CTPPSPixelCluster(uint16_t isize, uint16_t* adcs, uint8_t
const* rowpos, uint8_t
const* colpos)
30 for (
unsigned int j = 0;
j != isize; ++
j) {
34 for (
unsigned int i = 0;
i != isize; ++
i) {
35 uint8_t rowoffset = rowpos[
i] - rowmin;
36 uint8_t coloffset = colpos[
i] - colmin;
39 if (rowoffset > maxRow)
41 if (coloffset > maxCol)
57 for (
unsigned int i = 0;
i < isize; ++
i)
65 for (
unsigned int i = 0;
i < isize; ++
i)
75 for (
unsigned int i = 0;
i < isize; ++
i)
113 if (
one.minPixelRow() <
two.minPixelRow()) {
115 }
else if (
one.minPixelRow() >
two.minPixelRow()) {
117 }
else if (
one.minPixelCol() <
two.minPixelCol()) {
unsigned int rowSpan() const
std::vector< uint16_t > thePixelADC
unsigned int pixelRow(unsigned int i) const
std::vector< uint8_t > thePixelOffset
unsigned int size() const
const std::vector< uint16_t > & pixelADC() const
unsigned int minPixelRow() const
unsigned int pixelADC(unsigned int i) const
CTPPSPixelCluster(uint16_t isize, uint16_t *adcs, uint8_t const *rowpos, uint8_t const *colpos)
static constexpr uint8_t MAXROW
static constexpr uint8_t MAXCOL
bool operator<(const CTPPSPixelCluster &one, const CTPPSPixelCluster &two)
unsigned int minPixelCol() const
static constexpr uint8_t MAXSPAN
unsigned int pixelCol(unsigned int i) const
unsigned int colSpan() const
unsigned int sizeCol() const
const std::vector< uint8_t > & pixelOffset() const
unsigned int sizeRow() const