Project
Loading...
Searching...
No Matches
TrackCosmics.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_TRACKCOSMICS_H
17#define ALICEO2_TRACKCOSMICS_H
18
22
23namespace o2
24{
25namespace dataformats
26{
27
29{
31
32 public:
33 TrackCosmics() = default;
34 ~TrackCosmics() = default;
35 TrackCosmics(const TrackCosmics& src) = default;
36 TrackCosmics(GlobalTrackID btm, GlobalTrackID top, const o2::track::TrackParCov& srcCent, const o2::track::TrackParCov& srcOut, float chi2Ref, float chi2Match, int ncl, float t, float tErr)
37 : o2::track::TrackParCov(srcCent), mParamOut(srcOut), mRefBottom(btm), mRefTop(top), mChi2Refit(chi2Ref), mChi2Match(chi2Match), mNClusters(ncl), mTimeMUS{t, tErr} {}
38
39 GlobalTrackID getRefBottom() const { return mRefBottom; }
40 GlobalTrackID getRefTop() const { return mRefTop; }
41 void setRefBottom(GlobalTrackID id) { mRefBottom = id; }
42 void setRefTop(GlobalTrackID id) { mRefTop = id; }
43
44 const timeEst& getTimeMUS() const { return mTimeMUS; }
45 timeEst& getTimeMUS() { return mTimeMUS; }
46 void setTimeMUS(const timeEst& t) { mTimeMUS = t; }
47 void setTimeMUS(float t, float te)
48 {
49 mTimeMUS.setTimeStamp(t);
50 mTimeMUS.setTimeStampError(te);
51 }
52
53 void setChi2Refit(float v) { mChi2Refit = v; }
54 float getChi2Refit() const { return mChi2Refit; }
55
56 void setChi2Match(float v) { mChi2Match = v; }
57 float getChi2Match() const { return mChi2Match; }
58
59 int getNClusters() const { return mNClusters; }
60 void setNClusters(int n) { mNClusters = n; }
61
62 o2::track::TrackParCov& getParamOut() { return mParamOut; }
63 const o2::track::TrackParCov& getParamOut() const { return mParamOut; }
64
65 void print() const;
66
67 private:
68 GlobalTrackID mRefBottom;
69 GlobalTrackID mRefTop;
70 float mChi2Refit = 0.f;
71 float mChi2Match = 0.f;
72 int mNClusters = 0;
73 timeEst mTimeMUS;
74 o2::track::TrackParCov mParamOut;
75
76 ClassDefNV(TrackCosmics, 1);
77};
78} // namespace dataformats
79} // namespace o2
80
81#endif
Base track model for the Barrel, params only, w/o covariance.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
o2::track::TrackParCov TrackParCov
Definition Recon.h:39
o2::track::TrackParCov & getParamOut()
void setRefBottom(GlobalTrackID id)
const o2::track::TrackParCov & getParamOut() const
const timeEst & getTimeMUS() const
void setTimeMUS(const timeEst &t)
TrackCosmics(GlobalTrackID btm, GlobalTrackID top, const o2::track::TrackParCov &srcCent, const o2::track::TrackParCov &srcOut, float chi2Ref, float chi2Match, int ncl, float t, float tErr)
void setRefTop(GlobalTrackID id)
GlobalTrackID getRefBottom() const
void setTimeMUS(float t, float te)
GlobalTrackID getRefTop() const
TrackCosmics(const TrackCosmics &src)=default
GLdouble n
Definition glcorearb.h:1982
GLenum src
Definition glcorearb.h:1767
const GLdouble * v
Definition glcorearb.h:832
GLdouble GLdouble GLdouble GLdouble top
Definition glcorearb.h:4077
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 ...