1 #ifndef DataFormats_SiPixel_Cluster_SiPixelCluster_h 2 #define DataFormats_SiPixel_Cluster_SiPixelCluster_h 99 for (
unsigned int i = 0;
i < isize; ++
i) {
115 void add(
const PixelPos& pix,
int adc);
121 for (
int i = 0;
i < isize; ++
i)
129 for (
int i = 0;
i < isize; ++
i)
146 for (
int i = 0;
i < isize; ++
i)
160 const std::vector<Pixel>
pixels()
const {
161 std::vector<Pixel> oldPixVector;
163 oldPixVector.reserve(isize);
164 for (
int i = 0;
i < isize; ++
i) {
165 oldPixVector.push_back(
pixel(
i));
226 if (
one.minPixelRow() <
other.minPixelRow()) {
228 }
else if (
one.minPixelRow() >
other.minPixelRow()) {
230 }
else if (
one.minPixelCol() <
other.minPixelCol()) {
float getSplitClusterErrorX() const
void setSplitClusterErrorY(float erry)
float getSplitClusterErrorY() const
std::vector< PixelDigi >::const_iterator PixelDigiIter
std::pair< PixelDigiIter, PixelDigiIter > PixelDigiRange
static int overflow_(uint16_t span)
uint16_t theOriginalClusterId
const std::vector< uint8_t > & pixelOffset() const
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)
std::vector< uint16_t > thePixelADC
static constexpr uint16_t invalidClusterId
void setOriginalId(uint16_t id)
const std::vector< Pixel > pixels() const
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 xmin, uint16_t ymin, uint16_t id=invalidClusterId)
edm::Ref< SiPixelClusterCollection, SiPixelCluster > SiPixelClusterRef
void add(const PixelPos &pix, int adc)
constexpr PixelPos operator+(const Shift &shift) const
edm::DetSetRefVector< SiPixelCluster > SiPixelClusterRefVector
bool operator<(const SiPixelCluster &one, const SiPixelCluster &other)
std::vector< uint8_t > thePixelOffset
constexpr PixelPos(int row, int col)
~SiPixelCluster()=default
constexpr bool operator==(const PixelPos &pos) const
void setSplitClusterErrorX(float errx)
SiPixelCluster & operator=(SiPixelCluster const &)=default
edm::DetSetVector< SiPixelCluster > SiPixelClusterCollection
edm::Ref< SiPixelClusterCollectionNew, SiPixelCluster > SiPixelClusterRefNew
edmNew::DetSetVector< SiPixelCluster > SiPixelClusterCollectionNew
Pixel cluster – collection of neighboring pixels above threshold.
constexpr int row() const
static unsigned int const shift
constexpr int col() const
static constexpr unsigned int MAXSPAN
uint16_t *__restrict__ uint16_t const *__restrict__ adc
const std::vector< uint16_t > & pixelADC() const