Project
Loading...
Searching...
No Matches
RecoParam.h
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
16#ifndef O2_TRD_RECOPARAM_H
17#define O2_TRD_RECOPARAM_H
18
19#include <array>
20#include "Rtypes.h"
21
22namespace o2
23{
24namespace trd
25{
26
28{
29 public:
30 RecoParam() = default;
31 RecoParam(const RecoParam&) = default;
32 ~RecoParam() = default;
33
35 void setBfield(float bz);
36
38 void recalcTrkltCov(const float tilt, const float snp, const float rowSize, std::array<float, 3>& cov) const;
39
46 float getRPhiRes(float snp) const { return (mA2 + mC2 * (snp - mB) * (snp - mB)); }
47
49 float getZCorrCoeffNRC() const { return mZCorrCoefNRC; }
50
51 private:
52 // tracklet error parameterization depends on the magnetic field
53 float mA2{1.f};
54 float mB{0.f};
55 float mC2{0.f};
56 float mZCorrCoefNRC{1.4f};
57
58 ClassDefNV(RecoParam, 1);
59};
60
61} // namespace trd
62} // namespace o2
63
64#endif // O2_TRD_RECOPARAM_H
RecoParam(const RecoParam &)=default
~RecoParam()=default
void recalcTrkltCov(const float tilt, const float snp, const float rowSize, std::array< float, 3 > &cov) const
Recalculate tracklet covariance based on phi angle of related track.
Definition RecoParam.cxx:55
float getZCorrCoeffNRC() const
Get tracklet z correction coefficient for track-eta based corraction.
Definition RecoParam.h:49
void setBfield(float bz)
Load parameterization for given magnetic field.
Definition RecoParam.cxx:23
float getRPhiRes(float snp) const
Definition RecoParam.h:46
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...