#include <VertexAssociationSelector.h>
Classes | |
struct | Config |
Public Member Functions | |
bool | operator() (const pat::VertexAssociation &vass) const |
check if this VertexAssociation is ok More... | |
bool | operator() (const reco::Candidate &c, const reco::Vertex &) const |
pat::VertexAssociation | simpleAssociation (const reco::Candidate &c, const reco::VertexRef &vtx) const |
VertexAssociationSelector () | |
an empty constructor is sometimes needed More... | |
VertexAssociationSelector (const Config &conf) | |
constructor from a configuration More... | |
Private Attributes | |
Config | conf_ |
Definition at line 9 of file VertexAssociationSelector.h.
|
inline |
an empty constructor is sometimes needed
Definition at line 41 of file VertexAssociationSelector.h.
pat::VertexAssociationSelector::VertexAssociationSelector | ( | const Config & | conf | ) |
bool pat::VertexAssociationSelector::operator() | ( | const pat::VertexAssociation & | vass | ) | const |
check if this VertexAssociation is ok
Definition at line 50 of file VertexAssociationSelector.cc.
References pat::VertexAssociation::dr(), pat::VertexAssociation::dz(), pat::VertexAssociation::isNull(), Measurement1DFloat::significance(), and Measurement1DFloat::value().
bool pat::VertexAssociationSelector::operator() | ( | const reco::Candidate & | c, |
const reco::Vertex & | vtx | ||
) | const |
check if this candidate and this vertex are compatible this will just use the basic candidate vertex position, without any fancy track extrapolation.
Definition at line 20 of file VertexAssociationSelector.cc.
References abs, reco::Vertex::error(), reco::Vertex::position(), mathSSE::sqrt(), reco::Candidate::vertex(), reco::Candidate::vx(), reco::Candidate::vy(), reco::Candidate::vz(), reco::Vertex::x(), reco::Vertex::y(), reco::Vertex::z(), and reco::Vertex::zError().
pat::VertexAssociation pat::VertexAssociationSelector::simpleAssociation | ( | const reco::Candidate & | c, |
const reco::VertexRef & | vtx | ||
) | const |
Definition at line 12 of file VertexAssociationSelector.cc.
References run_regression::ret, pat::VertexAssociation::setDistances(), and reco::Candidate::vertex().
|
private |
Definition at line 62 of file VertexAssociationSelector.h.