1 #ifndef DataFormats_Phase2ITPixelCluster_Phase2ITPixelCluster_h 2 #define DataFormats_Phase2ITPixelCluster_Phase2ITPixelCluster_h 30 x(pix_x),
y(pix_y),
adc(pix_adc) {}
78 uint32_t
const * xpos, uint32_t
const * ypos,
79 uint32_t
const xmin, uint32_t
const ymin) :
83 for (
unsigned int i=0;
i!=isize; ++
i) {
84 uint32_t xoffset = xpos[
i]-
xmin;
85 uint32_t yoffset = ypos[
i]-
ymin;
88 if (xoffset > maxRow) maxRow = xoffset;
89 if (yoffset > maxCol) maxCol = yoffset;
104 for (
int i=0;
i<isize; ++
i)
112 for (
int i=0;
i<isize; ++
i)
130 for (
int i=0;
i<isize; ++
i)
145 const std::vector<Pixel>
pixels()
const {
146 std::vector<Pixel> oldPixVector;
148 oldPixVector.reserve(isize);
149 for(
int i=0;
i<isize; ++
i) {
150 oldPixVector.push_back(
pixel(
i));
166 static int overflow_(uint32_t packed) {
return span_(packed)==uint32_t(MAXSPAN);}
167 static uint32_t
pack_(uint32_t zmin,
unsigned int zspan) {
168 zspan =
std::min(zspan, uint32_t(MAXSPAN));
169 return (zspan<<POSBITS) | zmin;
204 for (
int i=0;
i!=isize; ++
i) {
206 if (xsize > maxRow) maxRow =
xsize;
208 if (ysize > maxCol) maxCol =
ysize;
std::vector< uint32_t > thePixelADC
uint32_t minPixelRow() const
std::pair< PixelDigiIter, PixelDigiIter > PixelDigiRange
static unsigned int SPANBITS
void verifyVersion() const
mostly to be compatible for <610
void setSplitClusterErrorX(float errx)
edm::DetSetVector< Phase2ITPixelCluster > Phase2ITPixelClusterCollection
void setSplitClusterErrorY(float erry)
void computeMax()
moslty to be compatible for <610
uint32_t maxPixelCol() const
edm::Ref< Phase2ITPixelClusterCollectionNew, Phase2ITPixelCluster > Phase2ITPixelClusterRefNew
void packRow(uint32_t xmin, uint32_t xspan)
edm::DetSetRefVector< Phase2ITPixelCluster > Phase2ITPixelClusterRefVector
const std::vector< uint32_t > & pixelADC() const
PixelPos(int row, int col)
float getSplitClusterErrorX() const
void add(const PixelPos &pix, uint32_t adc)
static unsigned int POSBITS
uint32_t maxPixelRow() const
const std::vector< uint16_t > & pixelOffset() const
static int span_(uint32_t packed)
static unsigned int MAXPOS
const std::vector< Pixel > pixels() const
uint32_t minPixelCol() const
void packCol(uint32_t ymin, uint32_t yspan)
static uint32_t pack_(uint32_t zmin, unsigned int zspan)
float getSplitClusterErrorY() const
bool operator<(const Phase2ITPixelCluster &one, const Phase2ITPixelCluster &other)
Pixel cluster – collection of neighboring pixels above threshold.
edm::RefProd< Phase2ITPixelClusterCollection > Phase2ITPixelClusterRefProd
PixelPos operator+(const Shift &shift) const
edm::Ref< Phase2ITPixelClusterCollection, Phase2ITPixelCluster > Phase2ITPixelClusterRef
std::vector< uint16_t > thePixelOffset
static unsigned int MAXSPAN
Pixel(uint32_t pix_x, uint32_t pix_y, uint32_t pix_adc)
Phase2ITPixelCluster(unsigned int isize, uint32_t const *adcs, uint32_t const *xpos, uint32_t const *ypos, uint32_t const xmin, uint32_t const ymin)
static int overflow_(uint32_t packed)
static unsigned int const shift
edmNew::DetSetVector< Phase2ITPixelCluster > Phase2ITPixelClusterCollectionNew
std::vector< PixelDigi >::const_iterator PixelDigiIter