Skip to content

Commit 39cf860

Browse files
authored
Merge 55d7ee4 into sapling-pr-archive-ehellbar
2 parents 678c1ec + 55d7ee4 commit 39cf860

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Detectors/MUON/MID/Workflow/include/MIDWorkflow/ColumnDataSpecsUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ gsl::span<const ROFRecord> getRofsEventType(framework::ProcessingContext& pc, st
129129
/// \param pc Processing context
130130
/// \param dataBind Data binding name
131131
/// \return Pointer to MC labels
132-
std::unique_ptr<const o2::dataformats::MCTruthContainer<MCLabel>> getLabels(framework::ProcessingContext& pc, std::string_view dataBind);
132+
std::unique_ptr<const o2::dataformats::MCTruthContainer<MCLabel>> getLabels(framework::ProcessingContext& pc, std::string_view dataBind, EventType eventType = EventType::Standard);
133133

134134
} // namespace specs
135135
} // namespace mid

Detectors/MUON/MID/Workflow/src/ColumnDataSpecsUtils.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ gsl::span<const ROFRecord> getRofsEventType(framework::ProcessingContext& pc, st
176176
return getInput<ROFRecord>(pc, fmt::format("{}_{}", getROFBind(dataBind).data(), idx));
177177
}
178178

179-
std::unique_ptr<const o2::dataformats::MCTruthContainer<MCLabel>> getLabels(framework::ProcessingContext& pc, std::string_view dataBind)
179+
std::unique_ptr<const o2::dataformats::MCTruthContainer<MCLabel>> getLabels(framework::ProcessingContext& pc, std::string_view dataBind, EventType eventType)
180180
{
181-
return pc.inputs().get<const o2::dataformats::MCTruthContainer<MCLabel>*>(getLabelsBind(dataBind).data());
181+
return pc.inputs().get<const o2::dataformats::MCTruthContainer<MCLabel>*>(fmt::format("{}_{}", getLabelsBind(dataBind).data(), static_cast<size_t>(eventType)));
182182
}
183183

184184
} // namespace specs

0 commit comments

Comments
 (0)