Project
Loading...
Searching...
No Matches
tpc-calibrator-gainmap-tracks.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
14
15
#include <vector>
16
#include <string>
17
#include "
Framework/WorkflowSpec.h
"
18
#include "
Framework/ConfigParamSpec.h
"
19
#include "
CommonUtils/ConfigurableParam.h
"
20
#include "
TPCWorkflow/CalibratorPadGainTracksSpec.h
"
21
22
using namespace
o2::framework
;
23
24
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
25
{
26
std::vector<ConfigParamSpec> options{
27
{
"useLastExtractedMapAsReference"
, VariantType::Bool,
false
, {
"enabling iterative extraction of the gain map: Multiplying the extracted gain map with the latest extracted map stored in the CCDB"
}},
28
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings"
}},
29
{
"configFile"
, VariantType::String,
""
, {
"configuration file for configurable parameters"
}}};
30
31
std::swap(workflowOptions, options);
32
}
33
34
#include "
Framework/runDataProcessing.h
"
35
36
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& config)
37
{
38
using namespace
o2::tpc
;
39
40
// set up configuration
41
o2::conf::ConfigurableParam::updateFromFile
(config.
options
().
get
<std::string>(
"configFile"
));
42
o2::conf::ConfigurableParam::updateFromString
(config.
options
().
get
<std::string>(
"configKeyValues"
));
43
o2::conf::ConfigurableParam::writeINI
(
"o2tpcpadgaintrackscalibrator_configuration.ini"
);
44
const
bool
useLastExtractedMapAsReference = config.
options
().
get
<
bool
>(
"useLastExtractedMapAsReference"
);
45
46
WorkflowSpec
workflow{getTPCCalibPadGainTracksSpec(useLastExtractedMapAsReference)};
47
return
workflow;
48
}
CalibratorPadGainTracksSpec.h
Workflow for the track based dE/dx gain map extraction on an aggregator node.
ConfigParamSpec.h
ConfigurableParam.h
WorkflowSpec.h
o2::conf::ConfigurableParam::writeINI
static void writeINI(std::string const &filename, std::string const &keyOnly="")
Definition
ConfigurableParam.cxx:171
o2::conf::ConfigurableParam::updateFromFile
static void updateFromFile(std::string const &, std::string const ¶msList="", bool unchangedOnly=false)
Definition
ConfigurableParam.cxx:367
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
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::tpc
Global TPC definitions and constants.
Definition
SimTraits.h:167
runDataProcessing.h
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
Definition
tpc-calibrator-gainmap-tracks.cxx:36
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
tpc-calibrator-gainmap-tracks.cxx:24
Detectors
TPC
workflow
src
tpc-calibrator-gainmap-tracks.cxx
Generated on Tue Feb 25 2025 23:16:31 for Project by
1.9.8