#include <PVClusterComparer.h>
Public Member Functions | |
bool | operator() (const PVCluster &v1, const PVCluster &v2) |
Use this operator in a std::sort to sort them in decreasing sumPt. More... | |
bool | operator() (const reco::Vertex &v1, const reco::Vertex &v2) |
double | pTSquaredSum (const PVCluster &v) |
Calculate sum of square of the pT's of the tracks in the vertex. More... | |
double | pTSquaredSum (const reco::Vertex &v) |
PVClusterComparer () | |
Constructor does nothing, no data members. More... | |
PVClusterComparer (double track_pt_min, double track_pt_max, double track_chi2_max, double track_prob_min) | |
void | setChisquareQuantile () |
void | updateChisquareQuantile (size_t ndof) |
Public Attributes | |
std::vector< double > | maxChi2_ |
const double | track_chi2_max_ |
const double | track_prob_min_ |
const double | track_pT_max_ |
const double | track_pT_min_ |
RecoPixelVertexing/PixelVertexFinding/PVClusterComparer.h
This helper class is used to sort the collection of vertexes by sumPt. It is used in DivisiveVertexFinder. The sum of the squares of the pT is only done for tracks with pT>2.5 GeV. If the pT>10 GeV, then the max value of 10 is used. (The pT of pixel tracks is not very precise.)
Definition at line 16 of file PVClusterComparer.h.
PVClusterComparer::PVClusterComparer | ( | ) |
Constructor does nothing, no data members.
Definition at line 7 of file PVClusterComparer.cc.
References setChisquareQuantile().
PVClusterComparer::PVClusterComparer | ( | double | track_pt_min, |
double | track_pt_max, | ||
double | track_chi2_max, | ||
double | track_prob_min | ||
) |
Use this operator in a std::sort to sort them in decreasing sumPt.
Definition at line 96 of file PVClusterComparer.cc.
References pTSquaredSum().
bool PVClusterComparer::operator() | ( | const reco::Vertex & | v1, |
const reco::Vertex & | v2 | ||
) |
Definition at line 99 of file PVClusterComparer.cc.
References pTSquaredSum().
double PVClusterComparer::pTSquaredSum | ( | const PVCluster & | v | ) |
Calculate sum of square of the pT's of the tracks in the vertex.
Definition at line 23 of file PVClusterComparer.cc.
References mps_fire::i, maxChi2_, ndof, DiDispStaMuonMonitor_cfi::pt, track_chi2_max_, track_prob_min_, track_pT_max_, track_pT_min_, updateChisquareQuantile(), and findQualityFiles::v.
Referenced by operator()().
double PVClusterComparer::pTSquaredSum | ( | const reco::Vertex & | v | ) |
Definition at line 50 of file PVClusterComparer.cc.
References mps_fire::i, maxChi2_, ndof, DiDispStaMuonMonitor_cfi::pt, track_chi2_max_, track_prob_min_, track_pT_max_, track_pT_min_, updateChisquareQuantile(), and findQualityFiles::v.
void PVClusterComparer::setChisquareQuantile | ( | ) |
Definition at line 78 of file PVClusterComparer.cc.
References maxChi2_, ndof, and track_prob_min_.
Referenced by PVClusterComparer().
void PVClusterComparer::updateChisquareQuantile | ( | size_t | ndof | ) |
Definition at line 87 of file PVClusterComparer.cc.
References hltPixelTracks_cff::chi2, mps_fire::i, maxChi2_, ndof, and track_prob_min_.
Referenced by pTSquaredSum().
std::vector<double> PVClusterComparer::maxChi2_ |
Definition at line 32 of file PVClusterComparer.h.
Referenced by pTSquaredSum(), setChisquareQuantile(), and updateChisquareQuantile().
const double PVClusterComparer::track_chi2_max_ |
Definition at line 36 of file PVClusterComparer.h.
Referenced by pTSquaredSum().
const double PVClusterComparer::track_prob_min_ |
Definition at line 37 of file PVClusterComparer.h.
Referenced by pTSquaredSum(), setChisquareQuantile(), and updateChisquareQuantile().
const double PVClusterComparer::track_pT_max_ |
Definition at line 35 of file PVClusterComparer.h.
Referenced by pTSquaredSum().
const double PVClusterComparer::track_pT_min_ |
Definition at line 34 of file PVClusterComparer.h.
Referenced by pTSquaredSum().