Project
Loading...
Searching...
No Matches
its-cluster-writer-workflow.cxx
Go to the documentation of this file.
1// Copyright 2019-2026 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
17using namespace o2::framework;
18
19void customize(std::vector<o2::framework::CompletionPolicy>& policies)
20{
21 // ordered policies for the writers
22 policies.push_back(CompletionPolicyHelpers::consumeWhenAllOrdered(".*(?:ITS|its).*[W,w]riter.*"));
23}
24
25void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
26{
27 workflowOptions.push_back(
29 "disable-mc",
31 false,
32 {"disable MC propagation even if available"}});
33 workflowOptions.push_back(
35 "cluster-rof-branch-only",
37 false,
38 {"writer will store only ClustersROF brunch"}});
39
41}
42
44
46{
47 auto useMC = !configcontext.options().get<bool>("disable-mc");
49 auto clrofOnly = configcontext.options().get<bool>("cluster-rof-branch-only");
50 return std::move(o2::its::cluster_writer_workflow::getWorkflow(useMC, doStag, clrofOnly));
51}
ConfigParamRegistry & options() const
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
std::vector< DataProcessorSpec > WorkflowSpec
framework::WorkflowSpec getWorkflow(bool useMC, bool doStag, bool clusterROFOnly=false)
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
static bool isITSStaggeringEnabled(o2::framework::ConfigContext const &cfgc)
static void addITSConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts)