53 auto recoVertices = std::make_unique<Product>();
55 recoVertices->push_back(*
sv);
57 for (
typename Product::iterator
sv = recoVertices->begin();
sv != recoVertices->end(); ++
sv) {
60 for (
typename Product::iterator sv2 = recoVertices->begin(); sv2 != recoVertices->end(); ++sv2) {
72 sv = recoVertices->erase(
sv) - 1;
reco::Vertex::Point convertPos(const GlobalPoint &p)
edm::EDGetTokenT< Product > token_secondaryVertex
TemplatedVertexMerger< reco::VertexCompositePtrCandidate > CandidateVertexMerger
#define DEFINE_FWK_MODULE(type)
reco::Vertex::Error convertError(const GlobalError &ge)
TemplatedVertexMerger(const edm::ParameterSet ¶ms)
std::vector< VTX > Product
double computeSharedTracks(const reco::Vertex &pv, const std::vector< reco::TrackRef > &svTracks, double minTrackWeight=0.5, float unused=0)
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
TemplatedVertexMerger< reco::Vertex > VertexMerger
bool trackFilter(const reco::TrackRef &track) const
double significance() const
void produce(edm::Event &event, const edm::EventSetup &es) override