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
12
#include "
FITWorkflow/FITIntegrateClusterSpec.h
"
13
#include "
DataFormatsFDD/RecPoint.h
"
14
#include "
FITWorkflow/FITIntegrateClusterWriterSpec.h
"
15
#include "
CommonUtils/ConfigurableParam.h
"
16
#include "
Framework/ConfigParamSpec.h
"
17
18
using namespace
o2::framework
;
19
20
void
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
30
#include "
Framework/runDataProcessing.h
"
31
32
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfgc)
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
}
ConfigParamSpec.h
ConfigurableParam.h
FITIntegrateClusterSpec.h
FITIntegrateClusterWriterSpec.h
customize
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
Definition
cluster-integrator.cxx:20
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
Definition
cluster-integrator.cxx:32
RecPoint.h
Definition of the FDD RecPoint class.
o2::conf::ConfigurableParam::updateFromString
static void updateFromString(std::string const &)
Definition
ConfigurableParam.cxx:433
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ConfigContext::options
ConfigParamRegistry & options() const
Definition
ConfigContext.h:28
o2::framework::ConfigParamRegistry::get
T get(const char *key) const
Definition
ConfigParamRegistry.h:98
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
runDataProcessing.h
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
Detectors
FIT
FDD
workflow
src
cluster-integrator.cxx
Generated on Tue Feb 25 2025 23:16:26 for Project by
1.9.8