From 7ff042259ad754b1903dc51846067b3d22fb4204 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Sun, 17 Apr 2022 15:07:51 +0200 Subject: [PATCH] Fix misleading variable names --- Detectors/TPC/base/include/TPCBase/Mapper.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Detectors/TPC/base/include/TPCBase/Mapper.h b/Detectors/TPC/base/include/TPCBase/Mapper.h index 9d8b143b97644..1c430ddd7434d 100644 --- a/Detectors/TPC/base/include/TPCBase/Mapper.h +++ b/Detectors/TPC/base/include/TPCBase/Mapper.h @@ -233,24 +233,24 @@ class Mapper return pos; } - const PadPos padPosRegion(const int cruNumber, const int fecInRegion, const int sampaOnFEC, + const PadPos padPosRegion(const int cruNumber, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const { const CRU cru(cruNumber); const PadRegionInfo& regionInfo = mMapPadRegionInfo[cru.region()]; const PartitionInfo& partInfo = mMapPartitionInfo[cru.partition()]; - const int fecInSector = partInfo.getSectorFECOffset() + fecInRegion; + const int fecInSector = partInfo.getSectorFECOffset() + fecInPartition; const GlobalPadNumber padNumber = globalPadNumber(fecInSector, sampaOnFEC, channelOnSAMPA); PadPos pos = padPos(padNumber); pos.setRow(pos.getRow() - regionInfo.getGlobalRowOffset()); return pos; } - const PadROCPos padROCPos(const CRU cru, const int fecInRegion, const int sampaOnFEC, + const PadROCPos padROCPos(const CRU cru, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const { const PartitionInfo& partInfo = mMapPartitionInfo[cru.partition()]; - const int fecInSector = partInfo.getSectorFECOffset() + fecInRegion; + const int fecInSector = partInfo.getSectorFECOffset() + fecInPartition; const GlobalPadNumber padNumber = globalPadNumber(fecInSector, sampaOnFEC, channelOnSAMPA); const ROC roc = cru.roc(); PadROCPos pos(roc, padPos(padNumber)); @@ -260,11 +260,11 @@ class Mapper return pos; } - const PadSecPos padSecPos(const CRU cru, const int fecInRegion, const int sampaOnFEC, + const PadSecPos padSecPos(const CRU cru, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const { const PartitionInfo& partInfo = mMapPartitionInfo[cru.partition()]; - const int fecInSector = partInfo.getSectorFECOffset() + fecInRegion; + const int fecInSector = partInfo.getSectorFECOffset() + fecInPartition; const GlobalPadNumber padNumber = globalPadNumber(fecInSector, sampaOnFEC, channelOnSAMPA); PadSecPos pos(cru.sector(), padPos(padNumber)); return pos;