104 if(thePixelHits->
size() > 0)
106 vector<VertexHit> hits;
109 recHit = thePixelHits->
data().begin(),
110 recHitEnd = thePixelHits->
data().end();
111 recHit != recHitEnd; ++recHit)
113 if(recHit->isValid())
116 DetId id = recHit->geographicalId();
120 vector<SiPixelCluster::Pixel> pixels = recHit->cluster()->pixels();
122 bool pixelOnEdge =
false;
123 for(vector<SiPixelCluster::Pixel>::const_iterator
124 pixel = pixels.begin(); pixel!= pixels.end(); pixel++)
126 int pos_x = (int)pixel->x;
127 int pos_y = (
int)pixel->y;
131 { pixelOnEdge =
true;
break; }
140 recHit->localPosition().y(),
141 recHit->localPosition().z());
148 hit.
w = recHit->cluster()->sizeY();
155 int nhits;
int nhits_max = 0;
156 float chi;
float chi_max = 1
e+9;
160 for(
float z0 = -15.9; z0 <= 15.95; z0 += 0.1)
166 if(nhits > nhits_max)
167 { chi_max = 1
e+9; nhits_max = nhits; }
169 if(nhits >= nhits_max)
171 { chi_max = chi; zest = z0; }
176 <<
" [vertex position] estimated = " << zest
177 <<
" | pixel barrel hits = " << thePixelHits->
size();
180 err(2,2) = 0.6 * 0.6;
182 vertices->push_back(ver);
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const TrackerGeometry * theTracker
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
virtual bool isItEdgePixelInX(int ixbin) const =0
int getContainedHits(std::vector< VertexHit > hits, float z0, float &chi)
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
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual bool isItEdgePixelInY(int iybin) const =0