From 78c9292fd3726bf6cc9dd981ad0cef827ce763ff Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 7 May 2014 11:32:05 +0200 Subject: [PATCH] fix double usage of seeding track --- .../AdaptiveVertexFinder/plugins/InclusiveVertexFinder.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/RecoVertex/AdaptiveVertexFinder/plugins/InclusiveVertexFinder.cc b/RecoVertex/AdaptiveVertexFinder/plugins/InclusiveVertexFinder.cc index b9df7c7f0944b..4b97d5e5d4f6d 100644 --- a/RecoVertex/AdaptiveVertexFinder/plugins/InclusiveVertexFinder.cc +++ b/RecoVertex/AdaptiveVertexFinder/plugins/InclusiveVertexFinder.cc @@ -166,10 +166,8 @@ void InclusiveVertexFinder::produce(edm::Event &event, const edm::EventSetup &es for(std::vector::iterator cluster = clusters.begin(); cluster != clusters.end(); ++cluster,++i) { - if(cluster->tracks.size() == 0 || cluster->tracks.size() > maxNTracks ) + if(cluster->tracks.size() < 2 || cluster->tracks.size() > maxNTracks ) continue; - - cluster->tracks.push_back(cluster->seedingTrack); //add the seed to the list of tracks to fit std::vector vertices; if(useVertexReco) { vertices = vtxReco->vertices(cluster->tracks, bs); // attempt with config given reconstructor