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>
19
#include "
Framework/ConfigParamSpec.h
"
20
#include "
Framework/ConfigContext.h
"
21
#include "
Framework/WorkflowSpec.h
"
22
#include "
ErrorMergerSpec.h
"
23
24
using namespace
o2::framework
;
25
26
void
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
36
#include "
Framework/runDataProcessing.h
"
37
38
WorkflowSpec
defineDataProcessing
(
const
ConfigContext
& config)
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
}
ConfigContext.h
ConfigParamSpec.h
ErrorMergerSpec.h
Definition of a data processor to merge the processing errors in one single output.
WorkflowSpec.h
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ConfigContext::options
ConfigParamRegistry & options() const
Definition
ConfigContext.h:28
o2::framework::ConfigParamRegistry::get
T get(const char *key) const
Definition
ConfigParamRegistry.h:98
defineDataProcessing
WorkflowSpec defineDataProcessing(const ConfigContext &config)
Definition
errors-merger-workflow.cxx:38
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
errors-merger-workflow.cxx:26
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::mch::getErrorMergerSpec
DataProcessorSpec getErrorMergerSpec(const char *specName, bool preclustering, bool clustering, bool tracking)
Definition
ErrorMergerSpec.cxx:84
runDataProcessing.h
o2::framework::ConfigParamSpec::HelpString
Definition
ConfigParamSpec.h:34
Detectors
MUON
MCH
Workflow
src
errors-merger-workflow.cxx
Generated on Tue Feb 25 2025 23:16:24 for Project by
1.9.8