Project
Loading...
Searching...
No Matches
GlobalFwdTrack.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
14
15#ifndef ALICEO2_TRACKGLOBALFWD_H
16#define ALICEO2_TRACKGLOBALFWD_H
17
20#include "Math/SMatrix.h"
21
22namespace o2
23{
24namespace dataformats
25{
28
30{
31 public:
32 GlobalFwdTrack() = default;
33 GlobalFwdTrack(const GlobalFwdTrack& t) = default;
35 ~GlobalFwdTrack() = default;
36
38 {
40 return *this;
41 }
42
44 {
46 o2::dataformats::MatchInfoFwd::operator=(rhs);
47 return *this;
48 }
49
51 {
52 SMatrix5 Residuals2Cov;
53
54 Residuals2Cov(0) = (getX() - t.getX()) / TMath::Sqrt(getCovariances()(0, 0) + t.getCovariances()(0, 0));
55 Residuals2Cov(1) = (getY() - t.getY()) / TMath::Sqrt(getCovariances()(1, 1) + t.getCovariances()(1, 1));
56 Residuals2Cov(2) = (getPhi() - t.getPhi()) / TMath::Sqrt(getCovariances()(2, 2) + t.getCovariances()(2, 2));
57 Residuals2Cov(3) = (getTanl() - t.getTanl()) / TMath::Sqrt(getCovariances()(3, 3) + t.getCovariances()(3, 3));
58 Residuals2Cov(4) = (getInvQPt() - t.getInvQPt()) / TMath::Sqrt(getCovariances()(4, 4) + t.getCovariances()(4, 4));
59 return Residuals2Cov;
60 }
61
62 private:
63 ClassDefNV(GlobalFwdTrack, 2);
64};
65
66} // namespace dataformats
67
68namespace framework
69{
70template <typename T>
71struct is_messageable;
72template <>
73struct is_messageable<o2::dataformats::GlobalFwdTrack> : std::true_type {
74};
75} // namespace framework
76
77} // namespace o2
78
79#endif
Base forward track model, params only, w/o covariance.
GlobalFwdTrack & operator=(const GlobalFwdTrack &rhs)
GlobalFwdTrack(o2::track::TrackParCovFwd const &t)
GlobalFwdTrack(const GlobalFwdTrack &t)=default
SMatrix5 computeResiduals2Cov(const o2::track::TrackParCovFwd &t) const
GlobalFwdTrack & operator=(const TrackParCovFwd &rhs)
TrackParCovFwd & operator=(const TrackParCovFwd &tpf)=default
const SMatrix55Sym & getCovariances() const
Definition TrackFwd.h:160
Double_t getTanl() const
Definition TrackFwd.h:81
Double_t getPhi() const
Definition TrackFwd.h:65
Double_t getY() const
Definition TrackFwd.h:61
Double_t getX() const
Definition TrackFwd.h:58
Double_t getInvQPt() const
Definition TrackFwd.h:86
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...