Project
Loading...
Searching...
No Matches
cluster-integrator.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
17
18using namespace o2::framework;
19
20void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
21{
22 std::vector<ConfigParamSpec> options{
23 ConfigParamSpec{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}},
24 {"min-NChan", VariantType::Int, 0, {"Minimum NChan signal required to avoid noise"}},
25 {"min-Ampl", VariantType::Int, 0, {"Minimum Ampl signal required to avoid noise"}},
26 {"disable-root-output", VariantType::Bool, false, {"disable root-files output writers"}}};
27 std::swap(workflowOptions, options);
28}
29
31
33{
34 WorkflowSpec wf;
35 o2::conf::ConfigurableParam::updateFromString(cfgc.options().get<std::string>("configKeyValues"));
36 const bool disableWriter = cfgc.options().get<bool>("disable-root-output");
37 const int minNChan = cfgc.options().get<int>("min-NChan");
38 const int minAmpl = cfgc.options().get<int>("min-Ampl");
39 wf.emplace_back(o2::fit::getFITIntegrateClusterSpec<o2::fdd::RecPoint>(disableWriter, minNChan, minAmpl));
40 if (!disableWriter) {
41 wf.emplace_back(o2::fit::getFITIntegrateClusterWriterSpec<o2::fdd::RecPoint>());
42 }
43 return wf;
44}
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
Definition of the FDD RecPoint class.
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec