Project
Loading...
Searching...
No Matches
ccdb-populator-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 "
Framework/DataProcessorSpec.h
"
13
#include "
CCDBPopulatorSpec.h
"
14
#include "
CommonUtils/ConfigurableParam.h
"
15
#include "
CommonUtils/NameConf.h
"
16
17
using namespace
o2::framework
;
18
19
// we need to add workflow options before including Framework/runDataProcessing
20
void
customize
(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
21
{
22
// option allowing to set parameters
23
std::vector<o2::framework::ConfigParamSpec> options{
24
{
"name-extention"
, VariantType::String,
""
, {
"optional extention of device name"
}},
25
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings"
}}};
26
27
std::swap(workflowOptions, options);
28
}
29
30
// we need to add workflow options before including Framework/runDataProcessing
31
void
customize
(std::vector<o2::framework::CompletionPolicy>& policies)
32
{
33
// we customize the pipeline processors to consume data as it comes
34
using
CompletionPolicy
=
o2::framework::CompletionPolicy
;
35
using
CompletionPolicyHelpers
=
o2::framework::CompletionPolicyHelpers
;
36
auto
& pol = policies.emplace_back(
CompletionPolicyHelpers::defineByName
(
"ccdb-populator.*"
, CompletionPolicy::CompletionOp::Consume));
37
pol.order = CompletionPolicy::CompletionOrder::Slot;
38
}
39
40
// ------------------------------------------------------------------
41
42
#include "
Framework/runDataProcessing.h
"
43
44
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& configcontext)
45
{
46
WorkflowSpec
specs;
47
o2::conf::ConfigurableParam::updateFromString
(configcontext.
options
().
get
<std::string>(
"configKeyValues"
));
48
specs.emplace_back(getCCDBPopulatorDeviceSpec(
o2::base::NameConf::getCCDBServer
(), configcontext.
options
().
get
<std::string>(
"name-extention"
)));
49
return
specs;
50
}
CCDBPopulatorSpec.h
ConfigurableParam.h
DataProcessorSpec.h
NameConf.h
Definition of the Names Generator class.
customize
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
Definition
ccdb-populator-workflow.cxx:20
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
Definition
ccdb-populator-workflow.cxx:44
o2::base::NameConf::getCCDBServer
static std::string getCCDBServer()
Definition
NameConf.cxx:110
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::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::CompletionPolicyHelpers
Helper class which holds commonly used policies.
Definition
CompletionPolicyHelpers.h:26
o2::framework::CompletionPolicyHelpers::defineByName
static CompletionPolicy defineByName(std::string const &name, CompletionPolicy::CompletionOp op)
Definition
CompletionPolicyHelpers.cxx:76
o2::framework::CompletionPolicy
Definition
CompletionPolicy.h:34
Detectors
Calibration
workflow
ccdb-populator-workflow.cxx
Generated on Tue Feb 25 2025 23:16:13 for Project by
1.9.8