Project
Loading...
Searching...
No Matches
digits-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
15
16using namespace o2::framework;
17
18// This program is o2-zdc-digits-writer and it is used to convert CTF data to digits
19// to allow manual inspection
20// In order to convert raw data to digits you should use o2-zdc-raw2digits
21
22// ------------------------------------------------------------------
23// we need to add workflow options before including Framework/runDataProcessing
24void customize(std::vector<ConfigParamSpec>& workflowOptions)
25{
26 // option allowing to set parameters
27 std::vector<ConfigParamSpec> options{
28 {"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings ..."}}};
29 std::swap(workflowOptions, options);
30}
31
32void customize(std::vector<o2::framework::CompletionPolicy>& policies)
33{
34 // ordered policies for the writers
35 policies.push_back(CompletionPolicyHelpers::consumeWhenAllOrdered(".*(?:ZDC|zdc).*[W,w]riter.*"));
36}
37
38// ------------------------------------------------------------------
42
44{
45 o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
46 WorkflowSpec specs;
47 specs.emplace_back(o2::zdc::getZDCDigitWriterDPLSpec(false, false));
48 return std::move(specs);
49}
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< ConfigParamSpec > &workflowOptions)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getZDCDigitWriterDPLSpec(bool mctruth, bool simVersion)
create a processor spec
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...