Skip to content

Commit dfc102a

Browse files
authored
adding the possibility to cut on the MFT/MCH chi^2 (#2382)
1 parent adc8ae7 commit dfc102a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Modules/MUON/Common/src/TracksTask.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void TracksTask::createTrackHistos(const Activity& activity)
103103
double cutChi2Max = getConfigurationParameter<double>(mCustomParameters, "cutChi2Max", 1000, activity);
104104
double nSigmaPDCA = getConfigurationParameter<double>(mCustomParameters, "nSigmaPDCA", 6, activity);
105105
double matchScoreMaxMFT = getConfigurationParameter<double>(mCustomParameters, "matchScoreMaxMFT", 1000, activity);
106+
double matchChi2MaxMFT = getConfigurationParameter<double>(mCustomParameters, "matchChi2MaxMFT", 1000, activity);
106107
double diMuonTimeCut = getConfigurationParameter<double>(mCustomParameters, "diMuonTimeCut", 100, activity) / 1000;
107108

108109
int etaBins = getConfigurationParameter<int>(mCustomParameters, "etaBins", 200, activity);
@@ -165,6 +166,12 @@ void TracksTask::createTrackHistos(const Activity& activity)
165166
return false;
166167
return true;
167168
},
169+
// MFT-MCH chi2 score
170+
[matchChi2MaxMFT](const MuonTrack& t) {
171+
if (t.hasMFT() && t.hasMCH() && t.getMatchInfoFwd().getMFTMCHMatchingChi2() > matchChi2MaxMFT)
172+
return false;
173+
return true;
174+
},
168175
// MCH chi2 cut
169176
[cutChi2Min, cutChi2Max](const MuonTrack& t) { return ((t.getChi2OverNDFMCH() >= cutChi2Min) && (t.getChi2OverNDFMCH() <= cutChi2Max)); }
170177
};

0 commit comments

Comments
 (0)