Definition at line 80 of file ClusterCompatibilityProducer.cc.
References HltBtagPostValidation_cff::c, mps_fire::end, getContainedHits(), edm::EventSetup::getHandle(), hfClusterShapes_cfi::hits, l1ctLayer2EG_cff::id, TrackerGeometry::idToDet(), iEvent, inputToken_, createfilelist::int, PixelTopology::isItEdgePixelInX(), PixelTopology::isItEdgePixelInY(), maxZ_, minZ_, eostools::move(), muonClassificationByHits_cfi::pixel, PixelSubdetector::PixelBarrel, edm::ESHandle< T >::product(), ClusterCompatibilityProducer::VertexHit::r, PixelGeomDetUnit::specificTopology(), GeomDet::toGlobal(), trackerToken_, ClusterCompatibilityProducer::VertexHit::w, hit::x, hit::y, ClusterCompatibilityProducer::VertexHit::z, hit::z, HLTMuonOfflineAnalyzer_cfi::z0, and zStep_.
81 auto creco = std::make_unique<reco::ClusterCompatibility>();
88 if (hRecHits.isValid()) {
95 std::vector<VertexHit> vhits;
107 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
108 bool pixelOnEdge =
false;
109 for (std::vector<SiPixelCluster::Pixel>::const_iterator
pixel = pixels.begin();
pixel != pixels.end(); ++
pixel) {
110 int pixelX =
pixel->x;
111 int pixelY =
pixel->y;
125 vh.w =
hit->cluster()->sizeY();
129 creco->setNValidPixelHits(nPxlHits);
134 creco->append(
c.z0,
c.nHit,
c.chi);
Point3DBase< Scalar, LocalTag > LocalPoint
virtual bool isItEdgePixelInX(int ixbin) const =0
T const * product() const
ContainedHits getContainedHits(const std::vector< VertexHit > &hits, double z0) const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const TrackerGeomDet * idToDet(DetId) const override
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerToken_
edm::EDGetTokenT< SiPixelRecHitCollection > inputToken_
virtual bool isItEdgePixelInY(int iybin) const =0
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.