33 : srcPixels_(ps.getParameter<std::string>(
"pixelRecHits")),
34 minZ_(ps.getParameter<double>(
"minZ")),
35 maxZ_(ps.getParameter<double>(
"maxZ")),
36 zStep_(ps.getParameter<double>(
"zStep"))
40 produces<reco::VertexCollection>();
72 std::vector<VertexHit> vhits;
83 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
84 bool pixelOnEdge =
false;
85 for(std::vector<SiPixelCluster::Pixel>::const_iterator pixel = pixels.begin();
86 pixel != pixels.end(); ++pixel) {
87 int pixelX = pixel->x;
88 int pixelY = pixel->y;
99 hit->localPosition().
y(),
100 hit->localPosition().
z());
105 vh.
w =
hit->cluster()->sizeY();
111 int nhits = 0, nhits_max = 0;
112 double chi = 0, chi_max = 1
e+9;
117 if(nhits > nhits_max) {
121 if(nhits >= nhits_max && chi < chi_max) {
128 <<
" [vertex position] estimated = " << zest
129 <<
" | pixel barrel hits = " << vhits.size();
133 err(2,2) = 0.6 * 0.6;
135 vertices->push_back(ver);
148 for(std::vector<VertexHit>::const_iterator
hit = hits.begin();
hit!= hits.end();
hit++) {
149 double p = 2 * fabs(
hit->
z - z0)/
hit->r + 0.5;
150 if(TMath::Abs(p -
hit->w) <= 1.) {
151 chi += fabs(p -
hit->w);
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
int getContainedHits(const std::vector< VertexHit > &hits, double z0, double &chi)
HIPixelClusterVtxProducer(const edm::ParameterSet &ps)
virtual void produce(edm::Event &ev, const edm::EventSetup &es)
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)
std::vector< Vertex > VertexCollection
collection of Vertex objects
~HIPixelClusterVtxProducer()
virtual bool isItEdgePixelInX(int ixbin) const =0
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
data_type const * data(size_t cell) const
math::XYZPoint Point
point in the space
virtual const GeomDet * idToDet(DetId) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
T const * product() const
T const * product() const
virtual bool isItEdgePixelInY(int iybin) const =0