|
|
Go to the documentation of this file.
39 int getContainedHits(
const vector<VertexHit>&
hits,
float z0,
float& chi) {
43 for (vector<VertexHit>::const_iterator
hit =
hits.begin();
hit !=
hits.end();
hit++) {
45 float p = 2 * fabs(
hit->
z -
z0) /
hit->r + 0.5;
47 if (fabs(
p -
hit->w) <= 1.) {
48 chi += fabs(
p -
hit->w);
61 produces<reco::VertexCollection>();
84 auto vertices = std::make_unique<reco::VertexCollection>();
86 if (!thePixelHits->
empty()) {
87 vector<VertexHit>
hits;
90 recHitEnd = thePixelHits->
data().end();
98 vector<SiPixelCluster::Pixel> pixels =
recHit->cluster()->pixels();
100 bool pixelOnEdge =
false;
101 for (vector<SiPixelCluster::Pixel>::const_iterator
pixel = pixels.begin();
pixel != pixels.end();
pixel++) {
103 int pos_y = (
int)
pixel->y;
105 if (theTopol->isItEdgePixelInX(pos_x) || theTopol->isItEdgePixelInY(pos_y)) {
131 float chi_max = 1
e+9;
135 for (
float z0 = -15.9;
z0 <= 15.95;
z0 += 0.1) {
139 if (
nhits > nhits_max) {
144 if (
nhits >= nhits_max)
152 LogTrace(
"MinBiasTracking") <<
" [vertex position] estimated = " << zest
153 <<
" | pixel barrel hits = " << thePixelHits->
size();
156 err(2, 2) = 0.6 * 0.6;
const TrackerGeomDet * idToDet(DetId) const override
T const * product() const
edm::EDGetTokenT< SiPixelRecHitCollection > pixelToken_
T const * product() const
math::Error< dimension >::type Error
covariance error matrix (3x3)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Point3DBase< Scalar, LocalTag > LocalPoint
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
PixelVertexProducerClusters(const edm::ParameterSet &ps)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
void produce(edm::StreamID, edm::Event &ev, const edm::EventSetup &es) const override
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
~PixelVertexProducerClusters() override
math::XYZPoint Point
point in the space
data_type const * data(size_t cell) const