Project
Loading...
Searching...
No Matches
clusters-to-tracks-workflow.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
16
17
#include "
CommonUtils/ConfigurableParam.h
"
18
#include "
MCHTracking/TrackFinderSpec.h
"
19
20
using namespace
o2::framework
;
21
22
// we need to add workflow options before including Framework/runDataProcessing
23
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
24
{
25
workflowOptions.emplace_back(
"configKeyValues"
, VariantType::String,
""
,
26
ConfigParamSpec::HelpString
{
"Semicolon separated key=value strings"
});
27
workflowOptions.emplace_back(
"disable-time-computation"
, VariantType::Bool,
false
,
28
ConfigParamSpec::HelpString
{
"disable track time computation from associated digits"
});
29
workflowOptions.emplace_back(
"digits"
, VariantType::Bool,
false
,
30
ConfigParamSpec::HelpString
{
"Send associated digits"
});
31
workflowOptions.emplace_back(
"disable-magfield-from-ccdb"
, VariantType::Bool,
false
,
32
ConfigParamSpec::HelpString
{
"do not read magnetic field from ccdb"
});
33
workflowOptions.emplace_back(
"original"
, VariantType::Bool,
false
,
34
ConfigParamSpec::HelpString
{
"use the original track finder algorithm"
});
35
}
36
37
#include "
Framework/runDataProcessing.h
"
38
39
WorkflowSpec
defineDataProcessing
(
const
ConfigContext
& configcontext)
40
{
41
o2::conf::ConfigurableParam::updateFromString
(configcontext.
options
().
get
<std::string>(
"configKeyValues"
));
42
bool
computeTime = !configcontext.
options
().
get
<
bool
>(
"disable-time-computation"
);
43
bool
digits
= configcontext.
options
().
get
<
bool
>(
"digits"
);
44
bool
disableCCDBMagField = configcontext.
options
().
get
<
bool
>(
"disable-magfield-from-ccdb"
);
45
bool
original = configcontext.
options
().
get
<
bool
>(
"original"
);
46
return
WorkflowSpec
{
o2::mch::getTrackFinderSpec
(original ?
"mch-track-finder-original"
:
"mch-track-finder"
,
47
computeTime,
digits
, disableCCDBMagField, original)};
48
}
ConfigurableParam.h
TrackFinderSpec.h
Definition of a data processor to read clusters, reconstruct tracks and send them.
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
defineDataProcessing
WorkflowSpec defineDataProcessing(const ConfigContext &configcontext)
Definition
clusters-to-tracks-workflow.cxx:39
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
clusters-to-tracks-workflow.cxx:23
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::mch::getTrackFinderSpec
o2::framework::DataProcessorSpec getTrackFinderSpec(const char *specName="mch-track-finder", bool computeTime=true, bool digits=false, bool disableCCDBMagField=false, bool original=false)
Definition
TrackFinderSpec.cxx:281
runDataProcessing.h
o2::framework::ConfigParamSpec::HelpString
Definition
ConfigParamSpec.h:34
digits
std::vector< Digit > digits
Definition
test_ctf_io_hmpid.cxx:40
Detectors
MUON
MCH
Tracking
src
clusters-to-tracks-workflow.cxx
Generated on Tue Feb 25 2025 23:16:23 for Project by
1.9.8