Skip to content

Commit

Permalink
Fixing subdetector readout maps...
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturSztuc committed Oct 14, 2024
1 parent ac7ff16 commit 6449dbf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/MLTModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,16 @@ MLTModule::trigger_decisions_callback(dfmessages::TriggerDecision& decision )

// Overwrite the component's readout window if we have custom
// subdetector--readout window map
for ( const auto& [sourceid, window] : m_subdetector_readout_window_map ) {
for ( const auto& [subdetectorid, window] : m_subdetector_readout_window_map ) {
for (auto& request: decision.components) {
if (request.component.subsystem != daqdataformats::SourceID::Subsystem::kDetectorReadout) {
continue;
}

if (subdetectorid != m_srcid_detid_map[request.component]) {
continue;
}

request.window_begin = decision.trigger_timestamp - window.first;
request.window_end = decision.trigger_timestamp + window.second;
}
Expand Down

0 comments on commit 6449dbf

Please sign in to comment.