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
21
22
#include "
Framework/WorkflowSpec.h
"
23
#include "
Framework/DataSpecUtils.h
"
24
#include "
Framework/CallbackService.h
"
25
#include "
Framework/ControlService.h
"
26
#include "
Framework/Task.h
"
27
28
#include "
Framework/ConfigParamSpec.h
"
29
#include "
Framework/CompletionPolicyHelpers.h
"
30
#include "
CommonUtils/ConfigurableParam.h
"
31
#include "
DetectorsRaw/HBFUtilsInitializer.h
"
32
#include "
Framework/CallbacksPolicy.h
"
33
#include "
MCHWorkflow/DataDecoderSpec.h
"
34
35
using namespace
o2::framework
;
36
37
void
customize
(std::vector<o2::framework::CallbacksPolicy>& policies)
38
{
39
o2::raw::HBFUtilsInitializer::addNewTimeSliceCallback
(policies);
40
}
41
42
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
43
{
44
std::vector<ConfigParamSpec> options{
45
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings"
}},
46
{
"dataspec"
, VariantType::String,
"TF:MCH/RAWDATA"
, {
"selection string for the input data"
}},
47
{
"ignore-dist-stf"
,
o2::framework::VariantType::Bool
,
false
, {
"do not subscribe to FLP/DISTSUBTIMEFRAME/0 message (no lost TF recovery)"
}}};
48
o2::raw::HBFUtilsInitializer::addConfigOption
(options);
49
std::swap(workflowOptions, options);
50
}
51
52
#include "
Framework/runDataProcessing.h
"
53
54
using namespace
o2
;
55
using namespace
o2::framework
;
56
57
WorkflowSpec
defineDataProcessing
(
const
ConfigContext
& configcontext)
58
{
59
o2::conf::ConfigurableParam::updateFromString
(configcontext.
options
().
get
<std::string>(
"configKeyValues"
));
60
61
auto
inputSpec = configcontext.
options
().
get
<std::string>(
"dataspec"
);
62
63
auto
askSTFDist = !configcontext.
options
().
get
<
bool
>(
"ignore-dist-stf"
);
64
65
WorkflowSpec
wf{
o2::mch::raw::getDecodingSpec
(
"mch-data-decoder"
, inputSpec, askSTFDist)};
66
67
// configure dpl timer to inject correct firstTForbit: start from the 1st orbit of TF containing 1st sampled orbit
68
o2::raw::HBFUtilsInitializer
hbfIni(configcontext, wf);
69
70
return
std::move(wf);
71
}
CallbackService.h
CallbacksPolicy.h
CompletionPolicyHelpers.h
ConfigParamSpec.h
ConfigurableParam.h
ControlService.h
DataSpecUtils.h
HBFUtilsInitializer.h
DataDecoderSpec.h
defineDataProcessing
WorkflowSpec defineDataProcessing(const ConfigContext &configcontext)
Definition
raw-to-digits-workflow.cxx:57
customize
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
Definition
raw-to-digits-workflow.cxx:37
Task.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::Bool
@ Bool
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::mch::raw::getDecodingSpec
o2::framework::DataProcessorSpec getDecodingSpec(const char *specName="mch-data-decoder", std::string inputSpec="TF:MCH/RAWDATA", bool askDISTSTF=false)
Definition
DataDecoderSpec.cxx:354
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
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
MUON
MCH
Workflow
src
raw-to-digits-workflow.cxx
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8