Skip to content

Commit cd0e860

Browse files
committed
PWGEM/Dilepton: update mft ref bit
1 parent 862495e commit cd0e860

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

PWGEM/Dilepton/TableProducer/skimmerPrimaryMFTTrack.cxx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,26 +198,29 @@ struct skimmerPrimaryMFTTrack {
198198

199199
// As minimal cuts, following cuts are applied. The cut values are hardcoded on the purpose for consistent bit operation.
200200
// Ncls MFT >= 5
201-
// chi2/ndf MFT < 5
202-
// |dcaXY| < 0.06 cm
201+
// chi2/ndf MFT < 4
202+
// |dcaXY| < 0.05 cm
203203

204-
if (mfttrack.nClusters() < 6 || mfttrack.chi2() / ndf > 5.f || std::fabs(dcaXY) > 0.05) {
204+
if (mfttrack.nClusters() < 5 || mfttrack.chi2() / ndf > 4.f || std::fabs(dcaXY) > 0.05) {
205205
return;
206206
}
207207

208+
if (mfttrack.nClusters() >= 6) {
209+
trackBit |= static_cast<uint16_t>(RefMFTTrackBit::kNclsMFT6);
210+
}
208211
if (mfttrack.nClusters() >= 7) {
209212
trackBit |= static_cast<uint16_t>(RefMFTTrackBit::kNclsMFT7);
210213
}
211214
if (mfttrack.nClusters() >= 8) {
212215
trackBit |= static_cast<uint16_t>(RefMFTTrackBit::kNclsMFT8);
213216
}
214217

215-
if (mfttrack.chi2() / ndf < 4.f) {
216-
trackBit |= static_cast<uint16_t>(RefMFTTrackBit::kChi2MFT4);
217-
}
218218
if (mfttrack.chi2() / ndf < 3.f) {
219219
trackBit |= static_cast<uint16_t>(RefMFTTrackBit::kChi2MFT3);
220220
}
221+
if (mfttrack.chi2() / ndf < 2.f) {
222+
trackBit |= static_cast<uint16_t>(RefMFTTrackBit::kChi2MFT2);
223+
}
221224

222225
if (std::fabs(dcaXY) < 0.04) {
223226
trackBit |= static_cast<uint16_t>(RefMFTTrackBit::kDCAxy004cm);

PWGEM/Dilepton/Utils/EMTrackUtilities.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ enum class RefTrackBit : uint16_t { // This is not for leptons, but charged trac
4747
};
4848

4949
enum class RefMFTTrackBit : uint16_t { // This is not for leptons, but charged tracks for reference flow.
50-
kNclsMFT7 = 1, // default is 6
51-
kNclsMFT8 = 2,
52-
kChi2MFT4 = 4, // default is 5
53-
kChi2MFT3 = 8,
54-
kDCAxy004cm = 16, // default is 0.05 cm
55-
kDCAxy003cm = 32,
56-
kDCAxy002cm = 64,
57-
kDCAxy001cm = 128,
50+
kNclsMFT6 = 1, // default is 5
51+
kNclsMFT7 = 2,
52+
kNclsMFT8 = 4,
53+
kChi2MFT3 = 8, // default is 4
54+
kChi2MFT2 = 16,
55+
kDCAxy004cm = 32, // default is 0.05 cm
56+
kDCAxy003cm = 64,
57+
kDCAxy002cm = 128,
58+
kDCAxy001cm = 256,
5859
};
5960

6061
//_______________________________________________________________________

0 commit comments

Comments
 (0)