Calculates a lepton's vertex association significance. More...
#include "PhysicsTools/PatUtils/interface/LeptonVertexSignificance.h"
Public Member Functions | |
float | calculate (const Electron &anElectron, const reco::VertexCollection &vertices, const TransientTrackBuilder &builder) |
float | calculate (const Muon &aMuon, const reco::VertexCollection &vertices, const TransientTrackBuilder &builder) |
LeptonVertexSignificance ()=default | |
~LeptonVertexSignificance ()=default | |
Static Public Member Functions | |
static edm::InputTag | vertexCollectionTag () |
Private Member Functions | |
float | calculate (const reco::Track &track, const reco::VertexCollection &vertices, const TransientTrackBuilder &builder) |
Calculates a lepton's vertex association significance.
LeptonVertexSignificance calculates the significance of the association of the lepton to a given vertex, as defined in CMS Note 2006/024
Definition at line 31 of file LeptonVertexSignificance.h.
|
default |
|
default |
float LeptonVertexSignificance::calculate | ( | const Electron & | anElectron, |
const reco::VertexCollection & | vertices, | ||
const TransientTrackBuilder & | builder | ||
) |
Definition at line 18 of file LeptonVertexSignificance.cc.
References pat::Electron::gsfTrack(), and AlignmentTracksFromVertexSelector_cfi::vertices.
Referenced by calculate().
float LeptonVertexSignificance::calculate | ( | const Muon & | aMuon, |
const reco::VertexCollection & | vertices, | ||
const TransientTrackBuilder & | builder | ||
) |
Definition at line 24 of file LeptonVertexSignificance.cc.
References calculate(), pat::Muon::track(), and AlignmentTracksFromVertexSelector_cfi::vertices.
|
private |
Definition at line 31 of file LeptonVertexSignificance.cc.
References TransientTrackBuilder::build(), reco::Vertex::position(), funct::pow(), mathSSE::sqrt(), TrajectoryStateClosestToPoint::theState(), reco::TransientTrack::trajectoryStateClosestToPoint(), AlignmentTracksFromVertexSelector_cfi::vertices, and reco::Vertex::zError().
|
static |