Project
Loading...
Searching...
No Matches
its-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
15
16#include <tuple>
17#include <vector>
18
28
29using namespace o2::framework;
30
31void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
32{
34}
35
36void customize(std::vector<o2::framework::CompletionPolicy>& policies)
37{
38 policies.push_back(CompletionPolicyHelpers::consumeWhenAllOrdered(".*(?:ITS|its).*[W,w]riter.*"));
39}
40
41void customize(std::vector<ConfigParamSpec>& workflowOptions)
42{
43 workflowOptions.push_back(ConfigParamSpec{"disable-mc", VariantType::Bool, false, {"disable MC labels"}});
44 workflowOptions.push_back(ConfigParamSpec{"disable-root-output", VariantType::Bool, false, {"do not write output root files"}});
45 workflowOptions.push_back(ConfigParamSpec{"vertex-source", VariantType::String, "", {"diamond or truth; alternatively select exactly one legacy vertex alias"}});
46 workflowOptions.push_back(ConfigParamSpec{"truth-context", VariantType::String, "collisioncontext.root", {"digitization context for truth vertices, independent of MC output labels"}});
47 workflowOptions.push_back(ConfigParamSpec{"use-full-geometry", VariantType::Bool, false, {"alias for --use-geom"}});
48 workflowOptions.push_back(ConfigParamSpec{"use-geom", VariantType::Bool, false, {"use geometry from the global geometry manager"}});
49 workflowOptions.push_back(ConfigParamSpec{"tracking-mode", VariantType::String, "sync", {"ITS tracking mode: 'sync' or 'async'"}});
50 workflowOptions.push_back(ConfigParamSpec{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings (e.g. ITSCommonCATrackerParam.useDiamond=true)"}});
52}
53
55
57{
58 // Help constructs device descriptions without starting tracking.
60 WorkflowSpec specs;
61 specs.emplace_back(o2::its::ca::getCATrackerSpec(options));
62 if (options.writeRootOutput) {
63 specs.emplace_back(o2::its::ca::getTrackWriterSpec(options.useMC));
64 }
65
66 o2::raw::HBFUtilsInitializer hbfIni(config, specs);
67
68 return specs;
69}
Driver-level configuration and vertex-constraint preflight for the ITS common-CA tracker workflow.
Shared CA tracking configuration for ITS and MFT.
Vertex-free ITS common-CA track writer. Writes a distinct file (o2trac_its_ca.root) with no vertex br...
ITS common-CA tracker DPL device with tracker-only outputs.
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
WorkflowOptions readWorkflowOptions(const o2::framework::ConfigContext &)
o2::framework::DataProcessorSpec getTrackWriterSpec(bool useMC)
Write ITS CA tracks to o2trac_its_ca.root without vertex branches.
o2::framework::DataProcessorSpec getCATrackerSpec(const WorkflowOptions &options)
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
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))