|
| 1 | +// Copyright CERN and copyright holders of ALICE O2. This software is |
| 2 | +// distributed under the terms of the GNU General Public License v3 (GPL |
| 3 | +// Version 3), copied verbatim in the file "COPYING". |
| 4 | +// |
| 5 | +// See http://alice-o2.web.cern.ch/license for full licensing information. |
| 6 | +// |
| 7 | +// In applying this license CERN does not waive the privileges and immunities |
| 8 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 9 | +// or submit itself to any jurisdiction. |
| 10 | + |
| 11 | +/// \file TrackTPCTOF.h |
| 12 | +/// \brief Result of refitting TPC with TOF match constraint |
| 13 | +/// \author ruben.shahoyan@cern.ch |
| 14 | + |
| 15 | +#ifndef ALICEO2_TRACKTPCTOF_H |
| 16 | +#define ALICEO2_TRACKTPCTOF_H |
| 17 | + |
| 18 | +#include "ReconstructionDataFormats/Track.h" |
| 19 | +#include "ReconstructionDataFormats/TrackLTIntegral.h" |
| 20 | +#include "CommonDataFormat/TimeStamp.h" |
| 21 | + |
| 22 | +namespace o2 |
| 23 | +{ |
| 24 | +namespace dataformats |
| 25 | +{ |
| 26 | + |
| 27 | +class TrackTPCTOF : public o2::track::TrackParCov |
| 28 | +{ |
| 29 | + using timeEst = o2::dataformats::TimeStampWithError<float, float>; |
| 30 | + |
| 31 | + public: |
| 32 | + TrackTPCTOF() = default; |
| 33 | + ~TrackTPCTOF() = default; |
| 34 | + TrackTPCTOF(const TrackTPCTOF& src) = default; |
| 35 | + TrackTPCTOF(const o2::track::TrackParCov& src) : o2::track::TrackParCov(src) {} |
| 36 | + |
| 37 | + int getRefMatch() const { return mRefMatch; } |
| 38 | + void setRefMatch(int id) { mRefMatch = id; } |
| 39 | + |
| 40 | + const timeEst& getTimeMUS() const { return mTimeMUS; } |
| 41 | + timeEst& getTimeMUS() { return mTimeMUS; } |
| 42 | + void setTimeMUS(const timeEst& t) { mTimeMUS = t; } |
| 43 | + void setTimeMUS(float t, float te) |
| 44 | + { |
| 45 | + mTimeMUS.setTimeStamp(t); |
| 46 | + mTimeMUS.setTimeStampError(te); |
| 47 | + } |
| 48 | + |
| 49 | + void setChi2Refit(float v) { mChi2Refit = v; } |
| 50 | + float getChi2Refit() const { return mChi2Refit; } |
| 51 | + |
| 52 | + void print() const; |
| 53 | + |
| 54 | + private: |
| 55 | + int mRefMatch = -1; ///< reference on track-TOF match in its original container |
| 56 | + float mChi2Refit = 0.f; ///< chi2 of the refit |
| 57 | + timeEst mTimeMUS; ///< time estimate in ns |
| 58 | + |
| 59 | + ClassDefNV(TrackTPCTOF, 1); |
| 60 | +}; |
| 61 | +} // namespace dataformats |
| 62 | +} // namespace o2 |
| 63 | + |
| 64 | +#endif |
0 commit comments