File indexing completed on 2024-09-07 04:38:03
0001 #ifndef RecoVertex_PixelVertexFinding_PVClusterComparer_h
0002 #define RecoVertex_PixelVertexFinding_PVClusterComparer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include "RecoVertex/PixelVertexFinding/interface/PVCluster.h"
0014 #include "DataFormats/VertexReco/interface/Vertex.h"
0015
0016 class PVClusterComparer {
0017 public:
0018
0019 PVClusterComparer();
0020 PVClusterComparer(double track_pt_min, double track_pt_max, double track_chi2_max, double track_prob_min);
0021
0022
0023 double pTSquaredSum(const PVCluster &v);
0024 double pTSquaredSum(const reco::Vertex &v);
0025 void setChisquareQuantile();
0026 void updateChisquareQuantile(size_t ndof);
0027
0028
0029 bool operator()(const PVCluster &v1, const PVCluster &v2);
0030 bool operator()(const reco::Vertex &v1, const reco::Vertex &v2);
0031
0032 std::vector<double> maxChi2_;
0033
0034 const double track_pT_min_;
0035 const double track_pT_max_;
0036 const double track_chi2_max_;
0037 const double track_prob_min_;
0038 };
0039 #endif