1313// / \author Piotr Konopka
1414// /
1515
16+ #include " QualityControl/InfrastructureGenerator.h"
17+ #include < Framework/DataSampling.h>
18+
19+ using namespace o2 ;
20+ using namespace o2 ::framework;
21+
22+ void customize (std::vector<CompletionPolicy>& policies)
23+ {
24+ DataSampling::CustomizeInfrastructure (policies);
25+ quality_control::customizeInfrastructure (policies);
26+ }
27+
1628#include " getTestDataDirectory.h"
1729#include " QualityControl/CheckRunner.h"
18- #include " QualityControl/InfrastructureGenerator.h"
1930#include " QualityControl/runnerUtils.h"
2031#include < Framework/runDataProcessing.h>
2132#include < Framework/ControlService.h>
22- #include < Framework/DataSampling.h>
2333#include < TH1F.h>
2434
25- using namespace o2 ;
26- using namespace o2 ::framework;
2735using namespace o2 ::quality_control::core;
2836using namespace o2 ::quality_control::checker;
2937
@@ -53,13 +61,13 @@ WorkflowSpec defineDataProcessing(ConfigContext const&)
5361 DataSampling::GenerateInfrastructure (specs, qcConfigurationSource);
5462
5563 // Generation of the QC topology (one task, one checker in this case)
56- quality_control::generateRemoteInfrastructure (specs, qcConfigurationSource);
64+ quality_control::generateStandaloneInfrastructure (specs, qcConfigurationSource);
5765
5866 // Finally the receiver
5967 DataProcessorSpec receiver{
6068 " receiver" ,
6169 Inputs{
62- { " checked-mo" , " QC" , CheckRunner::createCheckRunnerDataDescription (getFirstCheckerName (qcConfigurationSource)), 0 } },
70+ { " checked-mo" , " QC" , CheckRunner::createCheckRunnerDataDescription (getFirstCheckName (qcConfigurationSource)), 0 } },
6371 Outputs{},
6472 AlgorithmSpec{
6573 [](ProcessingContext& pctx) {
@@ -68,14 +76,14 @@ WorkflowSpec defineDataProcessing(ConfigContext const&)
6876 auto qo = pctx.inputs ().get <QualityObject*>(" checked-mo" );
6977 if (!qo) {
7078 LOG (ERROR ) << " Quality Object is a NULL" ;
71- pctx.services ().get <ControlService>().readyToQuit (true );
79+ pctx.services ().get <ControlService>().readyToQuit (QuitRequest::All );
7280 return ;
7381 }
7482
75- LOG (DEBUG ) << qo->getName () << " - qualit : " << qo->getQuality ();
83+ LOG (DEBUG ) << qo->getName () << " - quality : " << qo->getQuality ();
7684
7785 // We ask to shut the topology down, returning 0 if there were no ERROR logs.
78- pctx.services ().get <ControlService>().readyToQuit (true );
86+ pctx.services ().get <ControlService>().readyToQuit (QuitRequest::All );
7987 } }
8088 };
8189 specs.push_back (receiver);
0 commit comments