Definition at line 77 of file ClusterCompatibilityProducer.cc.
References HltBtagPostValidation_cff::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, muonClassificationByHits_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, HLTMuonOfflineAnalyzer_cfi::z0, and zStep_.
78 auto creco = std::make_unique<reco::ClusterCompatibility>();
85 if (hRecHits.isValid()) {
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;
123 vh.w =
hit->cluster()->sizeY();
127 creco->setNValidPixelHits(nPxlHits);
132 creco->append(c.z0, c.nHit, c.chi);
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
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
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