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>
21#include "Framework/Variant.h"
25
26using namespace o2::framework;
27
28// we need to add workflow options before including Framework/runDataProcessing
29void 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
37
39{
40 WorkflowSpec specs;
41
42 std::string confDig = configcontext.options().get<std::string>("hbfutils-config");
43 if (!confDig.empty() && confDig != "none") {
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}
Data processor specs for MID digits reader device.
Digits to raw converter spec for MID.
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
Definition of the Names Generator class.
static constexpr std::string_view DIGITIZATIONCONFIGFILE
Definition NameConf.h:89
static void updateFromFile(std::string const &, std::string const &paramsList="", bool unchangedOnly=false)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getRawWriterSpec()
framework::DataProcessorSpec getDigitReaderSpec(bool useMC, const char *baseDescription="DATAMC")