Project
Loading...
Searching...
No Matches
raw-to-pedestals-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
18#include "Framework/Variant.h"
23#include "Framework/Task.h"
29#include "Framework/Logger.h"
32
33// customize dispatch policy, dispatch immediately what is ready
34void customize(std::vector<o2::framework::DispatchPolicy>& policies)
35{
37 auto readerMatcher = [](auto const& spec) {
38 return true;
39 };
40 auto triggerMatcher = [](auto const& query) {
41 return true;
42 };
43 policies.push_back({"raw-hmpid-pedestals", readerMatcher, DispatchOp::WhenReady, triggerMatcher});
44}
45
46// we need to add workflow options before including Framework/runDataProcessing
47void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
48{
49 std::string keyvaluehelp("Semicolon separated key=value strings ...");
50 workflowOptions.push_back(o2::framework::ConfigParamSpec{"configKeyValues", o2::framework::VariantType::String, "", {keyvaluehelp}});
51}
52
55
56using namespace o2;
57using namespace o2::framework;
58
60{
61 WorkflowSpec specs;
62 o2::conf::ConfigurableParam::updateFromString(cx.options().get<std::string>("configKeyValues"));
64 specs.push_back(producer);
65 return specs;
66}
A helper class to iteratate over all parts of all input routes.
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 getPedestalsCalculationSpec(std::string inputSpec="TF:HMP/RAWDATA")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
void customize(std::vector< o2::framework::DispatchPolicy > &policies)
WorkflowSpec defineDataProcessing(const ConfigContext &cx)