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>
13
#include "
FOCALCalibration/PadPedestalCalibDevice.h
"
14
#include "
Framework/DataProcessorSpec.h
"
15
#include "
CommonUtils/ConfigurableParam.h
"
16
17
void
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
25
#include "
Framework/runDataProcessing.h
"
26
27
o2::framework::WorkflowSpec
defineDataProcessing
(
o2::framework::ConfigContext
const
& configcontext)
28
{
29
o2::framework::WorkflowSpec
specs;
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
}
ConfigurableParam.h
DataProcessorSpec.h
PadPedestalCalibDevice.h
o2::conf::ConfigurableParam::updateFromString
static void updateFromString(std::string const &)
Definition
ConfigurableParam.cxx:433
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ConfigContext::options
ConfigParamRegistry & options() const
Definition
ConfigContext.h:28
o2::framework::ConfigParamRegistry::get
T get(const char *key) const
Definition
ConfigParamRegistry.h:98
path
GLsizei const GLchar *const * path
Definition
glcorearb.h:3591
o2::focal::getPadPedestalCalibDevice
o2::framework::DataProcessorSpec getPadPedestalCalibDevice(bool updateCCDB, const std::string &path, bool debug)
Definition
PadPedestalCalibDevice.cxx:218
o2::framework::VariantType::String
@ String
o2::framework::VariantType::Bool
@ Bool
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
customize
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
Definition
pad-pedestal-calibration-workflow.cxx:17
defineDataProcessing
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const &configcontext)
Definition
pad-pedestal-calibration-workflow.cxx:27
runDataProcessing.h
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
Detectors
FOCAL
calibration
src
pad-pedestal-calibration-workflow.cxx
Generated on Tue Feb 25 2025 23:16:16 for Project by
1.9.8