Skip to content

Commit 38526de

Browse files
committed
DPL: readout-proxy needs configurable --proxy-name option, in case we have more than one
1 parent ef4be57 commit 38526de

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Framework/Utils/src/raw-proxy.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ using namespace o2::framework;
2323
// we need to add workflow options before including Framework/runDataProcessing
2424
void customize(std::vector<ConfigParamSpec>& workflowOptions)
2525
{
26+
workflowOptions.push_back(
27+
ConfigParamSpec{
28+
"proxy-name", VariantType::String, "readout-proxy", {"name of the proxy processor"}});
29+
2630
workflowOptions.push_back(
2731
ConfigParamSpec{
2832
"dataspec", VariantType::String, "A:FLP/RAWDATA;B:FLP/DISTSUBTIMEFRAME/0", {"selection string for the data to be proxied"}});
@@ -36,6 +40,7 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
3640

3741
WorkflowSpec defineDataProcessing(ConfigContext const& config)
3842
{
43+
std::string processorName = config.options().get<std::string>("proxy-name");
3944
std::string outputconfig = config.options().get<std::string>("dataspec");
4045
bool throwOnUnmatched = config.options().get<bool>("throwOnUnmatched");
4146
std::vector<InputSpec> matchers = select(outputconfig.c_str());
@@ -47,7 +52,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& config)
4752
// we use the same specs as filters in the dpl adaptor
4853
auto filterSpecs = readoutProxyOutput;
4954
DataProcessorSpec readoutProxy = specifyExternalFairMQDeviceProxy(
50-
"readout-proxy",
55+
processorName.c_str(),
5156
std::move(readoutProxyOutput),
5257
"type=pair,method=connect,address=ipc:///tmp/readout-pipe-0,rateLogging=1,transport=shmem",
5358
dplModelAdaptor(filterSpecs, throwOnUnmatched));

0 commit comments

Comments
 (0)