|
|
Go to the documentation of this file. 1 #ifndef DataFormats_SiPixel_Cluster_SiPixelCluster_h
2 #define DataFormats_SiPixel_Cluster_SiPixelCluster_h
32 constexpr
Pixel(
int pix_x,
int pix_y,
int pix_adc) :
x(pix_x),
y(pix_y),
adc(pix_adc) {}
43 constexpr
int dx()
const {
return dx_; }
44 constexpr
int dy()
const {
return dy_; }
56 constexpr
int row()
const {
return row_; }
57 constexpr
int col()
const {
return col_; }
68 static constexpr
unsigned int MAXSPAN = 255;
69 static constexpr
unsigned int MAXPOS = 2047;
86 for (
unsigned int i = 0;
i != isize; ++
i) {
102 void add(
const PixelPos& pix,
int adc);
108 for (
int i = 0;
i < isize; ++
i)
116 for (
int i = 0;
i < isize; ++
i)
133 for (
int i = 0;
i < isize; ++
i)
147 const std::vector<Pixel>
pixels()
const {
148 std::vector<Pixel> oldPixVector;
150 oldPixVector.reserve(isize);
151 for (
int i = 0;
i < isize; ++
i) {
152 oldPixVector.push_back(
pixel(
i));
207 if (
one.minPixelRow() <
other.minPixelRow()) {
209 }
else if (
one.minPixelRow() >
other.minPixelRow()) {
211 }
else if (
one.minPixelCol() <
other.minPixelCol()) {
void packCol(uint16_t ymin, uint16_t yspan)
edmNew::DetSetVector< SiPixelCluster > SiPixelClusterCollectionNew
SiPixelCluster(unsigned int isize, uint16_t const *adcs, uint16_t const *xpos, uint16_t const *ypos, uint16_t const xmin, uint16_t const ymin)
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
std::pair< PixelDigiIter, PixelDigiIter > PixelDigiRange
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
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)
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
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
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