Project
Loading...
Searching...
No Matches
MatchInfoFwd.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
13
14#ifndef ALICEO2_MATCH_INFO_MFTMCH_H
15#define ALICEO2_MATCH_INFO_MFTMCH_H
16
20
21namespace o2
22{
23namespace dataformats
24{
26
28{
29 public:
30 MatchInfoFwd() = default;
31 ~MatchInfoFwd() = default;
32
33 void setMFTMCHMatchingChi2(float chi2) { mMFTMCHMatchingChi2 = chi2; }
34 const auto& getMFTMCHMatchingChi2() const { return mMFTMCHMatchingChi2; }
35
36 void setMFTMCHMatchingScore(float score) { mMFTMCH_MLScore = score; }
37 const auto& getMFTMCHMatchingScore() const { return mMFTMCH_MLScore; }
38
39 void setMIDMatchingChi2(float chi2) { mMCHMIDMatchingChi2 = chi2; }
40 const auto& getMIDMatchingChi2() const { return mMCHMIDMatchingChi2; }
41
42 void countMFTCandidate() { mNMFTCandidates++; }
43 const auto& getNMFTCandidates() const { return mNMFTCandidates; }
44 void setNMFTCandidates(int n) { mNMFTCandidates = n; }
45
46 void setCloseMatch(bool v = true) { mCloseMatch = v; }
47 const auto& isCloseMatch() const { return mCloseMatch; }
48
50 {
51
52 mMFTMCHMatchingChi2 = m.mMFTMCHMatchingChi2;
53 mMCHMIDMatchingChi2 = m.mMCHMIDMatchingChi2;
54 mMFTTrackID = m.mMFTTrackID;
55 mMCHTrackID = m.mMCHTrackID;
56 mMIDTrackID = m.mMIDTrackID;
57 mNMFTCandidates = m.mNMFTCandidates;
58 mCloseMatch = m.mCloseMatch;
59 mMFTMCH_MLScore = m.mMFTMCH_MLScore;
60 mTimeMUS = m.mTimeMUS;
61 }
62
63 void setMCHTrackID(int ID) { mMCHTrackID = ID; }
64 const auto& getMCHTrackID() const { return mMCHTrackID; }
65 void setMFTTrackID(int ID) { mMFTTrackID = ID; }
66 const auto& getMFTTrackID() const { return mMFTTrackID; }
67 void setMIDTrackID(int ID) { mMIDTrackID = ID; }
68 const auto& getMIDTrackID() const { return mMIDTrackID; }
69
70 const timeEst& getTimeMUS() const { return mTimeMUS; }
71 timeEst& getTimeMUS() { return mTimeMUS; }
72 void setTimeMUS(const timeEst& t) { mTimeMUS = t; }
73 void setTimeMUS(float t, float te)
74 {
75 mTimeMUS.setTimeStamp(t);
76 mTimeMUS.setTimeStampError(te);
77 }
78
79 private:
80 float mMFTMCHMatchingChi2 = o2::constants::math::VeryBig;
81 float mMCHMIDMatchingChi2 = -1.0;
82 int mMFTTrackID = -1;
83 int mMCHTrackID = -1;
84 int mMIDTrackID = -1;
85 int mNMFTCandidates = 0;
86 bool mCloseMatch = false;
87 float mMFTMCH_MLScore = o2::constants::math::VeryBig;
88 timeEst mTimeMUS;
89
90 ClassDefNV(MatchInfoFwd, 1);
91};
92
93} // namespace dataformats
94} // namespace o2
95
96#endif // ALICEO2_MATCH_INFO_MFTMCH_H
Global index for barrel track: provides provenance (detectors combination), index in respective array...
void setMatchInfo(const MatchInfoFwd &m)
void setTimeMUS(float t, float te)
const auto & isCloseMatch() const
void setMFTMCHMatchingScore(float score)
const auto & getNMFTCandidates() const
const auto & getMIDTrackID() const
const timeEst & getTimeMUS() const
const auto & getMFTTrackID() const
void setTimeMUS(const timeEst &t)
const auto & getMFTMCHMatchingChi2() const
const auto & getMFTMCHMatchingScore() const
void setCloseMatch(bool v=true)
const auto & getMIDMatchingChi2() const
void setMIDMatchingChi2(float chi2)
const auto & getMCHTrackID() const
void setMFTMCHMatchingChi2(float chi2)
GLdouble n
Definition glcorearb.h:1982
const GLfloat * m
Definition glcorearb.h:4066
const GLdouble * v
Definition glcorearb.h:832
constexpr float VeryBig
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...