Go to the documentation of this file. 1 #ifndef DataFormats_CTPPS_CTPPSPixelCluster_h
2 #define DataFormats_CTPPS_CTPPSPixelCluster_h
18 static constexpr uint8_t
MAXCOL = 155;
19 static constexpr uint8_t
MAXROW = 159;
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 pixelCol(unsigned int i) const
unsigned int size() const
const std::vector< uint8_t > & pixelOffset() const
unsigned int minPixelRow() const
unsigned int pixelADC(unsigned int i) const
unsigned int pixelRow(unsigned int i) const
CTPPSPixelCluster(uint16_t isize, uint16_t *adcs, uint8_t const *rowpos, uint8_t const *colpos)
static constexpr uint8_t MAXROW
std::vector< uint16_t > thePixelADC
static constexpr uint8_t MAXCOL
std::vector< uint8_t > thePixelOffset
const std::vector< uint16_t > & pixelADC() const
static constexpr uint8_t MAXSPAN
unsigned int sizeCol() const
unsigned int colSpan() const
unsigned int sizeRow() const
unsigned int rowSpan() const
unsigned int minPixelCol() const
bool operator<(const CTPPSPixelCluster &one, const CTPPSPixelCluster &two)