Project
Loading...
Searching...
No Matches
raw-to-digits-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
30// customize the completion policy
31void customize(std::vector<o2::framework::CompletionPolicy>& policies)
32{
35 policies.push_back(CompletionPolicyHelpers::defineByName("raw-hmpid-read", CompletionPolicy::CompletionOp::Process));
36}
37
38// we need to add workflow options before including Framework/runDataProcessing
39void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
40{
41 std::string keyvaluehelp("Semicolon separated key=value strings ...");
42 workflowOptions.push_back(o2::framework::ConfigParamSpec{"configKeyValues", o2::framework::VariantType::String, "", {keyvaluehelp}});
43}
44
47
48using namespace o2;
49using namespace o2::framework;
50
52{
53 WorkflowSpec specs;
54 o2::conf::ConfigurableParam::updateFromString(cx.options().get<std::string>("configKeyValues"));
56 specs.push_back(consumer);
57 return specs;
58}
WorkflowSpec defineDataProcessing(ConfigContext const &cx)
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getRawToDigitsSpec(std::string inputSpec="HMP/RAWDATA")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Helper class which holds commonly used policies.
static CompletionPolicy defineByName(std::string const &name, CompletionPolicy::CompletionOp op)