Project
Loading...
Searching...
No Matches
MatchInfoTOFReco.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_MATCHINFOTOFRECO_H
16#define ALICEO2_MATCHINFOTOFRECO_H
17
19
20namespace o2
21{
22namespace dataformats
23{
25{
27
28 public:
37
38 MatchInfoTOFReco(int idLocal, int idxTOFCl, double time, float chi2, o2::track::TrackLTIntegral trkIntLT, GTrackID idxTrack, TrackType trkType, float dt = 0, float z = 0, float dx = 0, float dz = 0, float dy = 0) : MatchInfoTOF(idLocal, idxTOFCl, time, chi2, trkIntLT, idxTrack, dt, z, dx, dz, dy), mTrackType(trkType){};
39
40 MatchInfoTOFReco() = default;
41
42 void setFakeMatch() { mFakeMC = true; }
43 void resetFakeMatch() { mFakeMC = false; }
44 bool isFake() const { return mFakeMC; }
45 float pt() const { return mPt; }
46 void setPt(float pt) { mPt = pt; }
47
48 void setResX(float val) { mResX = val; }
49 void setResZ(float val) { mResZ = val; }
50 void setResT(float val) { mResT = val; }
51 float getResX() const { return mResX; }
52 float getResZ() const { return mResZ; }
53 float getResT() const { return mResT; }
54
55 void setTrackType(TrackType value) { mTrackType = value; }
56 TrackType getTrackType() const { return mTrackType; }
57
58 private:
59 TrackType mTrackType;
60 bool mFakeMC = false;
61 float mPt = 0;
62 float mResX = 1;
63 float mResZ = 1;
64 float mResT = 1;
65 ClassDefNV(MatchInfoTOFReco, 5);
66};
67} // namespace dataformats
68} // namespace o2
69#endif
int16_t time
Definition RawEventData.h:4
Class to store the output of the matching to TOF.
MatchInfoTOFReco(int idLocal, int idxTOFCl, double time, float chi2, o2::track::TrackLTIntegral trkIntLT, GTrackID idxTrack, TrackType trkType, float dt=0, float z=0, float dx=0, float dz=0, float dy=0)
GLsizei const GLfloat * value
Definition glcorearb.h:819
GLuint GLfloat * val
Definition glcorearb.h:1582
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...