51 iEvent.
getByLabel(
"offlinePrimaryVerticesFromCTFTracks", vertexHandle);
52 if (vertexHandle.
product()->size() == 0)
return 0;
58 return fabs(theVertex.
position().z() - theLeptonNearVertex.position().z())
59 /
sqrt(
std::pow(theVertex.
zError(), 2) + theLeptonNearVertex.cartesianError().position().czz());
~LeptonVertexSignificance()
double zError() const
error on z
const FreeTrajectoryState & theState() const
reco::TransientTrack build(const reco::Track *p) const
reco::GsfTrackRef gsfTrack() const
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
const Point & position() const
position
TransientTrackBuilder * theTrackBuilder_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const
T const * product() const
Analysis-level electron class.
T const * product() const
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)
reco::TrackRef track() const
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...