Skip to content

Commit daa5776

Browse files
authored
Revert "DPL Analysis: provide metadata to workflow construction (#11875)" (#11885)
This reverts commit eb66275.
1 parent 5166543 commit daa5776

8 files changed

Lines changed: 6 additions & 126 deletions

File tree

Framework/AnalysisSupport/src/AODJAlienReaderHelpers.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ AlgorithmSpec AODJAlienReaderHelpers::rootFileReaderCallback()
133133
stats.updateStats({static_cast<short>(ProcessingStatsId::ARROW_MESSAGES_DESTROYED), DataProcessingStats::Op::Set, 0});
134134
stats.updateStats({static_cast<short>(ProcessingStatsId::ARROW_BYTES_EXPIRED), DataProcessingStats::Op::Set, 0});
135135

136-
if (!options.isSet("aod-file-private")) {
136+
if (!options.isSet("aod-file")) {
137137
LOGP(fatal, "No input file defined!");
138138
throw std::runtime_error("Processing is stopped!");
139139
}
140140

141-
auto filename = options.get<std::string>("aod-file-private");
141+
auto filename = options.get<std::string>("aod-file");
142142

143143
std::string parentFileReplacement;
144144
if (options.isSet("aod-parent-base-path-replacement")) {

Framework/Core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ o2_add_library(Framework
4545
src/DefaultsHelpers.cxx
4646
src/DomainInfoHeader.cxx
4747
src/ProcessingPoliciesHelpers.cxx
48-
src/ConfigParamDiscovery.cxx
4948
src/ConfigParamStore.cxx
5049
src/ConfigParamsHelper.cxx
5150
src/ChannelParamSpec.cxx

Framework/Core/include/Framework/ConfigParamDiscovery.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

Framework/Core/include/Framework/runDataProcessing.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "Framework/Logger.h"
3131
#include "Framework/CheckTypes.h"
3232
#include "Framework/StructToTuple.h"
33-
#include "Framework/ConfigParamDiscovery.h"
3433

3534
#include <vector>
3635
#include <cstring>
@@ -204,8 +203,6 @@ int mainNoCatch(int argc, char** argv)
204203
workflowOptionsStore->preload();
205204
workflowOptionsStore->activate();
206205
ConfigParamRegistry workflowOptionsRegistry(std::move(workflowOptionsStore));
207-
ConfigParamDiscovery::discover(workflowOptionsRegistry);
208-
209206
ConfigContext configContext(workflowOptionsRegistry, argc, argv);
210207
o2::framework::WorkflowSpec specs = defineDataProcessing(configContext);
211208
overrideCloning(configContext, specs);

Framework/Core/src/ConfigParamDiscovery.cxx

Lines changed: 0 additions & 71 deletions
This file was deleted.

Framework/Core/src/WorkflowCustomizationHelpers.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ std::vector<ConfigParamSpec> WorkflowCustomizationHelpers::requiredWorkflowOptio
5454
// options for AOD rate limiting
5555
{"aod-memory-rate-limit", VariantType::Int64, 0LL, {"Rate limit AOD processing based on memory"}},
5656

57-
// options for the AOD reader
58-
// aod-file needs to be available as workflow option, because we
59-
// can configure the workflow based on the contents of the first file.
60-
{"aod-file", VariantType::String, "", {"Input AOD file"}},
6157
// options for AOD writer
6258
{"aod-writer-json", VariantType::String, "", {"Name of the json configuration file"}},
6359
{"aod-writer-resdir", VariantType::String, "", {"Name of the output directory"}},

Framework/Core/src/WorkflowHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
297297
static_cast<DataAllocator::SubSpecificationType>(compile_time_hash("internal-dpl-aod-reader")),
298298
aodLifetime}},
299299
.algorithm = AlgorithmSpec::dummyAlgorithm(),
300-
.options = {ConfigParamSpec{"aod-file-private", VariantType::String, ctx.options().get<std::string>("aod-file"), {"AOD file"}},
300+
.options = {ConfigParamSpec{"aod-file", VariantType::String, {"Input AOD file"}},
301301
ConfigParamSpec{"aod-reader-json", VariantType::String, {"json configuration file"}},
302302
ConfigParamSpec{"aod-parent-access-level", VariantType::String, {"Allow parent file access up to specified level. Default: no (0)"}},
303303
ConfigParamSpec{"aod-parent-base-path-replacement", VariantType::String, {R"(Replace base path of parent files. Syntax: FROM;TO. E.g. "alien:///path/in/alien;/local/path". Enclose in "" on the command line.)"}},

Framework/TestWorkflows/src/o2AnalysisWorkflow.cxx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,7 @@ struct EtaAndClsHistograms {
4949

5050
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
5151
{
52-
// For the sake of running without an option, we do not throw an exception
53-
// in case the option is not present.
54-
if (cfgc.options().hasOption("aod-metadata-Run") == false ||
55-
cfgc.options().get<std::string>("aod-metadata-Run") == "2") {
56-
return WorkflowSpec{
57-
adaptAnalysisTask<EtaAndClsHistograms>(cfgc),
58-
};
59-
} else {
60-
throw std::runtime_error("Unsupported run type");
61-
}
52+
return WorkflowSpec{
53+
adaptAnalysisTask<EtaAndClsHistograms>(cfgc),
54+
};
6255
}

0 commit comments

Comments
 (0)