Skip to content

Commit b997519

Browse files
authored
[PWGEM/Dilepton] add TOFif option in taggingHFE.cxx (#16107)
1 parent 33f257b commit b997519

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

PWGEM/Dilepton/Tasks/taggingHFE.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ struct taggingHFE {
168168
Configurable<float> cfg_min_TOFNsigmaKa{"cfg_min_TOFNsigmaKa", -3, "min n sigma ka in TOF"};
169169
Configurable<float> cfg_max_TOFNsigmaKa{"cfg_max_TOFNsigmaKa", +3, "max n sigma ka in TOF"};
170170
Configurable<bool> requirePiKa{"requirePiKa", false, "require hadron to be pion or kaon"}; // proton is not involved in semileptonic decay of HF hadrons often.
171+
Configurable<bool> applyTOFif{"applyTOFif", false, "apply TOFif for pion or kaon"}; // proton is not involved in semileptonic decay of HF hadrons often.
171172
} hadronCut;
172173

173174
struct : ConfigurableGroup {
@@ -465,6 +466,10 @@ struct taggingHFE {
465466
bool is_ka_included_TOF = track.hasTOF() ? (hadronCut.cfg_min_TOFNsigmaKa < tofNSigmaKa && tofNSigmaKa < hadronCut.cfg_max_TOFNsigmaKa) : true;
466467
bool is_pi_included_TPC = hadronCut.cfg_min_TPCNsigmaPi < track.tpcNSigmaPi() && track.tpcNSigmaPi() < hadronCut.cfg_max_TPCNsigmaPi;
467468
bool is_pi_included_TOF = track.hasTOF() ? (hadronCut.cfg_min_TOFNsigmaPi < tofNSigmaPi && tofNSigmaPi < hadronCut.cfg_max_TOFNsigmaPi) : true;
469+
if (!hadronCut.applyTOFif) {
470+
is_ka_included_TOF = true;
471+
is_pi_included_TOF = true;
472+
}
468473
return (is_ka_included_TPC && is_ka_included_TOF) || (is_pi_included_TPC && is_pi_included_TOF);
469474
}
470475

0 commit comments

Comments
 (0)