67 minZ_(config.getParameter<double>(
"minZ")),
68 maxZ_(config.getParameter<double>(
"maxZ")),
69 zStep_(config.getParameter<double>(
"zStep")) {
72 produces<reco::ClusterCompatibility>();
78 auto creco = std::make_unique<reco::ClusterCompatibility>();
85 if (hRecHits.isValid()) {
93 std::vector<VertexHit> vhits;
105 std::vector<SiPixelCluster::Pixel> pixels(
hit->cluster()->pixels());
106 bool pixelOnEdge =
false;
107 for (std::vector<SiPixelCluster::Pixel>::const_iterator
pixel = pixels.begin();
pixel != pixels.end(); ++
pixel) {
108 int pixelX =
pixel->x;
109 int pixelY =
pixel->y;
123 vh.
w =
hit->cluster()->sizeY();
127 creco->setNValidPixelHits(nPxlHits);
139 const std::vector<VertexHit> &
hits,
double z0)
const {
144 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 (fabs(p -
hit->w) <= 1.) {
151 chi += fabs(p -
hit->w);
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
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
#define DEFINE_FWK_MODULE(type)
ClusterCompatibilityProducer(const edm::ParameterSet &)
ContainedHits getContainedHits(const std::vector< VertexHit > &hits, double z0) const
data_type const * data(size_t cell) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
edm::EDGetTokenT< SiPixelRecHitCollection > inputToken_
const TrackerGeomDet * idToDet(DetId) const override
~ClusterCompatibilityProducer() override
void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const