Skip to content

Commit 29705b6

Browse files
ginnocendavidrohr
authored andcommitted
Add flag to switch off TPC cluster selection
1 parent 7eee883 commit 29705b6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Analysis/Tasks/PWGHF/HFJpsiToEECandidateSelector.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ struct HFJpsiToEECandidateSelector {
4949
Configurable<double> d_pidTPCMaxpT{"d_pidTPCMaxpT", 10., "Upper bound of track pT for TPC PID"};
5050

5151
Configurable<double> d_TPCNClsFindablePIDCut{"d_TPCNClsFindablePIDCut", 70., "Lower bound of TPC findable clusters for good PID"};
52+
Configurable<bool> b_requireTPC{"b_requireTPC", true, "Flag to require a positive Number of found clusters in TPC"};
5253
Configurable<double> d_nSigmaTPC{"d_nSigmaTPC", 3., "Nsigma cut on TPC only"};
5354

5455
/// Gets corresponding pT bin from cut file array
@@ -79,7 +80,7 @@ struct HFJpsiToEECandidateSelector {
7980
if (track.charge() == 0) {
8081
return false;
8182
}
82-
if (track.tpcNClsFound() == 0) {
83+
if (b_requireTPC.value && track.tpcNClsFound() == 0) {
8384
return false; //is it clusters findable or found - need to check
8485
}
8586
return true;

Analysis/Tasks/PWGHF/HFLcCandidateSelector.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ struct HFLcCandidateSelector {
5252
Configurable<double> d_pidTOFMaxpT{"d_pidTOFMaxpT", 4., "Upper bound of track pT for TOF PID"};
5353

5454
Configurable<double> d_TPCNClsFindablePIDCut{"d_TPCNClsFindablePIDCut", 70., "Lower bound of TPC findable clusters for good PID"};
55+
Configurable<bool> b_requireTPC{"b_requireTPC", true, "Flag to require a positive Number of found clusters in TPC"};
5556
Configurable<double> d_nSigmaTPC{"d_nSigmaTPC", 3., "Nsigma cut on TPC only"};
5657
Configurable<double> d_nSigmaTPCCombined{"d_nSigmaTPCCombined", 5., "Nsigma cut on TPC combined with TOF"};
5758
Configurable<double> d_nSigmaTOF{"d_nSigmaTOF", 3., "Nsigma cut on TOF only"};
@@ -85,7 +86,7 @@ struct HFLcCandidateSelector {
8586
if (track.charge() == 0) {
8687
return false;
8788
}
88-
if (track.tpcNClsFound() == 0) {
89+
if (b_requireTPC.value && track.tpcNClsFound() == 0) {
8990
return false; //is it clusters findable or found - need to check
9091
}
9192
return true;

0 commit comments

Comments
 (0)