67 minZ_(
config.getParameter<double>(
"minZ")),
68 maxZ_(
config.getParameter<double>(
"maxZ")),
69 zStep_(
config.getParameter<double>(
"zStep")) {
72 produces<reco::ClusterCompatibility>();
78 auto creco = std::make_unique<reco::ClusterCompatibility>();
93 std::vector<VertexHit> vhits;
105 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
106 bool pixelOnEdge =
false;
107 for (std::vector<SiPixelCluster::Pixel>::const_iterator
pixel = pixels.begin();
pixel != pixels.end(); ++
pixel) {
108 int pixelX =
pixel->x;
109 int pixelY =
pixel->y;
110 if (pixTopo->isItEdgePixelInX(pixelX) || pixTopo->isItEdgePixelInY(pixelY)) {
123 vh.
w =
hit->cluster()->sizeY();
127 creco->setNValidPixelHits(nPxlHits);
132 creco->append(
c.z0,
c.nHit,
c.chi);
139 const std::vector<VertexHit> &
hits,
double z0)
const {
144 for (std::vector<VertexHit>::const_iterator
hit =
hits.begin();
hit !=
hits.end();
hit++) {
149 double p = 2 * fabs(
hit->
z -
z0) /
hit->r + 0.5;
150 if (fabs(
p -
hit->w) <= 1.) {
151 chi += fabs(
p -
hit->w);