Definition at line 79 of file ClusterShape.cc.
References a, cms::cuda::assert(), b, data, PVValHelper::dx, PVValHelper::dy, mps_fire::i, createfilelist::int, PixelTopology::isItBigPixelInX(), PixelTopology::isItBigPixelInY(), PixelTopology::isItEdgePixelInX(), PixelTopology::isItEdgePixelInY(), LaserClient_cfi::low, SiPixelCluster::maxPixelCol(), SiPixelCluster::maxPixelRow(), SiPixelCluster::minPixelCol(), SiPixelCluster::minPixelRow(), heppy_hadd::odir, muonClassificationByHits_cfi::pixel, SiPixelCluster::pixel(), SiPixelCluster::pixelADC(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, alignCSCRings::s, jetUpdater_cfi::sort, PixelGeomDetUnit::specificTopology(), x, and y.
84 data.isStraight =
true;
85 data.isComplete =
true;
100 size_t npixels = cluster.
pixelADC().size();
102 for (
size_t i = 0;
i < npixels; ++
i) {
107 return (
a.x <
b.x) | ((
a.x ==
b.x) & (
a.y <
b.y));
118 data.isComplete =
false;
122 if (
pos.first >
x[1]) {
124 data.isStraight =
false;
129 data.isStraight =
false;
139 data.isStraight =
false;
144 for (
int ix = minPixelRow + 1; ix < maxPixelRow; ix++)
149 for (
int iy = minPixelCol + 1; iy < maxPixelCol; iy++)
161 data.hasBigPixelsOnlyInside = (
px <= 0 &&
py <= 0);
164 if (!
data.hasBigPixelsOnlyInside &&
odir == 0) {
166 data.isComplete =
false;
171 const int pre_dx =
x[1] -
x[0];
172 const int pre_dy =
y[1] -
y[0];
173 for (
unsigned int ax = 0; ax <=
px; ax++)
174 for (
unsigned int ay = 0; ay <=
py; ay++) {
175 int dx = pre_dx + ax;
176 int dy = pre_dy + ay;
180 pair<int, int>
s(
dx,
dy);
181 data.size.push_back_unchecked(
s);
std::vector< SiPixelCluster::Pixel > pixels_
virtual bool isItEdgePixelInX(int ixbin) const =0
bool processColumn(std::pair< int, int > pos, bool inTheLoop)
virtual bool isItBigPixelInX(int ixbin) const =0
virtual bool isItBigPixelInY(int iybin) const =0
virtual bool isItEdgePixelInY(int iybin) const =0
char data[epos_bytes_allocation]
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
const std::vector< uint16_t > & pixelADC() const