#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.
References HltBtagPostValidation_cff::c, operator()(), simpleAssociation(), and badGlobalMuonTaggersAOD_cff::vtx.
pat::VertexAssociationSelector::VertexAssociationSelector | ( | const Config & | conf | ) |
bool pat::VertexAssociationSelector::operator() | ( | const pat::VertexAssociation & | vass | ) | const |
check if this VertexAssociation is ok
Definition at line 48 of file VertexAssociationSelector.cc.
References conf_, pat::VertexAssociationSelector::Config::dR, pat::VertexAssociation::dr(), pat::VertexAssociationSelector::Config::dZ, pat::VertexAssociation::dz(), pat::VertexAssociation::isNull(), pat::VertexAssociationSelector::Config::sigmasR, pat::VertexAssociationSelector::Config::sigmasZ, Measurement1DFloat::significance(), and Measurement1DFloat::value().
Referenced by VertexAssociationSelector().
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 15 of file VertexAssociationSelector.cc.
References funct::abs(), conf_, pat::VertexAssociationSelector::Config::dR, pat::VertexAssociationSelector::Config::dZ, reco::Vertex::error(), reco::Vertex::position(), pat::VertexAssociationSelector::Config::sigmasR, pat::VertexAssociationSelector::Config::sigmasZ, 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 8 of file VertexAssociationSelector.cc.
References runTheMatrix::ret, pat::VertexAssociation::setDistances(), and reco::Candidate::vertex().
Referenced by VertexAssociationSelector().
|
private |
Definition at line 62 of file VertexAssociationSelector.h.
Referenced by operator()().