From 549b8b0e662679906e1223a96c705facee5415ff Mon Sep 17 00:00:00 2001 From: Jan-Frederik Date: Mon, 27 Dec 2021 17:32:15 +0100 Subject: [PATCH] fix ordering in loop over tracker layers --- RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc b/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc index 2cd4f5eca0d65..4f1756b0cdfc7 100644 --- a/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc +++ b/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc @@ -33,6 +33,7 @@ #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h" #include #include +#include #include namespace pt = boost::property_tree; @@ -391,7 +392,7 @@ void TSGForOIDNN::produce(edm::StreamID sid, edm::Event& iEvent, edm::EventSetup hitDoubletSeedsMade = 0; auto createSeeds = [&](auto const& layers) { - for (auto const& layer : layers) { + for (auto const& layer : boost::adaptors::reverse(layers)) { if (hitlessSeedsMadeIP < maxHitlessSeedsIP && numSeedsMade < maxSeeds_) makeSeedsWithoutHits(*layer, tsosAtIP,