Project
Loading...
Searching...
No Matches
pad-pedestal-calibration-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
12#include <iostream>
16
17void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
18{
19 workflowOptions.push_back(o2::framework::ConfigParamSpec{"use-ccdb", o2::framework::VariantType::Bool, false, {"enable access to ccdb cpv calibration objects"}});
20 workflowOptions.push_back(o2::framework::ConfigParamSpec{"debug", o2::framework::VariantType::Bool, false, {"debug mode (store calibration objects to local file)"}});
21 workflowOptions.push_back(o2::framework::ConfigParamSpec{"path", o2::framework::VariantType::String, "./", {"path to store temp files"}});
22 workflowOptions.push_back(o2::framework::ConfigParamSpec{"configKeyValues", o2::framework::VariantType::String, "", {"Semicolon separated key=value strings"}});
23}
24
26
28{
30 o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
31 auto useCCDB = configcontext.options().get<bool>("use-ccdb");
32 auto debugMode = configcontext.options().get<bool>("debug");
33 auto path = configcontext.options().get<std::string>("path");
34
35 specs.emplace_back(o2::focal::getPadPedestalCalibDevice(useCCDB, path, debugMode));
36 return specs;
37}
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
o2::framework::DataProcessorSpec getPadPedestalCalibDevice(bool updateCCDB, const std::string &path, bool debug)
std::vector< DataProcessorSpec > WorkflowSpec
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const &configcontext)