Project
Loading...
Searching...
No Matches
raw-to-digits-stream-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/WorkflowSpec.h
"
13
#include "
Framework/DataSpecUtils.h
"
14
#include "
Framework/CallbackService.h
"
15
#include "
Framework/ControlService.h
"
16
#include "
Framework/Task.h
"
17
#include "
Framework/CompletionPolicy.h
"
18
#include "
Framework/CompletionPolicyHelpers.h
"
19
#include "
Framework/DispatchPolicy.h
"
20
#include "
Framework/DataProcessorSpec.h
"
21
#include "
Framework/InputRecordWalker.h
"
22
#include "
Framework/Logger.h
"
23
#include "
Framework/ConfigParamSpec.h
"
24
#include "
CommonUtils/ConfigurableParam.h
"
25
#include "
Framework/Variant.h
"
26
27
// customize dispatch policy, dispatch immediately what is ready
28
void
customize
(std::vector<o2::framework::DispatchPolicy>& policies)
29
{
30
using
DispatchOp =
o2::framework::DispatchPolicy::DispatchOp
;
31
auto
readerMatcher = [](
auto
const
& spec) {
32
return
true
;
33
};
34
auto
triggerMatcher = [](
auto
const
& query) {
35
return
true
;
36
};
37
policies.push_back({
"decoded-hmpid-digits"
, readerMatcher, DispatchOp::WhenReady, triggerMatcher});
38
}
39
40
// we need to add workflow options before including Framework/runDataProcessing
41
void
customize
(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
42
{
43
std::string keyvaluehelp(
"Semicolon separated key=value strings ..."
);
44
workflowOptions.push_back(
o2::framework::ConfigParamSpec
{
"configKeyValues"
,
o2::framework::VariantType::String
,
""
, {keyvaluehelp}});
45
workflowOptions.push_back(
o2::framework::ConfigParamSpec
{
"ignore-dist-stf"
,
o2::framework::VariantType::Bool
,
false
, {
"do not subscribe to FLP/DISTSUBTIMEFRAME/0 message (no lost TF recovery)"
}});
46
}
47
48
#include "
Framework/runDataProcessing.h
"
49
#include "
HMPIDWorkflow/DataDecoderSpec2.h
"
50
51
using namespace
o2
;
52
using namespace
o2::framework
;
53
54
WorkflowSpec
defineDataProcessing
(
const
ConfigContext
& cx)
55
{
56
WorkflowSpec
specs;
57
o2::conf::ConfigurableParam::updateFromString
(cx.
options
().
get
<std::string>(
"configKeyValues"
));
58
auto
askSTFDist = !cx.
options
().
get
<
bool
>(
"ignore-dist-stf"
);
59
DataProcessorSpec
producer =
o2::hmpid::getDecodingSpec2
(askSTFDist);
60
specs.push_back(producer);
61
return
specs;
62
}
CallbackService.h
CompletionPolicyHelpers.h
CompletionPolicy.h
ConfigParamSpec.h
ConfigurableParam.h
ControlService.h
DataDecoderSpec2.h
DataProcessorSpec.h
DataSpecUtils.h
DispatchPolicy.h
InputRecordWalker.h
A helper class to iteratate over all parts of all input routes.
Logger.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::VariantType::Bool
@ Bool
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::hmpid::getDecodingSpec2
o2::framework::DataProcessorSpec getDecodingSpec2(bool askSTFDist)
Definition
DataDecoderSpec2.cxx:336
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-digits-stream-workflow.cxx:28
defineDataProcessing
WorkflowSpec defineDataProcessing(const ConfigContext &cx)
Definition
raw-to-digits-stream-workflow.cxx:54
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-digits-stream-workflow.cxx
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8