Project
Loading...
Searching...
No Matches
mft-ca-reco-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
15
16#include <string>
17
24
25using namespace o2::framework;
26
27void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
28{
30}
31
32void customize(std::vector<o2::framework::CompletionPolicy>& policies)
33{
34 policies.push_back(CompletionPolicyHelpers::consumeWhenAllOrdered(".*(?:MFT|mft).*[W,w]riter.*"));
35}
36
37void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
38{
39 std::vector<o2::framework::ConfigParamSpec> options{
40 {"digits-from-upstream", o2::framework::VariantType::Bool, false, {"digits will be provided from upstream, skip digits reader"}},
41 {"clusters-from-upstream", o2::framework::VariantType::Bool, false, {"clusters will be provided from upstream, skip clusterizer"}},
42 {"disable-root-output", o2::framework::VariantType::Bool, false, {"do not write output root files"}},
43 {"disable-mc", o2::framework::VariantType::Bool, false, {"disable MC propagation even if available"}},
44 {"disable-tracking", o2::framework::VariantType::Bool, false, {"disable tracking step"}},
45 {"run-assessment", o2::framework::VariantType::Bool, false, {"run MFT assessment workflow"}},
46 {"disable-process-gen", o2::framework::VariantType::Bool, false, {"disable processing of all generated tracks (depends on --run-assessment)"}},
47 {"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}},
48 {"nThreads", VariantType::Int, 1, {"Number of CA tracker threads"}},
49 {"use-geom", VariantType::Bool, false, {"alias for --use-full-geometry"}},
50 {"use-full-geometry", o2::framework::VariantType::Bool, false, {"use full geometry instead of the light-weight MFT part"}},
51 {"use-irframes", o2::framework::VariantType::Bool, false, {"consume ITS IR frames"}},
52 {"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"}},
53 {"run-tracks2records", o2::framework::VariantType::Bool, false, {"run MFT alignment tracks to records workflow"}},
54 {"cluster-rof-branch-only", o2::framework::VariantType::Bool, false, {"writer will store only ClustersROF branch"}}};
57 std::swap(workflowOptions, options);
58}
59
61
63{
65 auto workflow = o2::mft::ca_reco_workflow::getWorkflow(options);
66 o2::conf::ConfigurableParam::writeINI("o2mftcarecoflow_configuration.ini");
67
68 o2::raw::HBFUtilsInitializer hbfInitializer(configContext, workflow);
69 return workflow;
70}
static void writeINI(std::string const &filename, std::string const &keyOnly="")
WorkflowSpec defineDataProcessing(ConfigContext const &configContext)
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))