From 0245ea2f0dc5602399baf5b29bb61c4afb62dff4 Mon Sep 17 00:00:00 2001 From: Osvaldo Miguel Colin Date: Tue, 5 Mar 2024 23:52:27 +0100 Subject: [PATCH] Switched to unsigned int for iteration in L1TGEM --- L1Trigger/L1TGEM/src/GE0TriggerPseudoBuilder.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/L1Trigger/L1TGEM/src/GE0TriggerPseudoBuilder.cc b/L1Trigger/L1TGEM/src/GE0TriggerPseudoBuilder.cc index 99aac7150a0a4..2ffe8b658ebfd 100644 --- a/L1Trigger/L1TGEM/src/GE0TriggerPseudoBuilder.cc +++ b/L1Trigger/L1TGEM/src/GE0TriggerPseudoBuilder.cc @@ -21,8 +21,8 @@ void GE0TriggerPseudoBuilder::build(const GEMSegmentCollection& me0Segments, GE0 if (info_ > 2) dumpAllME0Segments(me0Segments); - for (int endc = 0; endc < static_cast(trig_me0s::MAX_ENDCAPS); endc++) { - for (int cham = 0; cham < static_cast(trig_me0s::MAX_CHAMBERS); cham++) { + for (unsigned int endc = 0; endc < static_cast(trig_me0s::MAX_ENDCAPS); endc++) { + for (unsigned int cham = 0; cham < static_cast(trig_me0s::MAX_CHAMBERS); cham++) { // 0th layer means whole chamber. // chamber counts from 1 to 18 in ME0ID const int region(endc == 0 ? -1 : 1); @@ -61,8 +61,7 @@ ME0TriggerDigi GE0TriggerPseudoBuilder::segmentConversion(const GEMSegment segme int chamberid = detid.superChamberId() % 2; int totRolls = keylayer->nEtaPartitions(); float dphi = chamber->computeDeltaPhi(segment.localPosition(), segment.localDirection()); - // !!!!TODO!!!! float time = segment.time(); - // !!!!TODO!!!! int sign_time = (time > 0) ? 1 : -1; + int nrechits = segment.nRecHits(); std::vector rolls; for (const auto& rechit : segment.specificRecHits()) {