Project
Loading...
Searching...
No Matches
emc-pedestal-processor-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
20#include "Framework/Variant.h"
23
24#include <string>
25
26using namespace o2::framework;
27using namespace o2::emcal;
28
29// add workflow options, note that customization needs to be declared before
30// including Framework/runDataProcessing
31void customize(std::vector<ConfigParamSpec>& workflowOptions)
32{
33 std::vector<ConfigParamSpec> options{
34 {"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}},
35 {"no-askdiststf", VariantType::Bool, false, {"Don't subscribe to FLP/DISTSUBTIMEFRAME (local testing)"}}};
36
37 std::swap(workflowOptions, options);
38}
39
40#include "Framework/runDataProcessing.h" // the main driver
41
43{
44
45 o2::conf::ConfigurableParam::updateFromString(cfgc.options().get<std::string>("configKeyValues"));
46 bool askdiststf = !cfgc.options().get<bool>("no-askdiststf");
47
48 WorkflowSpec specs;
49 specs.emplace_back(getPedestalProcessorDevice(askdiststf));
50
51 // configure dpl timer to inject correct firstTForbit: start from the 1st orbit of TF containing 1st sampled orbit
52 // o2::raw::HBFUtilsInitializer hbfIni(cfgc, specs);
53 return specs;
54}
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
void customize(std::vector< ConfigParamSpec > &workflowOptions)
framework::DataProcessorSpec getPedestalProcessorDevice(bool askDistSTF)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec