Project
Loading...
Searching...
No Matches
recpoints-writer-workflow.cxx
Go to the documentation of this file.
1
// Copyright 2019-2024 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 "
FDDWorkflow/RecPointWriterSpec.h
"
18
19
#include "
CommonUtils/ConfigurableParam.h
"
20
#include "
Framework/ConfigParamSpec.h
"
21
#include "
Framework/Variant.h
"
22
23
#include <vector>
24
25
using namespace
o2::framework
;
26
27
// we need to add workflow options before including Framework/runDataProcessing
28
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
29
{
30
std::vector<ConfigParamSpec> options{
31
{
"disable-mc"
, VariantType::Bool,
false
, {
"disable MC propagation even if available"
}},
32
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings"
}}};
33
workflowOptions.insert(workflowOptions.end(), options.begin(), options.end());
34
}
35
36
#include "
Framework/runDataProcessing.h
"
37
38
WorkflowSpec
defineDataProcessing
(
const
ConfigContext
& ctx)
39
{
40
o2::conf::ConfigurableParam::updateFromString
(ctx.
options
().
get
<std::string>(
"configKeyValues"
));
41
bool
disableMC = ctx.
options
().
get
<
bool
>(
"disable-mc"
);
42
43
WorkflowSpec
specs;
44
DataProcessorSpec
producer =
o2::fdd::getFDDRecPointWriterSpec
(!disableMC);
45
specs.push_back(producer);
46
return
specs;
47
}
ConfigParamSpec.h
ConfigurableParam.h
RecPointWriterSpec.h
defineDataProcessing
WorkflowSpec defineDataProcessing(const ConfigContext &ctx)
Definition
recpoints-writer-workflow.cxx:38
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
recpoints-writer-workflow.cxx:28
Variant.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
o2::fdd::getFDDRecPointWriterSpec
framework::DataProcessorSpec getFDDRecPointWriterSpec(bool useMC)
create a processor spec
Definition
RecPointWriterSpec.cxx:29
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
runDataProcessing.h
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
Detectors
FIT
FDD
workflow
src
recpoints-writer-workflow.cxx
Generated on Fri Apr 11 2025 11:41:24 for Project by
1.9.8