Project
Loading...
Searching...
No Matches
dump-digits-stream-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
17
22#include "Framework/Task.h"
27#include "Framework/Variant.h"
29
30void customize(std::vector<o2::framework::CompletionPolicy>& policies)
31{
32 // ordered policies for the writers
33 policies.push_back(o2::framework::CompletionPolicyHelpers::consumeWhenAllOrdered("HMP-DigitsDump.*"));
34}
35
36// we need to add workflow options before including Framework/runDataProcessing
37void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
38{
39 std::string keyvaluehelp("Semicolon separated key=value strings ...");
40 workflowOptions.push_back(o2::framework::ConfigParamSpec{"configKeyValues", o2::framework::VariantType::String, "", {keyvaluehelp}});
41}
42
45
46using namespace o2;
47using namespace o2::framework;
48
50{
51 WorkflowSpec specs;
52 o2::conf::ConfigurableParam::updateFromString(cx.options().get<std::string>("configKeyValues"));
54 specs.push_back(consumer);
55 return specs;
56}
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
WorkflowSpec defineDataProcessing(const ConfigContext &cx)
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getDumpDigitsSpec(std::string inputSpec="HMP/DIGITS")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...