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 {
39 SMatrix5 Residuals2Cov;
40
41 Residuals2Cov(0) = (getX() - t.getX()) / TMath::Sqrt(getCovariances()(0, 0) + t.getCovariances()(0, 0));
42 Residuals2Cov(1) = (getY() - t.getY()) / TMath::Sqrt(getCovariances()(1, 1) + t.getCovariances()(1, 1));
43 Residuals2Cov(2) = (getPhi() - t.getPhi()) / TMath::Sqrt(getCovariances()(2, 2) + t.getCovariances()(2, 2));
44 Residuals2Cov(3) = (getTanl() - t.getTanl()) / TMath::Sqrt(getCovariances()(3, 3) + t.getCovariances()(3, 3));
45 Residuals2Cov(4) = (getInvQPt() - t.getInvQPt()) / TMath::Sqrt(getCovariances()(4, 4) + t.getCovariances()(4, 4));
46 return Residuals2Cov;
47 }
48
49 private:
50 ClassDefNV(GlobalFwdTrack, 2);
51};
52
53} // namespace dataformats
54
55namespace framework
56{
57template <typename T>
58struct is_messageable;
59template <>
60struct is_messageable<o2::dataformats::GlobalFwdTrack> : std::true_type {
61};
62} // namespace framework
63
64} // namespace o2
65
66#endif
Base forward track model, params only, w/o covariance.
GlobalFwdTrack(o2::track::TrackParCovFwd const &t)
GlobalFwdTrack(const GlobalFwdTrack &t)=default
SMatrix5 computeResiduals2Cov(const o2::track::TrackParCovFwd &t) const
const SMatrix55Sym & getCovariances() const
Definition TrackFwd.h:148
Double_t getTanl() const
Definition TrackFwd.h:72
Double_t getPhi() const
Definition TrackFwd.h:56
Double_t getY() const
Definition TrackFwd.h:52
Double_t getX() const
Definition TrackFwd.h:49
Double_t getInvQPt() const
Definition TrackFwd.h:77
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...