Project
Loading...
Searching...
No Matches
TrackingConfigParam.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 <boost/property_tree/ptree.hpp>
13
14
#include "
Framework/Logger.h
"
15
#include "
ITStracking/TrackingConfigParam.h
"
16
17
O2ParamImpl
(
o2::its::VertexerParamConfig
);
18
O2ParamImpl
(
o2::its::TrackerParamConfig
);
19
O2ParamImpl
(
o2::its::ITSGpuTrackingParamConfig
);
20
21
namespace
o2::its
22
{
23
24
void
ITSGpuTrackingParamConfig::maybeOverride
()
const
25
{
26
if
(
nBlocks
==
OverrideValue
&&
nThreads
==
OverrideValue
) {
27
return
;
28
}
29
const
auto
name
=
getName
();
30
auto
members =
getDataMembers
();
31
for
(
auto
member : *members) {
32
if
(!member.name.ends_with(
BlocksName
) && !member.name.ends_with(
ThreadsName
)) {
33
if
(
nBlocks
!=
OverrideValue
&& member.name.starts_with(
BlocksName
) && (member.value !=
nBlocks
)) {
34
o2::conf::ConfigurableParam::setValue<int>(
name
, member.name,
nBlocks
);
35
}
36
if
(
nThreads
!=
OverrideValue
&& member.name.starts_with(
ThreadsName
) && (member.value !=
nThreads
)) {
37
o2::conf::ConfigurableParam::setValue<int>(
name
, member.name,
nThreads
);
38
}
39
}
40
}
41
LOGP(info,
"Overwriting gpu threading parameters"
);
42
}
// namespace o2::its
43
44
}
// namespace o2::its
O2ParamImpl
#define O2ParamImpl(classname)
Definition
ConfigurableParam.h:339
Logger.h
TrackingConfigParam.h
o2::conf::ConfigurableParamHelper< ITSGpuTrackingParamConfig >::getDataMembers
std::vector< ParamDataMember > * getDataMembers() const
Definition
ConfigurableParamHelper.h:130
o2::conf::ConfigurableParamHelper< ITSGpuTrackingParamConfig >::getName
std::string getName() const final
Definition
ConfigurableParamHelper.h:88
name
GLuint const GLchar * name
Definition
glcorearb.h:781
o2::its
Definition
RecoContainer.h:64
o2::its::ITSGpuTrackingParamConfig
Definition
TrackingConfigParam.h:111
o2::its::ITSGpuTrackingParamConfig::BlocksName
static constexpr char const * BlocksName
Definition
TrackingConfigParam.h:117
o2::its::ITSGpuTrackingParamConfig::maybeOverride
void maybeOverride() const
Definition
TrackingConfigParam.cxx:24
o2::its::ITSGpuTrackingParamConfig::nBlocks
int nBlocks
Definition
TrackingConfigParam.h:119
o2::its::ITSGpuTrackingParamConfig::ThreadsName
static constexpr char const * ThreadsName
Definition
TrackingConfigParam.h:118
o2::its::ITSGpuTrackingParamConfig::nThreads
int nThreads
Definition
TrackingConfigParam.h:120
o2::its::ITSGpuTrackingParamConfig::OverrideValue
static constexpr int OverrideValue
Definition
TrackingConfigParam.h:116
o2::its::TrackerParamConfig
Definition
TrackingConfigParam.h:62
o2::its::VertexerParamConfig
Definition
TrackingConfigParam.h:22
Detectors
ITSMFT
ITS
tracking
src
TrackingConfigParam.cxx
Generated on Fri Aug 22 2025 14:28:53 for Project by
1.9.8