Skip to content

Commit 858ef22

Browse files
authored
[PWGCF] Femto 3d: make TPC rejection cut configurable (#18201)
1 parent e4f2aa6 commit 858ef22

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎PWGCF/Femto3D/TableProducer/singleTrackSelector.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ struct singleTrackSelector {
8585
Configurable<std::vector<float>> keepWithinNsigmaTPC{"keepWithinNsigmaTPC", std::vector<float>{-4.0f, 4.0f}, "TPC range for preselection of particles specified with PDG"};
8686
Configurable<std::vector<int>> _particlesToReject{"particlesToRejectPDGs", std::vector<int>{211, 321, 1000020030}, "PDG codes of particles that will be rejected with TOF (only pion, kaon, proton and deurton are supported now)"};
8787
Configurable<std::vector<float>> rejectWithinNsigmaTOF{"rejectWithinNsigmaTOF", std::vector<float>{-5.0f, 5.0f}, "TOF rejection Nsigma range for particles specified with PDG to be rejected"};
88+
Configurable<std::vector<float>> rejectWithinNsigmaTPC{"rejectWithinNsigmaTPC", std::vector<float>{-5.0f, 5.0f}, "TPC Nsigma range required together with rejectWithinNsigmaTOF for particles specified with PDG to be rejected"};
8889

8990
Configurable<float> _pRemoveTofOutOfRange{"pRemoveTofOutOfRange", 100.f, "momentum starting from which request TOF nSigma to be within the stored range (-10 < Nsigma < 10)"};
9091
Configurable<std::array<float, 3>> _ptRemoveTofOutOfRange{"ptRemoveTofOutOfRange", {100.f, -10.f, 10.f}, "transverse momentum starting from which request TOF nSigma to be within the stored range (-10 < Nsigma < 10)"};
@@ -247,7 +248,7 @@ struct singleTrackSelector {
247248
for (auto i : particlesToReject) {
248249
// if satisfied, want to continue in the upper loop (over tracks) -- skip the current track
249250
// cannot use simple 'continue' since it will be applied to the current loop, so have to use a flag
250-
if (o2::aod::singletrackselector::TOFselection(track, std::make_pair(i, rejectWithinNsigmaTOF))) {
251+
if (o2::aod::singletrackselector::TOFselection(track, std::make_pair(i, rejectWithinNsigmaTOF), rejectWithinNsigmaTPC.value)) {
251252
skip_track = true;
252253
break;
253254
}

0 commit comments

Comments
 (0)