@@ -35,15 +35,15 @@ void defineDataProcessing(std::vector<DataProcessorSpec> &specs) {
3535 " reader" ,
3636 Inputs{},
3737 {
38- OutputSpec{" TPC" , " CLUSTERS" },
39- OutputSpec{" ITS" , " CLUSTERS" }
38+ OutputSpec{{ " tpc " }, " TPC" , " CLUSTERS" },
39+ OutputSpec{{ " its " }, " ITS" , " CLUSTERS" }
4040 },
4141 AlgorithmSpec{
4242 [](ProcessingContext &ctx) {
4343 sleep (1 );
4444 // Creates a new message of size 1000 which
4545 // has "TPC" as data origin and "CLUSTERS" as data description.
46- auto tpcClusters = ctx.outputs ().make <FakeCluster>(Output{ " TPC " , " CLUSTERS " , 0 }, 1000 );
46+ auto tpcClusters = ctx.outputs ().make <FakeCluster>(OutputRef{ " tpc " }, 1000 );
4747 int i = 0 ;
4848
4949 for (auto &cluster : tpcClusters) {
@@ -55,7 +55,7 @@ void defineDataProcessing(std::vector<DataProcessorSpec> &specs) {
5555 i++;
5656 }
5757
58- auto itsClusters = ctx.outputs ().make <FakeCluster>(Output{ " ITS " , " CLUSTERS " , 0 }, 1000 );
58+ auto itsClusters = ctx.outputs ().make <FakeCluster>(OutputRef{ " its " }, 1000 );
5959 i = 0 ;
6060 for (auto &cluster : itsClusters) {
6161 assert (i < 1000 );
@@ -73,9 +73,9 @@ void defineDataProcessing(std::vector<DataProcessorSpec> &specs) {
7373 DataProcessorSpec tpcClusterSummary{
7474 " tpc-cluster-summary" ,
7575 { InputSpec{ " clusters" , " TPC" , " CLUSTERS" } },
76- { OutputSpec{ " TPC" , " SUMMARY" } },
76+ { OutputSpec{ { " summary " }, " TPC" , " SUMMARY" } },
7777 AlgorithmSpec{ [](ProcessingContext& ctx) {
78- auto tpcSummary = ctx.outputs ().make <Summary>(Output{ " TPC " , " SUMMARY " , 0 }, 1 );
78+ auto tpcSummary = ctx.outputs ().make <Summary>(OutputRef{ " summary " }, 1 );
7979 tpcSummary.at (0 ).inputCount = ctx.inputs ().size ();
8080 } },
8181 { ConfigParamSpec{ " some-cut" , VariantType::Float, 1 .0f , { " some cut" } } },
@@ -86,10 +86,10 @@ void defineDataProcessing(std::vector<DataProcessorSpec> &specs) {
8686 " its-cluster-summary" ,
8787 { InputSpec{ " clusters" , " ITS" , " CLUSTERS" } },
8888 {
89- OutputSpec{ " ITS" , " SUMMARY" },
89+ OutputSpec{ { " summary " }, " ITS" , " SUMMARY" },
9090 },
9191 AlgorithmSpec{ [](ProcessingContext& ctx) {
92- auto itsSummary = ctx.outputs ().make <Summary>(Output{ " ITS " , " SUMMARY " , 0 }, 1 );
92+ auto itsSummary = ctx.outputs ().make <Summary>(OutputRef{ " summary " }, 1 );
9393 itsSummary.at (0 ).inputCount = ctx.inputs ().size ();
9494 } },
9595 { ConfigParamSpec{ " some-cut" , VariantType::Float, 1 .0f , { " some cut" } } },
0 commit comments