#include <PrimaryVertexSorting.h>
Public Types | |
enum | Quality { UsedInFit =0, PrimaryDz, BTrack, OtherDz, NotReconstructedPrimary, Unassigned =99 } |
Public Member Functions | |
PrimaryVertexSorting (const edm::ParameterSet &iConfig) | |
float | score (const reco::Vertex &pv, const std::vector< const reco::Candidate * > &candidates, bool useMet) const |
~PrimaryVertexSorting () | |
Definition at line 17 of file PrimaryVertexSorting.h.
Enumerator | |
---|---|
UsedInFit | |
PrimaryDz | |
BTrack | |
OtherDz | |
NotReconstructedPrimary | |
Unassigned |
Definition at line 19 of file PrimaryVertexSorting.h.
|
inline |
Definition at line 21 of file PrimaryVertexSorting.h.
|
inline |
Definition at line 25 of file PrimaryVertexSorting.h.
References objects.IsoTrackAnalyzer::candidates, MetAnalyzer::pv(), and score().
float PrimaryVertexSorting::score | ( | const reco::Vertex & | pv, |
const std::vector< const reco::Candidate * > & | candidates, | ||
bool | useMet | ||
) | const |
Definition at line 18 of file PrimaryVertexSorting.cc.
References funct::abs(), reco::Candidate::bestTrack(), EnergyCorrector::c, mps_fire::i, edm::isNotFinite(), fwrapper::jets, RazorAnalyzer::met, or, reco::Candidate::p4(), p4, reco::Candidate::pdgId(), EnergyCorrector::pt, reco::Candidate::pt(), reco::TrackBase::ptError(), reco::Candidate::px(), reco::Candidate::py(), reco::Candidate::pz(), Scenarios_cff::scale, lumiContext::sequence, mathSSE::sqrt(), and objects.METAnalyzer::sumEt.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce(), and ~PrimaryVertexSorting().