Skip to content

Commit 3395cb0

Browse files
noferiniBenedikt Volkel
authored andcommitted
add trk res in TOF match chi2
(cherry picked from commit bb45d28)
1 parent 313fc9c commit 3395cb0

File tree

5 files changed

+187
-19
lines changed

5 files changed

+187
-19
lines changed

DataFormats/Reconstruction/include/ReconstructionDataFormats/MatchInfoTOF.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ class MatchInfoTOF
5858

5959
int getIdLocal() const { return mIdLocal; }
6060

61+
float getVz() const { return mVz; }
62+
void setVz(float val) { mVz = val; }
63+
int getChannel() const { return mChannel; }
64+
void setChannel(int val) { mChannel = val; }
65+
6166
private:
6267
int mIdLocal; // track id in sector of the pair track-TOFcluster
6368
float mChi2; // chi2 of the pair track-TOFcluster
@@ -69,8 +74,10 @@ class MatchInfoTOF
6974
float mDZatTOF = 0.0; ///< DZ position at TOF
7075
float mDeltaT = 0.0; ///< tTOF - TPC (microsec)
7176
double mSignal = 0.0; ///< TOF time in ps
77+
float mVz = 0.0; ///< Vz from TOF match
78+
int mChannel = -1; ///< channel
7279

73-
ClassDefNV(MatchInfoTOF, 5);
80+
ClassDefNV(MatchInfoTOF, 6);
7481
};
7582
} // namespace dataformats
7683
} // namespace o2

DataFormats/Reconstruction/include/ReconstructionDataFormats/MatchInfoTOFReco.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,24 @@ class MatchInfoTOFReco : public MatchInfoTOF
4545
float pt() const { return mPt; }
4646
void setPt(float pt) { mPt = pt; }
4747

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+
4855
void setTrackType(TrackType value) { mTrackType = value; }
4956
TrackType getTrackType() const { return mTrackType; }
5057

5158
private:
5259
TrackType mTrackType; ///< track type (TPC, ITSTPC, TPCTRD, ITSTPCTRD)
5360
bool mFakeMC = false;
5461
float mPt = 0;
55-
ClassDefNV(MatchInfoTOFReco, 4);
62+
float mResX = 1;
63+
float mResZ = 1;
64+
float mResT = 1;
65+
ClassDefNV(MatchInfoTOFReco, 5);
5666
};
5767
} // namespace dataformats
5868
} // namespace o2

Detectors/GlobalTracking/include/GlobalTracking/MatchTOF.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ class MatchTOF
309309
///< per sector indices of track entry in mTracksWork
310310
std::array<std::vector<int>, o2::constants::math::NSectors> mTracksSectIndexCache[trkType::SIZE];
311311
std::array<std::vector<int>, o2::constants::math::NSectors> mTracksSeed[trkType::SIZE];
312+
std::vector<float> mVZtpcOnly[o2::constants::math::NSectors];
312313

313314
std::vector<float> mExtraTPCFwdTime[o2::constants::math::NSectors]; ///< track extra params for TPC tracks: Fws Max time
314315
std::vector<Cluster> mTOFClusWork; ///< track params prepared for matching
@@ -347,7 +348,7 @@ class MatchTOF
347348
TStopwatch mTimerMatchITSTPC;
348349
TStopwatch mTimerMatchTPC;
349350
TStopwatch mTimerDBG;
350-
ClassDefNV(MatchTOF, 5);
351+
ClassDefNV(MatchTOF, 6);
351352
};
352353
} // namespace globaltracking
353354
} // namespace o2

Detectors/GlobalTracking/include/GlobalTracking/MatchTOFParams.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ namespace globaltracking
2323
{
2424

2525
struct MatchTOFParams : public o2::conf::ConfigurableParamHelper<MatchTOFParams> {
26-
float calibMaxChi2 = 3.0;
27-
float nsigmaTimeCut = 4.; // number of sigmas for non-TPC track time resolution to consider
26+
float calibMaxChi2 = 3.0; // max value of Chi2 allowed for using matched tracks in calibration
27+
float nsigmaTimeCut = 4.; // number of sigmas for non-TPC track time resolution to consider
28+
float maxResX = 1.; // max value of track resolution (X dir) used in TOF matching (truncation to that in case it is larger)
29+
float maxResZ = 1.; // max value of track resolution (Z dir) used in TOF matching (truncation to that in case it is larger)
30+
float maxChi2 = 10.; // max value of Chi2 accepted for matching to TOF
31+
bool applyPIDcutTPConly = true; // apply PID cut on TPC only tracks
2832

2933
O2ParamDef(MatchTOFParams, "MatchTOF");
3034
};

0 commit comments

Comments
 (0)