Project
Loading...
Searching...
No Matches
errors-merger-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
17#include <string>
18#include <vector>
22#include "ErrorMergerSpec.h"
23
24using namespace o2::framework;
25
26void customize(std::vector<ConfigParamSpec>& workflowOptions)
27{
28 workflowOptions.emplace_back("disable-preclustering-errors", VariantType::Bool, false,
29 ConfigParamSpec::HelpString{"Do not consider preclustering errors"});
30 workflowOptions.emplace_back("disable-clustering-errors", VariantType::Bool, false,
31 ConfigParamSpec::HelpString{"Do not consider clustering errors"});
32 workflowOptions.emplace_back("disable-tracking-errors", VariantType::Bool, false,
33 ConfigParamSpec::HelpString{"Do not consider tracking errors"});
34}
35
37
39{
40 bool preclustering = !config.options().get<bool>("disable-preclustering-errors");
41 bool clustering = !config.options().get<bool>("disable-clustering-errors");
42 bool tracking = !config.options().get<bool>("disable-tracking-errors");
43 return WorkflowSpec{o2::mch::getErrorMergerSpec("mch-error-merger", preclustering, clustering, tracking)};
44}
Definition of a data processor to merge the processing errors in one single output.
ConfigParamRegistry & options() const
WorkflowSpec defineDataProcessing(const ConfigContext &config)
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
DataProcessorSpec getErrorMergerSpec(const char *specName, bool preclustering, bool clustering, bool tracking)