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
17
22#include "Framework/Task.h"
27#include "Framework/Variant.h"
32
33void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
34{
36}
37
38void customize(std::vector<o2::framework::CompletionPolicy>& policies)
39{
40 // ordered policies for the writers
41 policies.push_back(o2::framework::CompletionPolicyHelpers::consumeWhenAllOrdered(".*HMP-DigitsToRoot.*"));
42}
43
44// we need to add workflow options before including Framework/runDataProcessing
45void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
46{
47 std::string keyvaluehelp("Semicolon separated key=value strings ...");
48 workflowOptions.push_back(o2::framework::ConfigParamSpec{"configKeyValues", o2::framework::VariantType::String, "", {keyvaluehelp}});
50}
51
54
55using namespace o2;
56using namespace o2::framework;
57
59{
60 WorkflowSpec specs;
61 o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
63 specs.push_back(consumer);
64
65 // configure dpl timer to inject correct firstTForbit: start from the 1st orbit of TF containing 1st sampled orbit
66 o2::raw::HBFUtilsInitializer hbfIni(configcontext, specs);
67
68 return specs;
69}
WorkflowSpec defineDataProcessing(const ConfigContext &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
Definition of the Names Generator class.
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 getDigitsToRootSpec(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...
static void addNewTimeSliceCallback(std::vector< o2::framework::CallbacksPolicy > &policies)
static void addConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts, const std::string &defOpt=std::string(o2::base::NameConf::DIGITIZATIONCONFIGFILE))