@@ -23,6 +23,10 @@ using namespace o2::framework;
2323// we need to add workflow options before including Framework/runDataProcessing
2424void 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
3741WorkflowSpec 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