From 76f0a4ac2491b4e2c081f2baa446b376ad87bba7 Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Fri, 27 Aug 2021 14:11:41 +0200 Subject: [PATCH 1/2] changing hgcal centers --- .../Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc b/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc index e61ecd66760ce..098449162df07 100644 --- a/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc +++ b/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc @@ -445,7 +445,7 @@ void L1TCorrelatorLayer1Producer::initSectorsAndRegions(const edm::ParameterSet if (etaWidth > 2 * l1ct::Scales::maxAbsEta()) throw cms::Exception("Configuration", "caloSectors eta range too large for eta_t data type"); for (unsigned int iphi = 0; iphi < phiSlices; ++iphi) { - float phiCenter = reco::reduceRange(iphi * phiWidth); //align with L1 TrackFinder phi sector indexing for now + float phiCenter = reco::reduceRange(iphi * phiWidth + M_PI/6.); //align with L1 TrackFinder phi sector indexing for now event_.decoded.hadcalo.emplace_back(etaBoundaries[ieta], etaBoundaries[ieta + 1], phiCenter, phiWidth); event_.decoded.emcalo.emplace_back(etaBoundaries[ieta], etaBoundaries[ieta + 1], phiCenter, phiWidth); } From 38b02c713cff0ce242818068d80f330eedcf966b Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Fri, 27 Aug 2021 14:21:59 +0200 Subject: [PATCH 2/2] updating comment --- .../Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc b/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc index 098449162df07..ae768c091360b 100644 --- a/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc +++ b/L1Trigger/Phase2L1ParticleFlow/plugins/L1TCorrelatorLayer1Producer.cc @@ -445,7 +445,7 @@ void L1TCorrelatorLayer1Producer::initSectorsAndRegions(const edm::ParameterSet if (etaWidth > 2 * l1ct::Scales::maxAbsEta()) throw cms::Exception("Configuration", "caloSectors eta range too large for eta_t data type"); for (unsigned int iphi = 0; iphi < phiSlices; ++iphi) { - float phiCenter = reco::reduceRange(iphi * phiWidth + M_PI/6.); //align with L1 TrackFinder phi sector indexing for now + float phiCenter = reco::reduceRange(iphi * phiWidth + M_PI/6.); //L1 TrackFinder phi sector and HGCal sectors shifted by 30deg event_.decoded.hadcalo.emplace_back(etaBoundaries[ieta], etaBoundaries[ieta + 1], phiCenter, phiWidth); event_.decoded.emcalo.emplace_back(etaBoundaries[ieta], etaBoundaries[ieta + 1], phiCenter, phiWidth); }