Skip to content

Commit 22d49c1

Browse files
committed
Allow passing configKeyValues to TOF workflow
1 parent 84ef60e commit 22d49c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Detectors/GlobalTrackingWorkflow/tofworkflow/src/tof-reco-workflow.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
5353
workflowOptions.push_back(ConfigParamSpec{"use-ccdb", o2::framework::VariantType::Bool, false, {"enable access to ccdb tof calibration objects"}});
5454
workflowOptions.push_back(ConfigParamSpec{"use-fit", o2::framework::VariantType::Bool, false, {"enable access to fit info for calibration"}});
5555
workflowOptions.push_back(ConfigParamSpec{"input-desc", o2::framework::VariantType::String, "CRAWDATA", {"Input specs description string"}});
56+
workflowOptions.push_back(ConfigParamSpec{"configKeyValues", o2::framework::VariantType::String, "", {"Semicolon separated key=value strings ..."}});
5657
}
5758

5859
#include "Framework/runDataProcessing.h" // the main driver
@@ -84,7 +85,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
8485
LOG(ERROR) << "This workflow needs a valid GRP file to start";
8586
return specs;
8687
}
87-
88+
o2::conf::ConfigurableParam::updateFromString(cfgc.options().get<std::string>("configKeyValues"));
8889
// o2::conf::ConfigurableParam::writeINI("o2tofrecoflow_configuration.ini");
8990

9091
// the lane configuration defines the subspecification ids to be distributed among the lanes.

0 commit comments

Comments
 (0)