1 #ifndef DataFormats_SiPixel_Cluster_SiPixelCluster_h
2 #define DataFormats_SiPixel_Cluster_SiPixelCluster_h
19 #include "boost/cstdint.hpp"
29 Pixel(
int pix_x,
int pix_y,
int pix_adc) :
30 x(pix_x),
y(pix_y),
adc(pix_adc) {}
76 void add(
const PixelPos& pix,
int adc);
82 for (
int i=0;
i<isize; ++
i)
89 for (
int i=0;
i<isize; ++
i)
111 for (
int i=0;
i<isize; ++
i)
122 for (
int i=0;
i<isize; ++
i) {
124 if (xsize > maxRow) maxRow = xsize;
132 for (
int i=0;
i<isize; ++
i) {
134 if (ysize > maxCol) maxCol = ysize;
142 const std::vector<Pixel>
pixels()
const {
143 std::vector<Pixel> oldPixVector;
145 oldPixVector.reserve(isize);
146 for(
int i=0;
i<isize; ++
i) {
int adc(sample_type sample)
get the ADC sample (12 bits)
void setSplitClusterErrorY(float erry)
PixelPos(int row, int col)
std::vector< PixelDigi >::const_iterator PixelDigiIter
unsigned int geographicalId() const
edm::RefProd< SiPixelClusterCollection > SiPixelClusterRefProd
std::vector< uint16_t > thePixelADC
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
edm::Ref< SiPixelClusterCollection, SiPixelCluster > SiPixelClusterRef
void add(const PixelPos &pix, int adc)
edm::DetSetRefVector< SiPixelCluster > SiPixelClusterRefVector
const std::vector< uint8_t > & pixelOffset() const
const std::vector< uint16_t > & pixelADC() const
std::vector< uint8_t > thePixelOffset
void setSplitClusterErrorX(float errx)
float getSplitClusterErrorY() const
edm::DetSetVector< SiPixelCluster > SiPixelClusterCollection
edm::Ref< SiPixelClusterCollectionNew, SiPixelCluster > SiPixelClusterRefNew
Pixel(int pix_x, int pix_y, int pix_adc)
edmNew::DetSetVector< SiPixelCluster > SiPixelClusterCollectionNew
Pixel cluster – collection of neighboring pixels above threshold.
PixelPos operator+(const Shift &shift)
float getSplitClusterErrorX() const
static unsigned int const shift
std::pair< PixelDigiIter, PixelDigiIter > PixelDigiRange
const std::vector< Pixel > pixels() const