Project
Loading...
Searching...
No Matches
emc-pedestal-calib-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
17
#include "
CommonUtils/ConfigurableParam.h
"
18
#include "
EMCALCalibration/PedestalCalibDevice.h
"
19
#include "
Framework/ConfigParamSpec.h
"
20
#include "
Framework/Variant.h
"
21
#include "
Framework/WorkflowSpec.h
"
22
#include "
DetectorsRaw/HBFUtilsInitializer.h
"
23
24
#include <string>
25
26
using namespace
o2::framework
;
27
using namespace
o2::emcal
;
28
29
// add workflow options, note that customization needs to be declared before
30
// including Framework/runDataProcessing
31
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
32
{
33
std::vector<ConfigParamSpec> options{
34
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings"
}},
35
{
"dumpToFile"
, VariantType::Bool,
false
, {
"if output (that goes to DCS ccdb) should be stored in txt file for local debugging"
}},
36
{
"addRunNumber"
, VariantType::Bool,
false
, {
"if true, run number will be added to ccdb file as first element of the string"
}}};
37
std::swap(workflowOptions, options);
38
}
39
40
#include "
Framework/runDataProcessing.h
"
41
42
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfgc)
43
{
44
45
o2::conf::ConfigurableParam::updateFromString
(cfgc.
options
().
get
<std::string>(
"configKeyValues"
));
46
bool
dumpToFile
= cfgc.
options
().
get
<
bool
>(
"dumpToFile"
);
47
bool
addRunNumber = cfgc.
options
().
get
<
bool
>(
"addRunNumber"
);
48
49
WorkflowSpec
specs;
50
specs.emplace_back(
o2::emcal::getPedestalCalibDevice
(
dumpToFile
, addRunNumber));
51
52
return
specs;
53
}
dumpToFile
void dumpToFile(std::string fileName, const CathodeSegmentation &seg, const std::vector< Point > &points)
Definition
CathodeSegmentationLong.cxx:40
ConfigParamSpec.h
ConfigurableParam.h
HBFUtilsInitializer.h
PedestalCalibDevice.h
Variant.h
WorkflowSpec.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
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
Definition
emc-pedestal-calib-workflow.cxx:42
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
emc-pedestal-calib-workflow.cxx:31
o2::emcal
Definition
SimTraits.h:131
o2::emcal::getPedestalCalibDevice
o2::framework::DataProcessorSpec getPedestalCalibDevice(bool dumpToFile, bool addRunNum)
Definition
PedestalCalibDevice.cxx:98
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
runDataProcessing.h
Detectors
EMCAL
calibration
testWorkflow
emc-pedestal-calib-workflow.cxx
Generated on Tue Feb 25 2025 23:16:14 for Project by
1.9.8