Project
Loading...
Searching...
No Matches
digits-to-raw-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
16
17
#include <string>
18
#include <vector>
19
#include "
CommonUtils/ConfigurableParam.h
"
20
#include "
Framework/ConfigParamSpec.h
"
21
#include "
Framework/Variant.h
"
22
#include "
MIDWorkflow/DigitReaderSpec.h
"
23
#include "
MIDWorkflow/RawWriterSpec.h
"
24
#include "
CommonUtils/NameConf.h
"
25
26
using namespace
o2::framework
;
27
28
// we need to add workflow options before including Framework/runDataProcessing
29
void
customize
(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
30
{
31
std::string keyvaluehelp(
"Semicolon separated key=value strings ..."
);
32
workflowOptions.push_back(
ConfigParamSpec
{
"configKeyValues"
, VariantType::String,
""
, {keyvaluehelp}});
33
workflowOptions.push_back(
ConfigParamSpec
{
"hbfutils-config"
,
o2::framework::VariantType::String
, std::string(
o2::base::NameConf::DIGITIZATIONCONFIGFILE
), {
"config file for HBFUtils (or none), used for raw output only!!!"
}});
34
}
35
36
#include "
Framework/runDataProcessing.h
"
37
38
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& configcontext)
39
{
40
WorkflowSpec
specs;
41
42
std::string confDig = configcontext.
options
().
get
<std::string>(
"hbfutils-config"
);
43
if
(!confDig.empty() && confDig !=
"none"
) {
44
o2::conf::ConfigurableParam::updateFromFile
(confDig,
"HBFUtils"
);
45
}
46
o2::conf::ConfigurableParam::updateFromString
(configcontext.
options
().
get
<std::string>(
"configKeyValues"
));
47
specs.emplace_back(
o2::mid::getDigitReaderSpec
(
false
));
48
specs.emplace_back(
o2::mid::getRawWriterSpec
());
49
50
return
specs;
51
}
ConfigParamSpec.h
ConfigurableParam.h
DigitReaderSpec.h
Data processor specs for MID digits reader device.
RawWriterSpec.h
Digits to raw converter spec for MID.
customize
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
Definition
digits-to-raw-workflow.cxx:29
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
Definition
digits-to-raw-workflow.cxx:38
NameConf.h
Definition of the Names Generator class.
Variant.h
o2::base::NameConf::DIGITIZATIONCONFIGFILE
static constexpr std::string_view DIGITIZATIONCONFIGFILE
Definition
NameConf.h:89
o2::conf::ConfigurableParam::updateFromFile
static void updateFromFile(std::string const &, std::string const ¶msList="", bool unchangedOnly=false)
Definition
ConfigurableParam.cxx:367
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::mid::getRawWriterSpec
framework::DataProcessorSpec getRawWriterSpec()
Definition
RawWriterSpec.cxx:89
o2::mid::getDigitReaderSpec
framework::DataProcessorSpec getDigitReaderSpec(bool useMC, const char *baseDescription="DATAMC")
Definition
DigitReaderSpec.cxx:193
runDataProcessing.h
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
Detectors
MUON
MID
Workflow
src
digits-to-raw-workflow.cxx
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8