From fef1eef43ca27072332dbd062496ae6233890c82 Mon Sep 17 00:00:00 2001
From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de>
Date: Wed, 8 May 2024 10:06:40 +0000
Subject: [PATCH] online: Remove hardcoded adc cutoffs from STS readout.

---
 algo/detectors/sts/ReadoutConfig.cxx | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/algo/detectors/sts/ReadoutConfig.cxx b/algo/detectors/sts/ReadoutConfig.cxx
index 45a5a8c089..e3378766cb 100644
--- a/algo/detectors/sts/ReadoutConfig.cxx
+++ b/algo/detectors/sts/ReadoutConfig.cxx
@@ -88,10 +88,6 @@ void sts::ReadoutConfig::Init(const ReadoutSetup& config, const ChannelMaskSet&
 
   fTimeOffset = config.timeOffset;
 
-  // map from feb ID to adc cut
-  // TODO: Don't hardcode this. Read from configuration file.
-  std::map<size_t, uint32_t> febAdcCuts = {{1, 1}, {2, 1}, {3, 1}, {4, 1}};
-
   // Constructing the map (equipmentId, eLink) -> (module, ASIC within module)
   int32_t febBaseIdx = 0;
   for (uint16_t compIdx = 0; compIdx < numComp; compIdx++) {
@@ -153,11 +149,6 @@ void sts::ReadoutConfig::Init(const ReadoutSetup& config, const ChannelMaskSet&
           }
         }
 
-        // Set min adc cut
-        if (auto febIt = febAdcCuts.find(febId); febIt != febAdcCuts.end()) {
-          fAdcCutMap[equipment][elinkIdx] = febIt->second;
-        }
-
         fReadoutConfig[equipment][elinkIdx] = {moduleAddress, asicInModule, isPulser};
 
       }  //# elink
-- 
GitLab