24void customize(std::vector<CallbacksPolicy>& policies)
29void customize(std::vector<CompletionPolicy>& policies)
34void customize(std::vector<ConfigParamSpec>& workflowOptions)
36 std::vector<ConfigParamSpec> options{
37 {
"disable-root-output", VariantType::Bool,
false, {
"do not write output root files"}},
38 {
"disable-mc", VariantType::Bool,
false, {
"disable MC propagation even if available"}},
39 {
"tracking-from-hits-config", VariantType::String,
"", {
"JSON file with tracking from hits configuration"}},
40 {
"tracking-from-clusters-config", VariantType::String,
"", {
"JSON file with tracking from clusters configuration"}},
41 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}},
42 {
"gpu-device", VariantType::Int, 1, {
"use gpu device: CPU=1,CUDA=2,HIP=3 (default: CPU)"}}};
43 std::swap(workflowOptions, options);
51 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
52 auto hitRecoConfig = configcontext.
options().
get<std::string>(
"tracking-from-hits-config");
53 auto clusterRecoConfig = configcontext.
options().
get<std::string>(
"tracking-from-clusters-config");
55 auto disableRootOutput = configcontext.
options().
get<
bool>(
"disable-root-output");
58 if (hitRecoConfig.empty() && clusterRecoConfig.empty()) {
59 throw std::invalid_argument(
"no reconstruction input configured: provide either --tracking-from-hits-config <file> or --tracking-from-clusters-config <file>");
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< CallbacksPolicy > &policies)
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
T get(const char *key) const
Defining ITS Vertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::WorkflowSpec getWorkflow(bool useMC, const std::string &hitRecoConfig, const std::string &clusterRecoConfig, bool disableRootOutput=false, o2::gpu::gpudatatypes::DeviceType dType=o2::gpu::gpudatatypes::DeviceType::CPU)
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...