Project
Loading...
Searching...
No Matches
TrackTuneParams.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
15
18
19using namespace o2::globaltracking;
20
21std::array<float, 5> TrackTuneParams::getCovInnerTotal(float scale) const
22{
23 std::array<float, 5> cov{};
24 for (int i = 0; i < 5; i++) {
25 cov[i] = tpcCovInner[i] + scale * tpcCovInnerSlope[i];
26 cov[i] *= cov[i];
27 }
28 return cov;
29}
30
31std::array<float, 5> TrackTuneParams::getCovOuterTotal(float scale) const
32{
33 std::array<float, 5> cov{};
34 for (int i = 0; i < 5; i++) {
35 cov[i] = tpcCovOuter[i] + scale * tpcCovOuterSlope[i];
36 cov[i] *= cov[i];
37 }
38 return cov;
39}
#define O2ParamImpl(classname)
int32_t i
Configurable params for tracks ad hoc tuning.
std::array< float, 5 > getCovOuterTotal(float scale) const
std::array< float, 5 > getCovInnerTotal(float scale) const