Skip to content

Commit 87a7a91

Browse files
authored
[PWGEM/Dilepton] update matchingMFT.cxx (#10849)
1 parent 2989f90 commit 87a7a91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGEM/Dilepton/Tasks/matchingMFT.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ struct matchingMFT {
6969
Configurable<float> maxMatchingChi2MCHMFT{"maxMatchingChi2MCHMFT", 1e+10, "max. chi2 for MCH-MFT matching"};
7070
Configurable<float> maxChi2SA{"maxChi2SA", 1e+6, "max. chi2 for standalone muon"};
7171
Configurable<float> maxChi2GL{"maxChi2GL", 1e+6, "max. chi2 for global muon"};
72+
Configurable<int> minNclustersMFT{"minNclustersMFT", 5, "min nclusters MFT"};
7273
Configurable<bool> refitGlobalMuon{"refitGlobalMuon", true, "flag to refit global muon"};
7374
Configurable<bool> requireTrueAssociation{"requireTrueAssociation", false, "flag to require true mc collision association"};
7475

@@ -236,6 +237,10 @@ struct matchingMFT {
236237
return;
237238
}
238239

240+
if (mfttrack.nClusters() < minNclustersMFT) {
241+
return;
242+
}
243+
239244
if (std::abs(mcParticle_MCHMID.pdgCode()) != 13) { // select true muon
240245
return;
241246
}

0 commit comments

Comments
 (0)