Skip to content
Snippets Groups Projects
Commit fef1eef4 authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

online: Remove hardcoded adc cutoffs from STS readout.

parent f73626c5
No related branches found
No related tags found
1 merge request!1814online: Remove hardcoded adc cutoffs from STS readout.
Pipeline #29331 passed
...@@ -88,10 +88,6 @@ void sts::ReadoutConfig::Init(const ReadoutSetup& config, const ChannelMaskSet& ...@@ -88,10 +88,6 @@ void sts::ReadoutConfig::Init(const ReadoutSetup& config, const ChannelMaskSet&
fTimeOffset = config.timeOffset; 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) // Constructing the map (equipmentId, eLink) -> (module, ASIC within module)
int32_t febBaseIdx = 0; int32_t febBaseIdx = 0;
for (uint16_t compIdx = 0; compIdx < numComp; compIdx++) { for (uint16_t compIdx = 0; compIdx < numComp; compIdx++) {
...@@ -153,11 +149,6 @@ void sts::ReadoutConfig::Init(const ReadoutSetup& config, const ChannelMaskSet& ...@@ -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}; fReadoutConfig[equipment][elinkIdx] = {moduleAddress, asicInModule, isPulser};
} //# elink } //# elink
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment