Project
Loading...
Searching...
No Matches
tpc-scaler.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
19
20using namespace o2::framework;
21
22void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
23{
24 // option allowing to set parameters
25 std::vector<ConfigParamSpec> options{
26 ConfigParamSpec{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}},
27 {"enable-M-shape-correction", VariantType::Bool, false, {"Enable M-shape distortion correction"}},
28 {"disable-IDC-scalers", VariantType::Bool, false, {"Disable TPC scalers for space-charge distortion fluctuation correction"}}};
30 std::swap(workflowOptions, options);
31}
32
34
36{
37 WorkflowSpec workflow;
38 o2::conf::ConfigurableParam::updateFromString(config.options().get<std::string>("configKeyValues"));
39 const auto enableMShape = config.options().get<bool>("enable-M-shape-correction");
40 const auto enableIDCs = !config.options().get<bool>("disable-IDC-scalers");
42 workflow.emplace_back(o2::tpc::getTPCScalerSpec(enableIDCs, enableMShape, sclOpt));
43 return workflow;
44}
Helper class to parse options for correction maps.
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
static void addGlobalOptions(std::vector< o2::framework::ConfigParamSpec > &options)
static CorrectionMapsGloOpts parseGlobalOptions(const o2::framework::ConfigParamRegistry &opts)
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getTPCScalerSpec(bool enableIDCs, bool enableMShape, const o2::tpc::CorrectionMapsGloOpts &sclOpts)
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.