Project
Loading...
Searching...
No Matches
diststf-sender-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 "
DetectorsRaw/HBFUtilsInitializer.h
"
13
#include "
DetectorsRaw/DistSTFSenderSpec.h
"
14
#include "
CommonUtils/ConfigurableParam.h
"
15
#include "
Framework/WorkflowSpec.h
"
16
#include "
Framework/CallbacksPolicy.h
"
17
#include "
Framework/Logger.h
"
18
#include <string>
19
20
using namespace
o2::framework
;
21
using namespace
o2::raw
;
22
23
//_________________________________________________________
24
void
customize
(std::vector<CallbacksPolicy>& policies)
25
{
26
o2::raw::HBFUtilsInitializer::addNewTimeSliceCallback
(policies);
27
}
28
29
//_________________________________________________________
30
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
31
{
32
std::vector<ConfigParamSpec> options{
33
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings"
}},
34
{
"max-tf"
,
o2::framework::VariantType::Int
, 1, {
"how many TFs to process"
}},
35
{
"dist-tf-subspec"
,
o2::framework::VariantType::Int
, 0xccdb, {
"Subspec to use for FLP/DISTSUBTIMEFRAME"
}}};
36
o2::raw::HBFUtilsInitializer::addConfigOption
(options);
37
std::swap(workflowOptions, options);
38
}
39
40
#include "
Framework/runDataProcessing.h
"
// the main driver
41
42
//_________________________________________________________
43
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& configcontext)
44
{
45
WorkflowSpec
specs;
46
int
maxTF = configcontext.
options
().
get
<
int
>(
"max-tf"
);
47
unsigned
subSpec =
static_cast<
unsigned
>
(configcontext.
options
().
get
<
int
>(
"dist-tf-subspec"
));
48
specs.push_back(
o2::raw::getDistSTFSenderSpec
(maxTF > 0 ? maxTF : 1, subSpec));
49
// configure dpl timer to inject correct firstTForbit: start from the 1st orbit of TF containing 1st sampled orbit
50
o2::raw::HBFUtilsInitializer
hbfIni(configcontext, specs);
51
return
specs;
52
}
CallbacksPolicy.h
ConfigurableParam.h
DistSTFSenderSpec.h
sends DISTSUBTIMEFRAME messages
HBFUtilsInitializer.h
Logger.h
WorkflowSpec.h
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
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
Definition
diststf-sender-workflow.cxx:43
customize
void customize(std::vector< CallbacksPolicy > &policies)
Definition
diststf-sender-workflow.cxx:24
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::VariantType::Int
@ Int
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::raw
Definition
PayloadPaginator.h:24
o2::raw::getDistSTFSenderSpec
o2::framework::DataProcessorSpec getDistSTFSenderSpec(int maxTF, unsigned subsp)
Definition
DistSTFSenderSpec.cxx:53
runDataProcessing.h
o2::raw::HBFUtilsInitializer
Definition
HBFUtilsInitializer.h:45
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
Raw
src
diststf-sender-workflow.cxx
Generated on Tue Feb 25 2025 23:16:25 for Project by
1.9.8