Project
Loading...
Searching...
No Matches
tpc-calib-dEdx.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
15
16// we need to add workflow options before including Framework/runDataProcessing
17void customize(std::vector<ConfigParamSpec>& workflowOptions)
18{
19 std::vector<ConfigParamSpec> options{
20 {"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings (e.g.: 'TPCCalibPedestal.FirstTimeBin=10;...')"}},
21 {"configFile", VariantType::String, "", {"configuration file for configurable parameters"}},
22 {"material-type", VariantType::Int, 2, {"Type for the material budget during track propagation: 0=None, 1=Geo, 2=LUT"}},
23 };
24
25 std::swap(workflowOptions, options);
26}
28
29using namespace o2::framework;
30
32{
33 // set up configuration
34 o2::conf::ConfigurableParam::updateFromFile(config.options().get<std::string>("configFile"));
35 o2::conf::ConfigurableParam::updateFromString(config.options().get<std::string>("configKeyValues"));
36 o2::conf::ConfigurableParam::writeINI("o2tpccalibration_configuration.ini");
37 auto materialType = static_cast<o2::base::Propagator::MatCorrType>(config.options().get<int>("material-type"));
38
39 using namespace o2::tpc;
40 return WorkflowSpec{getCalibdEdxSpec(materialType)};
41}
Workflow for time based dE/dx calibration.
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)