Skip to content

Commit 0d3b460

Browse files
authored
Propagate list of tables also in case of derived data (#13885)
1 parent dd08446 commit 0d3b460

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Framework/AnalysisSupport/src/Plugin.cxx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,14 @@ struct DiscoverMetadataInAOD : o2::framework::ConfigDiscoveryPlugin {
155155
LOGP(fatal, "Couldn't open file \"{}\"!", filename);
156156
}
157157
std::vector<ConfigParamSpec> results = readMetadata(currentFile);
158+
const bool metaDataEmpty = results.empty();
159+
auto tables = getListOfTables(currentFile);
160+
if (tables.empty() == false) {
161+
results.push_back(ConfigParamSpec{"aod-metadata-tables", VariantType::ArrayString, tables, {"Tables in first AOD"}});
162+
}
163+
158164
// Found metadata already in the main file.
159-
if (!results.empty()) {
160-
auto tables = getListOfTables(currentFile);
161-
if (tables.empty() == false) {
162-
results.push_back(ConfigParamSpec{"aod-metadata-tables", VariantType::ArrayString, tables, {"Tables in first AOD"}});
163-
}
165+
if (!metaDataEmpty) {
164166
results.push_back(ConfigParamSpec{"aod-metadata-source", VariantType::String, filename, {"File from which the metadata was extracted."}});
165167
return results;
166168
}

0 commit comments

Comments
 (0)