|
|
Go to the documentation of this file.
29 : srcPixelsString_(ps.getParameter<
std::
string>(
"pixelRecHits")),
30 minZ_(ps.getParameter<double>(
"minZ")),
31 maxZ_(ps.getParameter<double>(
"maxZ")),
32 zStep_(ps.getParameter<double>(
"zStep"))
36 produces<reco::VertexCollection>();
48 auto vertices = std::make_unique<reco::VertexCollection>();
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;
135 for (std::vector<VertexHit>::const_iterator
hit =
hits.begin();
hit !=
hits.end();
hit++) {
136 double p = 2 * fabs(
hit->
z -
z0) /
hit->r + 0.5;
138 chi += fabs(
p -
hit->w);
const TrackerGeomDet * idToDet(DetId) const override
void produce(edm::Event &ev, const edm::EventSetup &es) override
T const * product() const
int getContainedHits(const std::vector< VertexHit > &hits, double z0, double &chi)
T const * product() const
virtual bool isItEdgePixelInX(int ixbin) const =0
math::Error< dimension >::type Error
covariance error matrix (3x3)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Point3DBase< Scalar, LocalTag > LocalPoint
HIPixelClusterVtxProducer(const edm::ParameterSet &ps)
virtual bool isItEdgePixelInY(int iybin) const =0
std::string srcPixelsString_
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
math::XYZPoint Point
point in the space
edm::EDGetTokenT< SiPixelRecHitCollection > srcPixels_
~HIPixelClusterVtxProducer() override