Definition at line 85 of file ClusterCompatibilityProducer.cc.
References EnergyCorrector::c, ClusterCompatibilityProducer::ContainedHits::chi, edmNew::DetSetVector< T >::data(), end, edm::EventSetup::get(), edm::Event::getByToken(), getContainedHits(), hfClusterShapes_cfi::hits, triggerObjects_cff::id, TrackerGeometry::idToDet(), inputToken_, createfilelist::int, PixelTopology::isItEdgePixelInX(), PixelTopology::isItEdgePixelInY(), maxZ_, minZ_, eostools::move(), ClusterCompatibilityProducer::ContainedHits::nHit, digitizers_cfi::pixel, PixelSubdetector::PixelBarrel, edm::ESHandle< T >::product(), edm::Event::put(), ClusterCompatibilityProducer::VertexHit::r, PixelGeomDetUnit::specificTopology(), GeomDet::toGlobal(), ClusterCompatibilityProducer::VertexHit::w, hit::x, hit::y, ClusterCompatibilityProducer::VertexHit::z, hit::z, ClusterCompatibilityProducer::ContainedHits::z0, and zStep_.
87 auto creco = std::make_unique<reco::ClusterCompatibility>();
94 if (hRecHits.isValid()) {
102 std::vector<VertexHit> vhits;
113 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
114 bool pixelOnEdge =
false;
115 for(std::vector<SiPixelCluster::Pixel>::const_iterator
pixel = pixels.begin();
117 int pixelX =
pixel->x;
118 int pixelY =
pixel->y;
128 hit->localPosition().
y(),
129 hit->localPosition().
z());
134 vh.w =
hit->cluster()->sizeY();
138 creco->setNValidPixelHits(nPxlHits);
144 creco->append(c.z0, c.nHit, c.chi);
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Point3DBase< Scalar, LocalTag > LocalPoint
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual bool isItEdgePixelInX(int ixbin) const =0
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
virtual bool isItEdgePixelInY(int iybin) const =0
ContainedHits getContainedHits(const std::vector< VertexHit > &hits, double z0) const
data_type const * data(size_t cell) const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
edm::EDGetTokenT< SiPixelRecHitCollection > inputToken_
const TrackerGeomDet * idToDet(DetId) const override
T const * product() const