Calculates a lepton's vertex association significance. More...
#include "PhysicsTools/PatUtils/interface/LeptonVertexSignificance.h"
Public Member Functions | |
float | calculate (const Electron &anElectron, const edm::Event &iEvent) |
float | calculate (const Muon &aMuon, const edm::Event &iEvent) |
LeptonVertexSignificance () | |
LeptonVertexSignificance (const edm::EventSetup &iSetup, edm::ConsumesCollector &&iC) | |
~LeptonVertexSignificance () | |
Private Member Functions | |
float | calculate (const reco::Track &track, const edm::Event &iEvent) |
Private Attributes | |
TransientTrackBuilder * | theTrackBuilder_ |
edm::EDGetTokenT < reco::VertexCollection > | vertexToken_ |
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 37 of file LeptonVertexSignificance.h.
pat::LeptonVertexSignificance::LeptonVertexSignificance | ( | ) |
LeptonVertexSignificance::LeptonVertexSignificance | ( | const edm::EventSetup & | iSetup, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 19 of file LeptonVertexSignificance.cc.
References edm::EventSetup::get(), edm::ESHandle< class >::product(), and theTrackBuilder_.
LeptonVertexSignificance::~LeptonVertexSignificance | ( | ) |
Definition at line 29 of file LeptonVertexSignificance.cc.
References theTrackBuilder_.
float LeptonVertexSignificance::calculate | ( | const Electron & | anElectron, |
const edm::Event & | iEvent | ||
) |
Definition at line 34 of file LeptonVertexSignificance.cc.
References pat::Electron::gsfTrack(), and iEvent.
Referenced by calculate().
float LeptonVertexSignificance::calculate | ( | const Muon & | aMuon, |
const edm::Event & | iEvent | ||
) |
Definition at line 38 of file LeptonVertexSignificance.cc.
References calculate(), iEvent, and pat::Muon::track().
|
private |
Definition at line 43 of file LeptonVertexSignificance.cc.
References TransientTrackBuilder::build(), edm::Event::getByToken(), reco::Vertex::position(), funct::pow(), edm::Handle< T >::product(), mathSSE::sqrt(), TrajectoryStateClosestToPoint::theState(), theTrackBuilder_, reco::TransientTrack::trajectoryStateClosestToPoint(), vertexToken_, and reco::Vertex::zError().
|
private |
Definition at line 48 of file LeptonVertexSignificance.h.
Referenced by calculate(), LeptonVertexSignificance(), and ~LeptonVertexSignificance().
|
private |
Definition at line 49 of file LeptonVertexSignificance.h.
Referenced by calculate().