Skip to content

Commit f9e545a

Browse files
authored
Merge dde5875 into sapling-pr-archive-ktf
2 parents f8c3712 + dde5875 commit f9e545a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Framework/Core/include/Framework/DataRefUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct DataRefUtils {
5656
if ((payloadSize % sizeof(T)) != 0) {
5757
throw runtime_error("Cannot extract POD from message as size do not match");
5858
}
59-
//FIXME: provide a const collection
59+
// FIXME: provide a const collection
6060
return gsl::span<T>(reinterpret_cast<T*>(const_cast<char*>(ref.payload)), payloadSize / sizeof(T));
6161
} else if constexpr (has_root_dictionary<T>::value == true &&
6262
is_messageable<T>::value == false) {

Framework/Core/include/Framework/InputRecordWalker.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#define FRAMEWORK_INPUTRECORDWALKER_H
1313

1414
/// @file InputRecordWalker.h
15-
/// @author Matthias Richter
1615
/// @since 2020-03-25
1716
/// @brief A helper class to iteratate over all parts of all input routes
1817

1918
#include "Framework/InputRecord.h"
19+
#include "Framework/DataRefUtils.h"
2020

2121
namespace o2::framework
2222
{
@@ -49,6 +49,7 @@ namespace o2::framework
4949
/// for (auto const& ref : InputRecordWalker(inputs, filter)) {
5050
/// // do something with the data
5151
/// }
52+
template <DataHeaderLike... EXTRA_HEADERS>
5253
class InputRecordWalker
5354
{
5455
public:
@@ -131,7 +132,7 @@ class InputRecordWalker
131132
if (mFilterSpecs.size() > 0) {
132133
bool isSelected = false;
133134
for (auto const& spec : mFilterSpecs) {
134-
if ((isSelected = DataRefUtils::match(*mCurrent, spec)) == true) {
135+
if ((isSelected = DataRefUtils::match<EXTRA_HEADERS...>(*mCurrent, spec)) == true) {
135136
break;
136137
}
137138
}

0 commit comments

Comments
 (0)