Skip to content

Commit 045ef67

Browse files
committed
Change to track chi2 per MFT clusters
1 parent 7978e20 commit 045ef67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct DndetaMFTPbPb {
100100
Configurable<int> minNclusterMft{"minNclusterMft", 5,
101101
"minimum number of MFT clusters"};
102102
Configurable<bool> useChi2Cut{"useChi2Cut", false, "use track chi2 cut"};
103-
Configurable<float> maxChi2{"maxChi2", 10.f, ""};
103+
Configurable<float> maxChi2NCl{"maxChi2NCl", 1000.f, "maximum chi2 per MFT clusters"};
104104
Configurable<double> minPt{"minPt", 0., "minimum pT of the MFT tracks"};
105105
Configurable<bool> requireCA{
106106
"requireCA", false, "Use Cellular Automaton track-finding algorithm"};
@@ -747,7 +747,9 @@ struct DndetaMFTPbPb {
747747
if (track.eta() < trackCuts.minEta || track.eta() > trackCuts.maxEta)
748748
return false;
749749
if (trackCuts.useChi2Cut) {
750-
if (track.chi2() > trackCuts.maxChi2)
750+
float nclMft = std::max(2.0f * track.nClusters() - 5.0f, 1.0f);
751+
float mftChi2NCl = track.chi2() / nclMft;
752+
if (mftChi2NCl > trackCuts.maxChi2NCl)
751753
return false;
752754
}
753755
if (trackCuts.requireCA && !track.isCA())

0 commit comments

Comments
 (0)