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
18
19using namespace o2::framework;
20
21void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
22{
23 // option allowing to set parameters
24 std::vector<ConfigParamSpec> options{
25 ConfigParamSpec{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}},
26 {"enable-M-shape-correction", VariantType::Bool, false, {"Enable M-shape distortion correction"}},
27 {"disable-IDC-scalers", VariantType::Bool, false, {"Disable TPC scalers for space-charge distortion fluctuation correction"}}};
28
29 std::swap(workflowOptions, options);
30}
31
33
35{
36 WorkflowSpec workflow;
37 o2::conf::ConfigurableParam::updateFromString(config.options().get<std::string>("configKeyValues"));
38 const auto enableMShape = config.options().get<bool>("enable-M-shape-correction");
39 const auto enableIDCs = !config.options().get<bool>("disable-IDC-scalers");
40 workflow.emplace_back(o2::tpc::getTPCScalerSpec(enableIDCs, enableMShape));
41 return workflow;
42}
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getTPCScalerSpec(bool enableIDCs, bool enableMShape)
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.