22 int nhits = (*it)->numberOfValidHits();
23 if( nhits > maxHits ) { maxHits =
nhits;
id=
i; }
trackRef_iterator tracks_end() const
last iterator over tracks
bool isValid() const
Tells whether the vertex is valid.
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
trackRef_iterator tracks_begin() const
first iterator over tracks
int secondaryTrackMaxHits(const reco::Vertex &vtx, int &id)
size_t tracksSize() const
number of tracks
void calculate(const reco::Vertex &vtx)