Definition at line 44 of file HIPixelClusterVtxProducer.cc.
References MillePedeFileConverter_cfg::e, mps_fire::end, submitPVResolutionJobs::err, makeMEIFBenchmarkPlots::ev, getContainedHits(), edm::EventSetup::getData(), hfClusterShapes_cfi::hits, l1ctLayer2EG_cff::id, TrackerGeometry::idToDet(), createfilelist::int, PixelTopology::isItEdgePixelInX(), PixelTopology::isItEdgePixelInY(), LogTrace, maxZ_, minZ_, eostools::move(), nhits, muonClassificationByHits_cfi::pixel, PixelSubdetector::PixelBarrel, HIPixelClusterVtxProducer::VertexHit::r, PixelGeomDetUnit::specificTopology(), srcPixels_, GeomDet::toGlobal(), trackerToken_, AlignmentTracksFromVertexSelector_cfi::vertices, HIPixelClusterVtxProducer::VertexHit::w, hit::x, hit::y, HIPixelClusterVtxProducer::VertexHit::z, hit::z, HLTMuonOfflineAnalyzer_cfi::z0, and zStep_.
46 auto vertices = std::make_unique<reco::VertexCollection>();
53 if (hRecHits.isValid()) {
58 std::vector<VertexHit> vhits;
70 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
71 bool pixelOnEdge =
false;
72 for (std::vector<SiPixelCluster::Pixel>::const_iterator
pixel = pixels.begin();
pixel != pixels.end();
74 int pixelX =
pixel->x;
75 int pixelY =
pixel->y;
90 vh.w =
hit->cluster()->sizeY();
96 int nhits = 0, nhits_max = 0;
97 double chi = 0, chi_max = 1
e+9;
102 if (
nhits > nhits_max) {
106 if (
nhits >= nhits_max && chi < chi_max) {
112 LogTrace(
"MinBiasTracking") <<
" [vertex position] estimated = " << zest
113 <<
" | pixel barrel hits = " << vhits.size();
117 err(2, 2) = 0.6 * 0.6;
Point3DBase< Scalar, LocalTag > LocalPoint
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
int getContainedHits(const std::vector< VertexHit > &hits, double z0, double &chi)
math::Error< dimension >::type Error
covariance error matrix (3x3)
virtual bool isItEdgePixelInX(int ixbin) const =0
math::XYZPoint Point
point in the space
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerToken_
edm::EDGetTokenT< SiPixelRecHitCollection > srcPixels_
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
virtual bool isItEdgePixelInY(int iybin) const =0
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.