Project
Loading...
Searching...
No Matches
clusters-writer-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
14
15
#include "
CommonUtils/ConfigurableParam.h
"
16
#include "
CommonUtils/NameConf.h
"
17
#include "
DetectorsRaw/HBFUtilsInitializer.h
"
18
#include "
Framework/CallbackService.h
"
19
#include "
Framework/CallbacksPolicy.h
"
20
#include "
Framework/CompletionPolicy.h
"
21
#include "
Framework/CompletionPolicyHelpers.h
"
22
#include "
Framework/ConfigParamSpec.h
"
23
#include "
Framework/ControlService.h
"
24
#include "
Framework/DataSpecUtils.h
"
25
#include "
Framework/DispatchPolicy.h
"
26
#include "
Framework/Task.h
"
27
#include "
Framework/Variant.h
"
28
#include "
Framework/WorkflowSpec.h
"
29
30
void
customize
(std::vector<o2::framework::CallbacksPolicy>& policies)
31
{
32
o2::raw::HBFUtilsInitializer::addNewTimeSliceCallback
(policies);
33
}
34
35
void
customize
(std::vector<o2::framework::CompletionPolicy>& policies)
36
{
37
// ordered policies for the writers
38
policies.push_back(
o2::framework::CompletionPolicyHelpers::consumeWhenAllOrdered
(
".*HMPClustersWriter.*"
));
39
}
40
41
using
o2::framework::ConfigParamSpec
;
42
using
o2::framework::VariantType
;
43
// we need to add workflow options before including Framework/runDataProcessing
44
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
45
{
46
std::string keyvaluehelp(
"Semicolon separated key=value strings ..."
);
47
workflowOptions.push_back(
48
ConfigParamSpec
{
"configKeyValues"
,
49
VariantType::String,
50
""
,
51
{keyvaluehelp}});
52
53
o2::raw::HBFUtilsInitializer::addConfigOption
(workflowOptions);
54
}
55
56
#include "
Framework/runDataProcessing.h
"
57
#include "
HMPIDWorkflow/ClustersWriterSpec.h
"
58
59
using namespace
o2
;
60
using namespace
o2::framework
;
61
62
WorkflowSpec
defineDataProcessing
(
const
ConfigContext
& configcontext)
63
{
64
WorkflowSpec
specs;
65
o2::conf::ConfigurableParam::updateFromString
(
66
configcontext.
options
().
get
<std::string>(
"configKeyValues"
));
67
68
specs.push_back(
hmpid::getClusterWriterSpec
());
69
70
return
specs;
71
}
CallbackService.h
CallbacksPolicy.h
ClustersWriterSpec.h
Implementation of writing HMPID clusters to file.
CompletionPolicyHelpers.h
CompletionPolicy.h
ConfigParamSpec.h
ConfigurableParam.h
ControlService.h
DataSpecUtils.h
DispatchPolicy.h
HBFUtilsInitializer.h
defineDataProcessing
WorkflowSpec defineDataProcessing(const ConfigContext &configcontext)
Definition
clusters-writer-workflow.cxx:62
customize
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
Definition
clusters-writer-workflow.cxx:30
NameConf.h
Definition of the Names Generator class.
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
VariantType
Definition
Variant.h:30
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::hmpid::getClusterWriterSpec
o2::framework::DataProcessorSpec getClusterWriterSpec()
Definition
ClustersWriterSpec.cxx:29
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::consumeWhenAllOrdered
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
Definition
CompletionPolicyHelpers.cxx:174
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
o2::raw::HBFUtilsInitializer::addNewTimeSliceCallback
static void addNewTimeSliceCallback(std::vector< o2::framework::CallbacksPolicy > &policies)
Definition
HBFUtilsInitializer.cxx:267
o2::raw::HBFUtilsInitializer::addConfigOption
static void addConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts, const std::string &defOpt=std::string(o2::base::NameConf::DIGITIZATIONCONFIGFILE))
Definition
HBFUtilsInitializer.cxx:323
Detectors
HMPID
workflow
src
clusters-writer-workflow.cxx
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8