Project
Loading...
Searching...
No Matches
TrackTPCTOF.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 ALICEO2_TRACKTPCTOF_H
17#define ALICEO2_TRACKTPCTOF_H
18
22
23namespace o2
24{
25namespace dataformats
26{
27
29{
31
32 public:
33 TrackTPCTOF() = default;
34 ~TrackTPCTOF() = default;
35 TrackTPCTOF(const TrackTPCTOF& src) = default;
37
38 int getRefMatch() const { return mRefMatch; }
39 void setRefMatch(int id) { mRefMatch = id; }
40
41 const timeEst& getTimeMUS() const { return mTimeMUS; }
42 timeEst& getTimeMUS() { return mTimeMUS; }
43 void setTimeMUS(const timeEst& t) { mTimeMUS = t; }
44 void setTimeMUS(float t, float te)
45 {
46 mTimeMUS.setTimeStamp(t);
47 mTimeMUS.setTimeStampError(te);
48 }
49
50 void setChi2Refit(float v) { mChi2Refit = v; }
51 float getChi2Refit() const { return mChi2Refit; }
52
53 o2::track::TrackParCov& getParamOut() { return mParamOut; }
54 const o2::track::TrackParCov& getParamOut() const { return mParamOut; }
55 void setParamOut(const o2::track::TrackParCov& v) { mParamOut = v; }
56
57 void print() const;
58
59 private:
60 o2::track::TrackParCov mParamOut; // outward fit (in TPC at the moment)
61 int mRefMatch = -1;
62 float mChi2Refit = 0.f;
63 timeEst mTimeMUS;
64
65 ClassDefNV(TrackTPCTOF, 2);
66};
67} // namespace dataformats
68} // namespace o2
69
70#endif
Base track model for the Barrel, params only, w/o covariance.
o2::track::TrackParCov TrackParCov
Definition Recon.h:39
Track Length and TOF integral.
o2::track::TrackParCov & getParamOut()
Definition TrackTPCTOF.h:53
const o2::track::TrackParCov & getParamOut() const
Definition TrackTPCTOF.h:54
const timeEst & getTimeMUS() const
Definition TrackTPCTOF.h:41
TrackTPCTOF(const o2::track::TrackParCov &src)
Definition TrackTPCTOF.h:36
void setTimeMUS(float t, float te)
Definition TrackTPCTOF.h:44
void setTimeMUS(const timeEst &t)
Definition TrackTPCTOF.h:43
TrackTPCTOF(const TrackTPCTOF &src)=default
void setParamOut(const o2::track::TrackParCov &v)
Definition TrackTPCTOF.h:55
GLenum src
Definition glcorearb.h:1767
const GLdouble * v
Definition glcorearb.h:832
GLuint id
Definition glcorearb.h:650
TrackParCovF TrackParCov
Definition Track.h:33
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...