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>
21
22using namespace o2::framework;
23
24void 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
35
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}
Workflow for the track based dE/dx gain map extraction on an aggregator node.
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromFile(std::string const &, std::string const &paramsList="", bool unchangedOnly=false)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
Global TPC definitions and constants.
Definition SimTraits.h:167
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< ConfigParamSpec > &workflowOptions)