72 inputTag_ (config.getParameter<edm::
InputTag>(
"inputTag")),
73 minZ_ (config.getParameter<double>(
"minZ")),
74 maxZ_ (config.getParameter<double>(
"maxZ")),
75 zStep_ (config.getParameter<double>(
"zStep"))
79 produces<reco::ClusterCompatibility>();
102 std::vector<VertexHit> vhits;
113 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
114 bool pixelOnEdge =
false;
115 for(std::vector<SiPixelCluster::Pixel>::const_iterator pixel = pixels.begin();
116 pixel != pixels.end(); ++pixel) {
117 int pixelX = pixel->x;
118 int pixelY = pixel->y;
128 hit->localPosition().
y(),
129 hit->localPosition().
z());
134 vh.
w =
hit->cluster()->sizeY();
138 creco->setNValidPixelHits(nPxlHits);
160 for(std::vector<VertexHit>::const_iterator
hit = hits.begin();
hit!= hits.end();
hit++) {
165 double p = 2 * fabs(
hit->
z - z0)/
hit->r + 0.5;
166 if(fabs(p -
hit->w) <= 1.) {
167 chi += fabs(p -
hit->w);
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
virtual bool isItEdgePixelInX(int ixbin) const =0
ClusterCompatibilityProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ContainedHits getContainedHits(const std::vector< VertexHit > &hits, double z0) const
~ClusterCompatibilityProducer()
data_type const * data(size_t cell) const
T const * product() const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
T const * product() const
edm::EDGetTokenT< SiPixelRecHitCollection > inputToken_
virtual bool isItEdgePixelInY(int iybin) const =0
virtual void produce(edm::Event &, const edm::EventSetup &) override
virtual const TrackerGeomDet * idToDet(DetId) const