Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Framework/AnalysisSupport/src/AODJAlienReaderHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,18 @@ AlgorithmSpec AODJAlienReaderHelpers::rootFileReaderCallback(ConfigContext const

// Check if the next timeframe is available or
// if there are more files to be processed. If not, simply exit.
fcnt = (*fileCounter * device.maxInputTimeslices) + device.inputTimesliceId;
ntf = *numTF + 1;
auto& firstRoute = requestedTables.front();
auto concrete = DataSpecUtils::asConcreteDataMatcher(firstRoute.matcher);
// first route with level 0
auto firstRoute = std::ranges::find_if(requestedTables, [&didir](auto const& route) {
auto concrete = DataSpecUtils::asConcreteDataMatcher(route.matcher);
return didir->getLevelForOrigin(concrete.origin) == 0;
});
auto concrete = DataSpecUtils::asConcreteDataMatcher(firstRoute->matcher);
auto dh = header::DataHeader(concrete.description, concrete.origin, concrete.subSpec);
auto fileAndFolder = didir->getFileFolder(dh, fcnt, ntf);

// In case the filesource is empty, move to the next one.
if (fileAndFolder.path().empty()) {
if (fileAndFolder.filesystem() == nullptr) {
fcnt += 1;
ntf = 0;
if (didir->atEnd(fcnt)) {
Expand Down
Loading