Skip to content
Snippets Groups Projects

online: Remove hardcoded adc cutoffs from STS readout.

Merged Felix Weiglhofer requested to merge fweig/cbmroot:remove-adc-cutoffs-sts into master
1 file
+ 0
9
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading