Project
Loading...
Searching...
No Matches
clusters-to-tracks-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
16
19
20using namespace o2::framework;
21
22// we need to add workflow options before including Framework/runDataProcessing
23void customize(std::vector<ConfigParamSpec>& workflowOptions)
24{
25 workflowOptions.emplace_back("configKeyValues", VariantType::String, "",
26 ConfigParamSpec::HelpString{"Semicolon separated key=value strings"});
27 workflowOptions.emplace_back("disable-time-computation", VariantType::Bool, false,
28 ConfigParamSpec::HelpString{"disable track time computation from associated digits"});
29 workflowOptions.emplace_back("digits", VariantType::Bool, false,
30 ConfigParamSpec::HelpString{"Send associated digits"});
31 workflowOptions.emplace_back("disable-magfield-from-ccdb", VariantType::Bool, false,
32 ConfigParamSpec::HelpString{"do not read magnetic field from ccdb"});
33 workflowOptions.emplace_back("original", VariantType::Bool, false,
34 ConfigParamSpec::HelpString{"use the original track finder algorithm"});
35}
36
38
40{
41 o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
42 bool computeTime = !configcontext.options().get<bool>("disable-time-computation");
43 bool digits = configcontext.options().get<bool>("digits");
44 bool disableCCDBMagField = configcontext.options().get<bool>("disable-magfield-from-ccdb");
45 bool original = configcontext.options().get<bool>("original");
46 return WorkflowSpec{o2::mch::getTrackFinderSpec(original ? "mch-track-finder-original" : "mch-track-finder",
47 computeTime, digits, disableCCDBMagField, original)};
48}
Definition of a data processor to read clusters, reconstruct tracks and send them.
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
WorkflowSpec defineDataProcessing(const ConfigContext &configcontext)
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getTrackFinderSpec(const char *specName="mch-track-finder", bool computeTime=true, bool digits=false, bool disableCCDBMagField=false, bool original=false)
std::vector< Digit > digits