10 , track_chi2_max_(9999999.)
11 , track_prob_min_(-1.)
17 : track_pT_min_ (track_pt_min)
18 , track_pT_max_ (track_pt_max)
19 , track_chi2_max_(track_chi2_max)
20 , track_prob_min_(track_prob_min)
27 for (
size_t i=0;
i<v.tracks().size(); ++
i) {
29 double pt = v.tracks()[
i]->pt();
36 size_t ndof = v.tracks()[
i]->ndof();
40 if (v.tracks()[
i]->chi2() >
maxChi2_[ndof] )
continue ;
54 double pt = (*i)->pt();
61 unsigned int ndof = (*i)->ndof();
65 if ((*i)->chi2() >
maxChi2_[ndof] )
continue ;
76 std::vector<double>
maxChi2(20, 0.);
78 for (
size_t ndof = 0; ndof <
maxChi2_.size(); ++ndof)
90 for (
size_t i = oldsize;
i <= ndof; ++
i) {
const double track_pT_min_
trackRef_iterator tracks_end() const
last iterator over tracks
void setChisquareQuantile()
std::vector< double > maxChi2_
double pTSquaredSum(const PVCluster &v)
Calculate sum of square of the pT's of the tracks in the vertex.
void updateChisquareQuantile(size_t ndof)
const double track_pT_max_
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
const double track_prob_min_
PVClusterComparer()
Constructor does nothing, no data members.
bool operator()(const PVCluster &v1, const PVCluster &v2)
Use this operator in a std::sort to sort them in decreasing sumPt.
trackRef_iterator tracks_begin() const
first iterator over tracks
const double track_chi2_max_