Go to the documentation of this file.
6 constexpr
static int qualityMap[8] = {1, 0, 1, 1, 4, 4, 5, 6};
20 const float catch_infs(
const float in,
const float replace_value) {
24 else if (in < -1e32 || in > 1e32)
33 const float replace_value,
34 const float lowerbound,
35 const float upperbound,
37 const bool use_offsets) {
39 if (withoutinfs +
offset < lowerbound)
41 if (withoutinfs +
offset > upperbound)
70 return p.Unit().Dot(
d.Unit());
74 float mindrsvpfcand(
const std::vector<reco::VertexCompositePtrCandidate> &svs,
77 for (
unsigned int i0 = 0; i0 < svs.size(); ++i0) {
87 template bool sv_vertex_comparator<reco::VertexCompositePtrCandidate, reco::Vertex>(
92 if (
pfcand.trackRef().isNonnull() &&
pv->trackWeight(
pfcand.trackRef()) > 0.5 && pv_ass_quality == 7) {
103 uint16_t qualityFlags = 0;
119 uint16_t qualityFlags = 0;
math::XYZVector Vector
point in the space
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
Measurement1D vertexDxy(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
math::Error< dimension >::type CovarianceMatrix
covariance error matrix (3x3)
constexpr static int qualityMap[8]
qualityFlagsShiftsAndMasks
const float catch_infs_and_bound(const float in, const float replace_value, const float lowerbound, const float upperbound, const float offset=0., const bool use_offsets=true)
float vtx_ass_from_pfcand(const reco::PFCandidate &pfcand, int pv_ass_quality, const reco::VertexRef &pv)
const float catch_infs(const float in, const float replace_value=0.)
float mindrsvpfcand(const std::vector< reco::VertexCompositePtrCandidate > &svs, const reco::Candidate *cand, float mindr=0.4)
const Point & vertex() const override
vertex position (overwritten by PF...)
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
float quality_from_pfcand(const reco::PFCandidate &pfcand)
Measurement1D vertexD3d(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Particle reconstructed by the particle flow algorithm.
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix
float lost_inner_hits_from_pfcand(const reco::PFCandidate &pfcand)
float vertexDdotP(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv)