Skip to content

Commit

Permalink
fix double usage of seeding track
Browse files Browse the repository at this point in the history
  • Loading branch information
arizzi committed May 7, 2014
1 parent 1c39760 commit 78c9292
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@ void InclusiveVertexFinder::produce(edm::Event &event, const edm::EventSetup &es
for(std::vector<TracksClusteringFromDisplacedSeed::Cluster>::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<TransientVertex> vertices;
if(useVertexReco) {
vertices = vtxReco->vertices(cluster->tracks, bs); // attempt with config given reconstructor
Expand Down

0 comments on commit 78c9292

Please sign in to comment.