Project
Loading...
Searching...
No Matches
mft-ca-tracker-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
14#include <vector>
15#include <utility>
16
27
28using namespace o2::framework;
29
30void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
31{
33}
34
35void customize(std::vector<o2::framework::CompletionPolicy>& policies)
36{
37 policies.push_back(CompletionPolicyHelpers::consumeWhenAllOrdered(".*(?:MFT|mft).*[W,w]riter.*"));
38}
39
40void customize(std::vector<ConfigParamSpec>& workflowOptions)
41{
42 workflowOptions.push_back(ConfigParamSpec{"disable-mc", VariantType::Bool, false, {"disable MC labels"}});
43 workflowOptions.push_back(ConfigParamSpec{"disable-root-output", VariantType::Bool, false, {"do not write output root files"}});
44 workflowOptions.push_back(ConfigParamSpec{"nThreads", VariantType::Int, 1, {"Number of CA tracker threads; MFTCATrackerParam.nThreads takes precedence"}});
45 workflowOptions.push_back(ConfigParamSpec{"use-full-geometry", VariantType::Bool, false, {"alias for --use-geom"}});
46 workflowOptions.push_back(ConfigParamSpec{"use-geom", VariantType::Bool, false, {"use geometry from the global geometry manager"}});
47 workflowOptions.push_back(ConfigParamSpec{"use-irframes", VariantType::Bool, false, {"consume ITS IR frames"}});
48 workflowOptions.push_back(ConfigParamSpec{"tracking-mode", VariantType::String, "sync", {"sync,async,cosmics,unset,off; async uses 3 passes by default (MFTCATrackerParam.nIterations=-1); set nIterations=1 to retain one pass"}});
49 workflowOptions.push_back(ConfigParamSpec{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings (e.g. MFTCATrackerParam.nIterations=1;MFTAlpideParam.roFrameLengthInBC=594)"}});
52}
53
55
57{
59 auto workflow = o2::mft::ca_reco_workflow::getWorkflow(options);
60
61 o2::raw::HBFUtilsInitializer hbfInitializer(config, workflow);
62 return workflow;
63}
Shared CA tracking configuration for ITS and MFT.
WorkflowSpec defineDataProcessing(ConfigContext const &config)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
std::vector< DataProcessorSpec > WorkflowSpec
framework::WorkflowSpec getWorkflow(const ca::WorkflowOptions &options)
WorkflowOptions readWorkflowOptions(const o2::framework::ConfigContext &, WorkflowKind)
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
static void addMFTConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts)
static void addNewTimeSliceCallback(std::vector< o2::framework::CallbacksPolicy > &policies)
static void addConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts, const std::string &defOpt=std::string(o2::base::NameConf::DIGITIZATIONCONFIGFILE))