Project
Loading...
Searching...
No Matches
recpoints-writer-workflow.cxx
Go to the documentation of this file.
1// Copyright 2019-2024 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
19#include "Framework/Variant.h"
20
22
23#include <vector>
24
25using namespace o2::framework;
26
27// we need to add workflow options before including Framework/runDataProcessing
28void customize(std::vector<ConfigParamSpec>& workflowOptions)
29{
30 std::vector<ConfigParamSpec> options{
31 {"disable-mc", VariantType::Bool, false, {"disable MC propagation even if available"}},
32 {"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}}};
33 workflowOptions.insert(workflowOptions.end(), options.begin(), options.end());
34}
35
37
39{
40 o2::conf::ConfigurableParam::updateFromString(ctx.options().get<std::string>("configKeyValues"));
41 bool disableMC = ctx.options().get<bool>("disable-mc");
42
43 WorkflowSpec specs;
45 specs.push_back(producer);
46 return specs;
47}
WorkflowSpec defineDataProcessing(const ConfigContext &ctx)
void customize(std::vector< ConfigParamSpec > &workflowOptions)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getRecPointWriterSpec(bool useMC)
create a processor spec