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>();
87 auto creco = std::make_unique<reco::ClusterCompatibility>();
94 if (hRecHits.isValid()) {
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();
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
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Point3DBase< Scalar, LocalTag > LocalPoint
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual bool isItEdgePixelInX(int ixbin) const =0
#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 isItEdgePixelInY(int iybin) const =0
ClusterCompatibilityProducer(const edm::ParameterSet &)
ContainedHits getContainedHits(const std::vector< VertexHit > &hits, double z0) const
~ClusterCompatibilityProducer()
data_type const * data(size_t cell) const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
edm::EDGetTokenT< SiPixelRecHitCollection > inputToken_
const TrackerGeomDet * idToDet(DetId) const override
virtual void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const