Skip to content

Commit ae802f8

Browse files
committed
fix observable type
1 parent 9d5a09f commit ae802f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGHF/D2H/Core/DataCreationCharmReso.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ struct HfResoConfigSingleTrackCuts : o2::framework::ConfigurableGroup {
197197
o2::framework::Configurable<int> setTrackSelections{"setTrackSelections", 2, "flag to apply track selections: 0=none; 1=global track w/o DCA selection; 2=global track; 3=only ITS quality"};
198198
o2::framework::Configurable<float> maxEta{"maxEta", 0.8, "maximum pseudorapidity for single tracks to be paired with D mesons"};
199199
o2::framework::Configurable<float> minPt{"minPt", 0.1, "minimum pT for single tracks to be paired with D mesons"};
200-
o2::framework::Configurable<float> forceTOF{"forceTOF", 0.1, "minimum pT for single tracks to be paired with D mesons"};
200+
o2::framework::Configurable<bool> forceTOF{"forceTOF", false, "minimum pT for single tracks to be paired with D mesons"};
201201
o2::framework::Configurable<float> maxNsigmaTpcPi{"maxNsigmaTpcPi", -1., "maximum pion NSigma in TPC for single tracks to be paired with D mesons; set negative to reject"};
202202
o2::framework::Configurable<float> maxNsigmaTpcKa{"maxNsigmaTpcKa", -1., "maximum kaon NSigma in TPC for single tracks to be paired with D mesons; set negative to reject"};
203203
o2::framework::Configurable<float> maxNsigmaTpcPr{"maxNsigmaTpcPr", 3., "maximum proton NSigma in TPC for single tracks to be paired with D mesons; set negative to reject"};
@@ -743,9 +743,9 @@ bool isTrackSelected(const Tr& track, const std::array<int, 3>& dDaughtersIds, c
743743
bool isProtonTOF = hasTOF ? std::abs(track.tofNSigmaPr()) < cfgSingleTrackCuts.maxNsigmaTofPr.value : false;
744744

745745
// --- Combined logic ---
746-
bool isPion = isPionTPC && (!forceTOF || isPionTOF);
747-
bool isKaon = isKaonTPC && (!forceTOF || isKaonTOF);
748-
bool isProton = isProtonTPC && (!forceTOF || isProtonTOF);
746+
bool isPion = isPionTPC && (!cfgSingleTrackCuts.forceTOF || isPionTOF);
747+
bool isKaon = isKaonTPC && (!cfgSingleTrackCuts.forceTOF || isKaonTOF);
748+
bool isProton = isProtonTPC && (!cfgSingleTrackCuts.forceTOF || isProtonTOF);
749749

750750
return (isPion || isKaon || isProton); // we keep the track if is it compatible with at least one of the PID hypotheses selected
751751
}

0 commit comments

Comments
 (0)