Skip to content

Commit d051de2

Browse files
authored
Add customization of DS and QC in runQC (#220)
1 parent d74558c commit d051de2

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

Framework/src/runQC.cxx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
/// Similarly, to generate only the remote part (running on QC servers) add '--remote'. By default, the executable
2626
/// generates both local and remote topologies, as it is the usual use-case for local development.
2727

28-
#include "Framework/DataSampling.h"
28+
#include <Framework/DataSampling.h>
29+
#include "QualityControl/InfrastructureGenerator.h"
30+
31+
using namespace o2;
2932
using namespace o2::framework;
3033

3134
void customize(std::vector<ConfigParamSpec>& workflowOptions)
@@ -43,18 +46,25 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
4346
ConfigParamSpec{ "remote", VariantType::Bool, false, { "Creates only the remote part of the QC topology." } });
4447
}
4548

49+
void customize(std::vector<CompletionPolicy>& policies)
50+
{
51+
DataSampling::CustomizeInfrastructure(policies);
52+
quality_control::customizeInfrastructure(policies);
53+
}
54+
55+
void customize(std::vector<ChannelConfigurationPolicy>& policies)
56+
{
57+
DataSampling::CustomizeInfrastructure(policies);
58+
}
59+
4660
#include <FairLogger.h>
47-
#include <TH1F.h>
4861
#include <memory>
4962
#include <random>
5063

51-
#include "Framework/runDataProcessing.h"
64+
#include <Framework/runDataProcessing.h>
5265

5366
#include "QualityControl/Checker.h"
54-
#include "QualityControl/InfrastructureGenerator.h"
5567

56-
using namespace o2;
57-
using namespace o2::framework;
5868
using namespace o2::quality_control::checker;
5969
using namespace std::chrono;
6070

0 commit comments

Comments
 (0)