Definition at line 46 of file HIPixelClusterVtxProducer.cc.
References edmNew::DetSetVector< T >::data(), MillePedeFileConverter_cfg::e, end, runTheMatrix::err, edm::EventSetup::get(), edm::Event::getByToken(), getContainedHits(), hfClusterShapes_cfi::hits, triggerObjects_cff::id, TrackerGeometry::idToDet(), createfilelist::int, PixelTopology::isItEdgePixelInX(), PixelTopology::isItEdgePixelInY(), LogTrace, maxZ_, minZ_, eostools::move(), nhits, muonClassificationByHits_cfi::pixel, PixelSubdetector::PixelBarrel, edm::ESHandle< T >::product(), edm::Event::put(), HIPixelClusterVtxProducer::VertexHit::r, PixelGeomDetUnit::specificTopology(), srcPixels_, GeomDet::toGlobal(), pwdgSkimBPark_cfi::vertices, HIPixelClusterVtxProducer::VertexHit::w, hit::x, hit::y, HIPixelClusterVtxProducer::VertexHit::z, hit::z, HLTMuonOfflineAnalyzer_cfi::z0, and zStep_.
48 auto vertices = std::make_unique<reco::VertexCollection>();
55 if (hRecHits.isValid()) {
62 std::vector<VertexHit> vhits;
74 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
75 bool pixelOnEdge =
false;
76 for (std::vector<SiPixelCluster::Pixel>::const_iterator
pixel = pixels.begin();
pixel != pixels.end();
78 int pixelX =
pixel->x;
79 int pixelY =
pixel->y;
94 vh.w =
hit->cluster()->sizeY();
100 int nhits = 0, nhits_max = 0;
101 double chi = 0, chi_max = 1
e+9;
106 if (nhits > nhits_max) {
110 if (nhits >= nhits_max && chi < chi_max) {
116 LogTrace(
"MinBiasTracking") <<
" [vertex position] estimated = " << zest
117 <<
" | pixel barrel hits = " << vhits.size();
121 err(2, 2) = 0.6 * 0.6;
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Point3DBase< Scalar, LocalTag > LocalPoint
int getContainedHits(const std::vector< VertexHit > &hits, double z0, double &chi)
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.
math::Error< dimension >::type Error
covariance error matrix (3x3)
virtual bool isItEdgePixelInY(int iybin) const =0
data_type const * data(size_t cell) const
math::XYZPoint Point
point in the space
edm::EDGetTokenT< SiPixelRecHitCollection > srcPixels_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
const TrackerGeomDet * idToDet(DetId) const override
T const * product() const