10 std::pair<int,PrimaryVertexAssignment::Quality>
19 typedef reco::VertexCollection::const_iterator IV;
22 for(
auto const & vtx : vertices) {
23 float w = vtx.trackWeight(trackRef);
36 for(IV iv=vertices.begin(); iv!=vertices.end(); ++iv) {
37 double dz =
std::abs(track->
dz(iv->position()));
40 vtxIdMinDz = iv-vertices.begin();
59 if( deltaR < minDeltaR )
69 GlobalVector direction(jets.
at(jetIdx).px(), jets.
at(jetIdx).py(), jets.
at(jetIdx).pz());
73 for(IV iv=vertices.begin(); iv!=vertices.end(); ++iv)
80 if( distanceToJetAxis < minDistanceToJetAxis )
82 minDistanceToJetAxis = distanceToJetAxis;
double dxyError() const
error on dxy
reco::TransientTrack build(const reco::Track *p) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
double maxDxySigForNotReconstructedPrimary_
double deltaR(const T1 &t1, const T2 &t2)
double maxDistanceToJetAxis_
const_iterator begin() const
double maxDzSigForPrimaryAssignment_
double maxDzForJetAxisAssigment_
Abs< T >::type abs(const T &t)
double maxDxyForJetAxisAssigment_
std::vector< LinkConnSpec >::const_iterator IT
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
double deltaR(double eta1, double eta2, double phi1, double phi2)
double maxDxyForNotReconstructedPrimary_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
const_reference at(size_type pos) const
const_iterator end() const
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
std::pair< int, PrimaryVertexAssignment::Quality > chargedHadronVertex(const reco::VertexCollection &vertices, const reco::TrackRef &trackRef, const reco::Track *track, const edm::View< reco::Candidate > &jets, const TransientTrackBuilder &builder) const