Project
Loading...
Searching...
No Matches
tf-data-dump-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
17using namespace o2::framework;
18
19void customize(std::vector<ConfigParamSpec>& workflowOptions)
20{
21 std::vector<ConfigParamSpec> options;
22 options.push_back(ConfigParamSpec{"dataspec", VariantType::String, "tst:TST/A", {"selection string for the data to be proxied"}});
23 options.push_back(ConfigParamSpec{"triggerspec", VariantType::String, "", {"selection string for the trigger input (must be also in dataspec if non-empty)"}});
24 options.push_back(ConfigParamSpec{"configKeyValues", VariantType::String, "", {"semicolon separated key=value strings"}});
25 std::swap(workflowOptions, options);
26}
27
28void customize(std::vector<CompletionPolicy>& policies)
29{
30 policies.push_back({CompletionPolicyHelpers::consumeWhenPastOldestPossibleTimeframe("raw-tf-dump", [](auto const&) -> bool { return true; })});
31 // policies.push_back({CompletionPolicyHelpers::consumeWhenAllOrdered("raw-tf-dump", [](auto const&) -> bool { return true; })}); // RSTOREM
32}
33
34// ------------------------------------------------------------------
35
37#include "RawTFDumpSpec.h"
38
40{
41 o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
42 auto inpconfig = configcontext.options().get<std::string>("dataspec");
43 auto trigger = configcontext.options().get<std::string>("triggerspec");
44 WorkflowSpec specs{o2::rawdd::getRawTFDumpSpec(inpconfig, trigger)};
45 return specs;
46}
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
std::vector< DataProcessorSpec > WorkflowSpec
DataProcessorSpec getRawTFDumpSpec(const std::string &inpconfig, const std::string &trigger)
static CompletionPolicy consumeWhenPastOldestPossibleTimeframe(const char *name, CompletionPolicy::Matcher matcher)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< ConfigParamSpec > &workflowOptions)