Skip to content

Commit 4da264c

Browse files
committed
added extra configurable for handling minimum tpcChi2NCl
1 parent c6a2d9e commit 4da264c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGLF/Tasks/Nuspex/spectraTOF.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ struct tofSpectra {
122122
Configurable<float> minNCrossedRowsTPC{"minNCrossedRowsTPC", 70.f, "Additional cut on the minimum number of crossed rows in the TPC"};
123123
Configurable<float> minNCrossedRowsOverFindableClustersTPC{"minNCrossedRowsOverFindableClustersTPC", 0.8f, "Additional cut on the minimum value of the ratio between crossed rows and findable clusters in the TPC"};
124124
Configurable<float> maxChi2PerClusterTPC{"maxChi2PerClusterTPC", 4.f, "Additional cut on the maximum value of the chi2 per cluster in the TPC"};
125+
Configurable<float> minChi2PerClusterTPC{"minChi2PerClusterTPC", 0.5f, "Additional cut on the minimum value of the chi2 per cluster in the TPC"};
125126
Configurable<float> maxChi2PerClusterITS{"maxChi2PerClusterITS", 36.f, "Additional cut on the maximum value of the chi2 per cluster in the ITS"};
126127
Configurable<float> maxDcaXYFactor{"maxDcaXYFactor", 1.f, "Additional cut on the maximum value of the DCA xy (multiplicative factor)"};
127128
Configurable<float> maxDcaZ{"maxDcaZ", 2.f, "Additional cut on the maximum value of the DCA z"};
@@ -203,6 +204,7 @@ struct tofSpectra {
203204
LOG(info) << "\trequireTPC=" << requireTPC.value;
204205
LOG(info) << "\trequireGoldenChi2=" << requireGoldenChi2.value;
205206
LOG(info) << "\tmaxChi2PerClusterTPC=" << maxChi2PerClusterTPC.value;
207+
LOG(info) << "\tminChi2PerClusterTPC=" << minChi2PerClusterTPC.value;
206208
LOG(info) << "\tminNCrossedRowsTPC=" << minNCrossedRowsTPC.value;
207209
LOG(info) << "\tminTPCNClsFound=" << minTPCNClsFound.value;
208210
LOG(info) << "\tmaxChi2PerClusterITS=" << maxChi2PerClusterITS.value;
@@ -1163,6 +1165,9 @@ struct tofSpectra {
11631165
histos.fill(HIST("tracksel"), 4);
11641166
}
11651167
if (enableTrackCutHistograms) {
1168+
if (track.tpcChi2NCl() < minChi2PerClusterTPC || track.tpcChi2NCl() > maxChi2PerClusterTPC) {
1169+
return false;
1170+
}
11661171
histos.fill(HIST("track/selected/ITS/itsNCls"), track.itsNCls(), track.sign());
11671172
histos.fill(HIST("track/selected/ITS/itsChi2NCl"), track.itsChi2NCl(), track.sign());
11681173

0 commit comments

Comments
 (0)