Project
Loading...
Searching...
No Matches
clusters-transformer-workflow.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 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
13
17#include "Framework/Variant.h"
19
20// we need to add workflow options before including Framework/runDataProcessing
21void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
22{
23 workflowOptions.emplace_back("configKeyValues",
25 o2::framework::ConfigParamSpec::HelpString{"Semicolon separated key=value strings"});
26 workflowOptions.emplace_back("mch-disable-geometry-from-ccdb",
28 o2::framework::ConfigParamSpec::HelpString{"do not read geometry from ccdb"});
29}
30
32
34{
35 o2::conf::ConfigurableParam::updateFromString(configContext.options().get<std::string>("configKeyValues"));
36 bool disableCcdb = configContext.options().get<bool>("mch-disable-geometry-from-ccdb");
37
38 return o2::framework::WorkflowSpec{o2::mch::getClusterTransformerSpec("mch-cluster-transformer", disableCcdb)};
39}
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
o2::framework::WorkflowSpec defineDataProcessing(const o2::framework::ConfigContext &configContext)
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getClusterTransformerSpec(const char *specName="mch-cluster-transformer", bool disableCcdb=false)