From 6b4fa8b00e4e1b079cfe143455894b2fc028f7c6 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Mon, 11 Mar 2019 11:09:18 -0700 Subject: [PATCH] Use also the fourth hit of pixel track for the seed --- .../plugins/SeedGeneratorFromProtoTracksEDProducer.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RecoTracker/TkSeedGenerator/plugins/SeedGeneratorFromProtoTracksEDProducer.cc b/RecoTracker/TkSeedGenerator/plugins/SeedGeneratorFromProtoTracksEDProducer.cc index 0ff694b083572..a85cf0ea3e2cc 100644 --- a/RecoTracker/TkSeedGenerator/plugins/SeedGeneratorFromProtoTracksEDProducer.cc +++ b/RecoTracker/TkSeedGenerator/plugins/SeedGeneratorFromProtoTracksEDProducer.cc @@ -143,7 +143,9 @@ void SeedGeneratorFromProtoTracksEDProducer::produce(edm::Event& ev, const edm:: edm::ParameterSet seedCreatorPSet = theConfig.getParameter("SeedCreatorPSet"); SeedFromConsecutiveHitsCreator seedCreator(seedCreatorPSet); seedCreator.init(region, es, nullptr); - seedCreator.makeSeed(*result, SeedingHitSet(hits[0], hits[1], hits.size() >2 ? hits[2] : SeedingHitSet::nullPtr() )); + seedCreator.makeSeed(*result, SeedingHitSet(hits[0], hits[1], + hits.size() >2 ? hits[2] : SeedingHitSet::nullPtr(), + hits.size() >3 ? hits[3] : SeedingHitSet::nullPtr() )); } } }