48 if (vertexHandle.
product()->size() == 0)
return 0;
54 return fabs(theVertex.
position().z() - theLeptonNearVertex.position().z())
55 /
sqrt(
std::pow(theVertex.
zError(), 2) + theLeptonNearVertex.cartesianError().position().czz());
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
~LeptonVertexSignificance()
reco::TrackRef track() const
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double zError() const
error on z
const FreeTrajectoryState & theState() const
reco::TransientTrack build(const reco::Track *p) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
const Point & position() const
position
TransientTrackBuilder * theTrackBuilder_
reco::GsfTrackRef gsfTrack() const
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
T const * product() const
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const
T const * product() const
Analysis-level electron class.
LeptonVertexSignificance()
float calculate(const Electron &anElectron, const edm::Event &iEvent)
Analysis-level muon class.
Power< A, B >::type pow(const A &a, const B &b)