22 const float replace_value) {
26 else if(in < -1e32 || in > 1e32)
35 const float replace_value,
36 const float lowerbound,
37 const float upperbound,
39 const bool use_offsets){
40 float withoutinfs=
catch_infs(in,replace_value);
41 if(withoutinfs+offset<lowerbound)
return lowerbound;
42 if(withoutinfs+offset>upperbound)
return upperbound;
69 return p.Unit().Dot(
d.Unit());
73 float mindrsvpfcand(
const std::vector<reco::VertexCompositePtrCandidate> & svs,
76 for (
unsigned int i0=0; i0<svs.size(); ++i0) {
79 if (tempdr<mindr) { mindr = tempdr; }
87 const reco::VertexCompositePtrCandidate&,
93 pv->trackWeight(pfcand.
trackRef()) > 0.5 &&
94 pv_ass_quality == 7) {
105 uint16_t qualityFlags = 0;
121 uint16_t qualityFlags = 0;
float quality_from_pfcand(const reco::PFCandidate &pfcand)
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
bool isNonnull() const
Checks for non-null.
float vertexDdotP(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv)
Measurement1D vertexD3d(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
math::XYZVector Vector
point in the space
const float catch_infs(const float in, const float replace_value=0.)
double vy() const override
y coordinate of vertex position
double y() const
y coordinate
math::Error< dimension >::type CovarianceMatrix
covariance error matrix (3x3)
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
reco::TrackRef trackRef() const
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)
Vector momentum() const final
spatial momentum vector
qualityFlagsShiftsAndMasks
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
float mindrsvpfcand(const std::vector< reco::VertexCompositePtrCandidate > &svs, const reco::Candidate *cand, float mindr=0.4)
Measurement1D vertexDxy(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
const Point & vertex() const override
vertex position (overwritten by PF...)
double z() const
z coordinate
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
float vtx_ass_from_pfcand(const reco::PFCandidate &pfcand, int pv_ass_quality, const reco::VertexRef &pv)
double vz() const override
z coordinate of vertex position
double x() const
x coordinate
float lost_inner_hits_from_pfcand(const reco::PFCandidate &pfcand)
Particle reconstructed by the particle flow algorithm.
const reco::Track * bestTrack() const override
double vx() const override
x coordinate of vertex position