1 #ifndef DataFormats_SiPixel_Cluster_SiPixelCluster_h 2 #define DataFormats_SiPixel_Cluster_SiPixelCluster_h 34 x(pix_x),
y(pix_y),
adc(pix_adc) {}
81 uint16_t
const * xpos, uint16_t
const * ypos,
82 uint16_t
const xmin, uint16_t
const ymin) :
86 for (
unsigned int i=0;
i!=isize; ++
i) {
87 uint16_t xoffset = xpos[
i]-
xmin;
88 uint16_t yoffset = ypos[
i]-
ymin;
91 if (xoffset > maxRow) maxRow = xoffset;
92 if (yoffset > maxCol) maxCol = yoffset;
107 for (
int i=0;
i<isize; ++
i)
115 for (
int i=0;
i<isize; ++
i)
133 for (
int i=0;
i<isize; ++
i)
148 const std::vector<Pixel>
pixels()
const {
149 std::vector<Pixel> oldPixVector;
151 oldPixVector.reserve(isize);
152 for(
int i=0;
i<isize; ++
i) {
153 oldPixVector.push_back(
pixel(
i));
168 static int overflow_(uint16_t span) {
return span==uint16_t(MAXSPAN);}
void setSplitClusterErrorY(float erry)
std::vector< PixelDigi >::const_iterator PixelDigiIter
static int overflow_(uint16_t span)
constexpr Shift(int dx, int dy)
edm::RefProd< SiPixelClusterCollection > SiPixelClusterRefProd
void packRow(uint16_t xmin, uint16_t xspan)
static constexpr unsigned int MAXPOS
void packCol(uint16_t ymin, uint16_t yspan)
constexpr PixelPos operator+(const Shift &shift) const
std::vector< uint16_t > thePixelADC
constexpr Pixel(int pix_x, int pix_y, int pix_adc)
SiPixelCluster(unsigned int isize, uint16_t const *adcs, uint16_t const *xpos, uint16_t const *ypos, uint16_t const xmin, uint16_t const ymin)
edm::Ref< SiPixelClusterCollection, SiPixelCluster > SiPixelClusterRef
void add(const PixelPos &pix, int adc)
edm::DetSetRefVector< SiPixelCluster > SiPixelClusterRefVector
const std::vector< uint8_t > & pixelOffset() const
bool operator<(const SiPixelCluster &one, const SiPixelCluster &other)
const std::vector< uint16_t > & pixelADC() const
std::vector< uint8_t > thePixelOffset
constexpr PixelPos(int row, int col)
constexpr int col() const
void setSplitClusterErrorX(float errx)
float getSplitClusterErrorY() const
edm::DetSetVector< SiPixelCluster > SiPixelClusterCollection
edm::Ref< SiPixelClusterCollectionNew, SiPixelCluster > SiPixelClusterRefNew
edmNew::DetSetVector< SiPixelCluster > SiPixelClusterCollectionNew
Pixel cluster – collection of neighboring pixels above threshold.
float getSplitClusterErrorX() const
static unsigned int const shift
static constexpr unsigned int MAXSPAN
std::pair< PixelDigiIter, PixelDigiIter > PixelDigiRange
constexpr int row() const
const std::vector< Pixel > pixels() const