36void customize(std::vector<CallbacksPolicy>& policies)
41void customize(std::vector<CompletionPolicy>& policies)
47void customize(std::vector<ConfigParamSpec>& workflowOptions)
50 std::vector<ConfigParamSpec> options{
51 {
"digits-from-upstream", VariantType::Bool,
false, {
"digits will be provided from upstream, skip digits reader"}},
52 {
"clusters-from-upstream", VariantType::Bool,
false, {
"clusters will be provided from upstream, skip clusterizer"}},
53 {
"disable-root-output", VariantType::Bool,
false, {
"do not write output root files"}},
54 {
"disable-mc", VariantType::Bool,
false, {
"disable MC propagation even if available"}},
55 {
"disable-tracking", VariantType::Bool,
false, {
"disable tracking step"}},
56 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}},
57 {
"use-gpu-workflow", VariantType::Bool,
false, {
"use GPU workflow (default: false)"}},
58 {
"gpu-device", VariantType::Int, 1, {
"use gpu device: CPU=1,CUDA=2,HIP=3 (default: CPU)"}}};
59 std::swap(workflowOptions, options);
68 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
69 auto useGpuWF = configcontext.
options().
get<
bool>(
"use-gpu-workflow");
71 auto extDigits = configcontext.
options().
get<
bool>(
"digits-from-upstream");
72 auto extClusters = configcontext.
options().
get<
bool>(
"clusters-from-upstream");
73 auto disableRootOutput = configcontext.
options().
get<
bool>(
"disable-root-output");
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 PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::WorkflowSpec getWorkflow(bool useMC, bool upstreamDigits=false, bool upstreamClusters=false, bool disableRootOutput=false, bool useGPUWF=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...
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< CallbacksPolicy > &policies)