Project
Loading...
Searching...
No Matches
clusters-transformer-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
12
#include "
MCHGeometryTransformer/ClusterTransformerSpec.h
"
13
14
#include "
CommonUtils/ConfigurableParam.h
"
15
#include "
Framework/ConfigContext.h
"
16
#include "
Framework/ConfigParamSpec.h
"
17
#include "
Framework/Variant.h
"
18
#include "
Framework/WorkflowSpec.h
"
19
20
// we need to add workflow options before including Framework/runDataProcessing
21
void
customize
(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
22
{
23
workflowOptions.emplace_back(
"configKeyValues"
,
24
o2::framework::VariantType::String
,
""
,
25
o2::framework::ConfigParamSpec::HelpString
{
"Semicolon separated key=value strings"
});
26
workflowOptions.emplace_back(
"mch-disable-geometry-from-ccdb"
,
27
o2::framework::VariantType::Bool
,
false
,
28
o2::framework::ConfigParamSpec::HelpString
{
"do not read geometry from ccdb"
});
29
}
30
31
#include "
Framework/runDataProcessing.h
"
32
33
o2::framework::WorkflowSpec
defineDataProcessing
(
const
o2::framework::ConfigContext
& configContext)
34
{
35
o2::conf::ConfigurableParam::updateFromString
(configContext.
options
().
get
<std::string>(
"configKeyValues"
));
36
bool
disableCcdb = configContext.
options
().
get
<
bool
>(
"mch-disable-geometry-from-ccdb"
);
37
38
return
o2::framework::WorkflowSpec
{
o2::mch::getClusterTransformerSpec
(
"mch-cluster-transformer"
, disableCcdb)};
39
}
ClusterTransformerSpec.h
ConfigContext.h
ConfigParamSpec.h
ConfigurableParam.h
Variant.h
WorkflowSpec.h
o2::conf::ConfigurableParam::updateFromString
static void updateFromString(std::string const &)
Definition
ConfigurableParam.cxx:433
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
customize
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
Definition
clusters-transformer-workflow.cxx:21
defineDataProcessing
o2::framework::WorkflowSpec defineDataProcessing(const o2::framework::ConfigContext &configContext)
Definition
clusters-transformer-workflow.cxx:33
o2::framework::VariantType::String
@ String
o2::framework::VariantType::Bool
@ Bool
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::mch::getClusterTransformerSpec
o2::framework::DataProcessorSpec getClusterTransformerSpec(const char *specName="mch-cluster-transformer", bool disableCcdb=false)
Definition
ClusterTransformerSpec.cxx:128
runDataProcessing.h
o2::framework::ConfigParamSpec::HelpString
Definition
ConfigParamSpec.h:34
Detectors
MUON
MCH
Geometry
Transformer
src
clusters-transformer-workflow.cxx
Generated on Tue Feb 25 2025 23:16:22 for Project by
1.9.8