Skip to content

Commit d46c10c

Browse files
authored
Update spectraTOF.cxx
1 parent 4da264c commit d46c10c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGLF/Tasks/Nuspex/spectraTOF.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,10 @@ struct tofSpectra {
11551155
}
11561156
}
11571157

1158+
if (track.tpcChi2NCl() < minChi2PerClusterTPC || track.tpcChi2NCl() > maxChi2PerClusterTPC) {
1159+
return false;
1160+
}
1161+
11581162
if (!passesCutWoDCA(track)) {
11591163
return false;
11601164
}
@@ -1165,9 +1169,6 @@ struct tofSpectra {
11651169
histos.fill(HIST("tracksel"), 4);
11661170
}
11671171
if (enableTrackCutHistograms) {
1168-
if (track.tpcChi2NCl() < minChi2PerClusterTPC || track.tpcChi2NCl() > maxChi2PerClusterTPC) {
1169-
return false;
1170-
}
11711172
histos.fill(HIST("track/selected/ITS/itsNCls"), track.itsNCls(), track.sign());
11721173
histos.fill(HIST("track/selected/ITS/itsChi2NCl"), track.itsChi2NCl(), track.sign());
11731174

0 commit comments

Comments
 (0)