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) {
32 colmin =
std::min(colpos[j], colmin);
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)
unsigned int rowSpan() const
std::vector< uint16_t > thePixelADC
std::vector< uint8_t > thePixelOffset
unsigned int size() const
unsigned int colSpan() const
unsigned int minPixelCol() const
const std::vector< uint16_t > & pixelADC() const
unsigned int pixelRow(unsigned int i) const
unsigned int sizeCol() const
unsigned int minPixelRow() const
const std::vector< uint8_t > & pixelOffset() 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
unsigned int sizeRow() const
bool operator<(const CTPPSPixelCluster &one, const CTPPSPixelCluster &two)
static constexpr uint8_t MAXSPAN
unsigned int pixelADC(unsigned int i) const
unsigned int pixelCol(unsigned int i) const