9 for (
unsigned int i=0;
i<v.tracks().size(); ++
i) {
10 double pt = v.tracks()[
i]->pt();
12 if (pt > 10.0) pt = 10.0;
21 double pt = (*i)->pt();
23 if (pt > 10.0) pt = 10.0;
trackRef_iterator tracks_end() const
last iterator over tracks
bool operator()(const PVCluster &v1, const PVCluster &v2) const
Use this operator in a std::sort to sort them in decreasing sumPt.
double pTSquaredSum(const PVCluster &v) const
Calculate sum of square of the pT's of the tracks in the vertex.
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
PVClusterComparer()
Constructor does nothing, no data members.
trackRef_iterator tracks_begin() const
first iterator over tracks