Project
Loading...
Searching...
No Matches
raw-to-digits-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/WorkflowSpec.h
"
19
#include "
Framework/DataSpecUtils.h
"
20
#include "
Framework/CallbackService.h
"
21
#include "
Framework/ControlService.h
"
22
#include "
Framework/Task.h
"
23
#include "
Framework/CompletionPolicy.h
"
24
#include "
Framework/CompletionPolicyHelpers.h
"
25
#include "
Framework/DispatchPolicy.h
"
26
#include "
Framework/ConfigParamSpec.h
"
27
#include "
Framework/Variant.h
"
28
#include "
CommonUtils/ConfigurableParam.h
"
29
30
// customize the completion policy
31
void
customize
(std::vector<o2::framework::CompletionPolicy>& policies)
32
{
33
using
o2::framework::CompletionPolicy
;
34
using
o2::framework::CompletionPolicyHelpers
;
35
policies.push_back(
CompletionPolicyHelpers::defineByName
(
"raw-hmpid-read"
, CompletionPolicy::CompletionOp::Process));
36
}
37
38
// we need to add workflow options before including Framework/runDataProcessing
39
void
customize
(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
40
{
41
std::string keyvaluehelp(
"Semicolon separated key=value strings ..."
);
42
workflowOptions.push_back(
o2::framework::ConfigParamSpec
{
"configKeyValues"
,
o2::framework::VariantType::String
,
""
, {keyvaluehelp}});
43
}
44
45
#include "
Framework/runDataProcessing.h
"
46
#include "
HMPIDWorkflow/RawToDigitsSpec.h
"
47
48
using namespace
o2
;
49
using namespace
o2::framework
;
50
51
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cx)
52
{
53
WorkflowSpec
specs;
54
o2::conf::ConfigurableParam::updateFromString
(cx.
options
().
get
<std::string>(
"configKeyValues"
));
55
DataProcessorSpec
consumer =
o2::hmpid::getRawToDigitsSpec
();
56
specs.push_back(consumer);
57
return
specs;
58
}
CallbackService.h
CompletionPolicyHelpers.h
CompletionPolicy.h
ConfigParamSpec.h
ConfigurableParam.h
ControlService.h
DataSpecUtils.h
DispatchPolicy.h
RawToDigitsSpec.h
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &cx)
Definition
raw-to-digits-workflow.cxx:51
customize
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
Definition
raw-to-digits-workflow.cxx:31
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::getRawToDigitsSpec
o2::framework::DataProcessorSpec getRawToDigitsSpec(std::string inputSpec="HMP/RAWDATA")
Definition
RawToDigitsSpec.cxx:333
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
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
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
Detectors
HMPID
workflow
src
raw-to-digits-workflow.cxx
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8