Project
Loading...
Searching...
No Matches
raw-to-pedestals-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
17
18
#include "
Framework/Variant.h
"
19
#include "
Framework/WorkflowSpec.h
"
20
#include "
Framework/DataSpecUtils.h
"
21
#include "
Framework/CallbackService.h
"
22
#include "
Framework/ControlService.h
"
23
#include "
Framework/Task.h
"
24
#include "
Framework/CompletionPolicy.h
"
25
#include "
Framework/CompletionPolicyHelpers.h
"
26
#include "
Framework/DispatchPolicy.h
"
27
#include "
Framework/DataProcessorSpec.h
"
28
#include "
Framework/InputRecordWalker.h
"
29
#include "
Framework/Logger.h
"
30
#include "
Framework/ConfigParamSpec.h
"
31
#include "
CommonUtils/ConfigurableParam.h
"
32
33
// customize dispatch policy, dispatch immediately what is ready
34
void
customize
(std::vector<o2::framework::DispatchPolicy>& policies)
35
{
36
using
DispatchOp =
o2::framework::DispatchPolicy::DispatchOp
;
37
auto
readerMatcher = [](
auto
const
& spec) {
38
return
true
;
39
};
40
auto
triggerMatcher = [](
auto
const
& query) {
41
return
true
;
42
};
43
policies.push_back({
"raw-hmpid-pedestals"
, readerMatcher, DispatchOp::WhenReady, triggerMatcher});
44
}
45
46
// we need to add workflow options before including Framework/runDataProcessing
47
void
customize
(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
48
{
49
std::string keyvaluehelp(
"Semicolon separated key=value strings ..."
);
50
workflowOptions.push_back(
o2::framework::ConfigParamSpec
{
"configKeyValues"
,
o2::framework::VariantType::String
,
""
, {keyvaluehelp}});
51
}
52
53
#include "
Framework/runDataProcessing.h
"
54
#include "
HMPIDWorkflow/PedestalsCalculationSpec.h
"
55
56
using namespace
o2
;
57
using namespace
o2::framework
;
58
59
WorkflowSpec
defineDataProcessing
(
const
ConfigContext
& cx)
60
{
61
WorkflowSpec
specs;
62
o2::conf::ConfigurableParam::updateFromString
(cx.
options
().
get
<std::string>(
"configKeyValues"
));
63
DataProcessorSpec
producer =
o2::hmpid::getPedestalsCalculationSpec
();
64
specs.push_back(producer);
65
return
specs;
66
}
CallbackService.h
CompletionPolicyHelpers.h
CompletionPolicy.h
ConfigParamSpec.h
ConfigurableParam.h
ControlService.h
DataProcessorSpec.h
DataSpecUtils.h
DispatchPolicy.h
InputRecordWalker.h
A helper class to iteratate over all parts of all input routes.
Logger.h
PedestalsCalculationSpec.h
Task.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
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::VariantType::String
@ String
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::hmpid::getPedestalsCalculationSpec
o2::framework::DataProcessorSpec getPedestalsCalculationSpec(std::string inputSpec="TF:HMP/RAWDATA")
Definition
PedestalsCalculationSpec.cxx:358
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
customize
void customize(std::vector< o2::framework::DispatchPolicy > &policies)
Definition
raw-to-pedestals-workflow.cxx:34
defineDataProcessing
WorkflowSpec defineDataProcessing(const ConfigContext &cx)
Definition
raw-to-pedestals-workflow.cxx:59
runDataProcessing.h
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::framework::DispatchPolicy::DispatchOp
DispatchOp
Definition
DispatchPolicy.h:32
Detectors
HMPID
workflow
src
raw-to-pedestals-workflow.cxx
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8