File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments