|
|
Go to the documentation of this file. 1 #ifndef DataFormats_SiPixel_Cluster_SiPixelCluster_h
2 #define DataFormats_SiPixel_Cluster_SiPixelCluster_h
34 constexpr
Pixel(
int pix_x,
int pix_y,
int pix_adc) :
x(pix_x),
y(pix_y),
adc(pix_adc) {}
46 constexpr
int dx()
const {
return dx_; }
47 constexpr
int dy()
const {
return dy_; }
60 constexpr
int row()
const {
return row_; }
61 constexpr
int col()
const {
return col_; }
72 static constexpr
unsigned int MAXSPAN = 255;
73 static constexpr
unsigned int MAXPOS = 2047;
98 for (
unsigned int i = 0;
i < isize; ++
i) {
114 void add(
const PixelPos& pix,
int adc);
120 for (
int i = 0;
i < isize; ++
i)
128 for (
int i = 0;
i < isize; ++
i)
145 for (
int i = 0;
i < isize; ++
i)
159 const std::vector<Pixel>
pixels()
const {
160 std::vector<Pixel> oldPixVector;
162 oldPixVector.reserve(isize);
163 for (
int i = 0;
i < isize; ++
i) {
164 oldPixVector.push_back(
pixel(
i));
225 if (
one.minPixelRow() <
other.minPixelRow()) {
227 }
else if (
one.minPixelRow() >
other.minPixelRow()) {
229 }
else if (
one.minPixelCol() <
other.minPixelCol()) {
static constexpr uint16_t invalidClusterId
void packCol(uint16_t ymin, uint16_t yspan)
edmNew::DetSetVector< SiPixelCluster > SiPixelClusterCollectionNew
uint16_t *__restrict__ uint16_t const *__restrict__ adc
SiPixelCluster & operator=(SiPixelCluster const &)=default
bool operator<(const SiPixelCluster &one, const SiPixelCluster &other)
static constexpr unsigned int MAXSPAN
Pixel cluster – collection of neighboring pixels above threshold.
constexpr Shift(int dx, int dy)
edm::Ref< SiPixelClusterCollection, SiPixelCluster > SiPixelClusterRef
uint16_t theOriginalClusterId
std::pair< PixelDigiIter, PixelDigiIter > PixelDigiRange
float getSplitClusterErrorX() const
void add(const PixelPos &pix, int adc)
edm::DetSetRefVector< SiPixelCluster > SiPixelClusterRefVector
std::vector< PixelDigi >::const_iterator PixelDigiIter
static int overflow_(uint16_t span)
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)
constexpr PixelPos operator+(const Shift &shift) const
const std::vector< uint16_t > & pixelADC() const
void setSplitClusterErrorX(float errx)
constexpr Pixel(int pix_x, int pix_y, int pix_adc)
std::vector< uint16_t > thePixelADC
constexpr PixelPos(int row, int col)
float getSplitClusterErrorY() const
void setOriginalId(uint16_t id)
std::vector< uint8_t > thePixelOffset
static constexpr unsigned int MAXPOS
void packRow(uint16_t xmin, uint16_t xspan)
void setSplitClusterErrorY(float erry)
edm::RefProd< SiPixelClusterCollection > SiPixelClusterRefProd
static unsigned const int shift
~SiPixelCluster()=default
edm::DetSetVector< SiPixelCluster > SiPixelClusterCollection
constexpr int row() const
const std::vector< uint8_t > & pixelOffset() const
const std::vector< Pixel > pixels() const
edm::Ref< SiPixelClusterCollectionNew, SiPixelCluster > SiPixelClusterRefNew
constexpr int col() const