File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Framework/Core/include/Framework Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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
2121namespace 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>
5253class 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 }
You can’t perform that action at this time.
0 commit comments