#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 | ||
) |
Definition at line 16 of file PVClusterComparer.cc.
References setChisquareQuantile().
Use this operator in a std::sort to sort them in decreasing sumPt.
Definition at line 97 of file PVClusterComparer.cc.
References pTSquaredSum().
bool PVClusterComparer::operator() | ( | const reco::Vertex & | v1, |
const reco::Vertex & | v2 | ||
) |
Definition at line 100 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 25 of file PVClusterComparer.cc.
References i, maxChi2_, ndof, EnergyCorrector::pt, track_chi2_max_, track_prob_min_, track_pT_max_, track_pT_min_, and updateChisquareQuantile().
Referenced by operator()(), and PixelVertexCollectionTrimmer::produce().
double PVClusterComparer::pTSquaredSum | ( | const reco::Vertex & | v | ) |
Definition at line 49 of file PVClusterComparer.cc.
References i, maxChi2_, ndof, EnergyCorrector::pt, track_chi2_max_, track_prob_min_, track_pT_max_, track_pT_min_, reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), and updateChisquareQuantile().
void PVClusterComparer::setChisquareQuantile | ( | ) |
Definition at line 75 of file PVClusterComparer.cc.
References HLT_25ns14e33_v1_cff::maxChi2, maxChi2_, ndof, and track_prob_min_.
Referenced by PVClusterComparer().
void PVClusterComparer::updateChisquareQuantile | ( | size_t | ndof | ) |
Definition at line 86 of file PVClusterComparer.cc.
References 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().