20 : vertexToken_( iC.consumes<
reco::
VertexCollection >(
edm::InputTag(
"offlinePrimaryVerticesFromCTFTracks" ) ) )
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()
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
reco::TrackRef track() const override
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
const Point & position() const
position
TransientTrackBuilder * theTrackBuilder_
T const * product() const
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const
LeptonVertexSignificance()
float calculate(const Electron &anElectron, const edm::Event &iEvent)
reco::GsfTrackRef gsfTrack() const override
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
T const * product() const
Power< A, B >::type pow(const A &a, const B &b)