Skip to content

Commit 3593468

Browse files
committed
Small fixes
1 parent 4db0ac3 commit 3593468

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

EventFiltering/PWGHF/HFFilter.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,9 @@ struct HfFilter { // Main struct for HF triggers
264264
}
265265

266266
// fetch config of track-index-skim-creator to apply the same cut on DeltaMassKK for Ds
267-
std::vector<double>> ptBinsDsSkimCreator{};
267+
std::vector<double> ptBinsDsSkimCreator{};
268268
LabeledArray<double> cutsDsSkimCreator{};
269+
const auto& workflows = initContext.services().get<RunningWorkflowInfo const>();
269270
for (const DeviceSpec& device : workflows.devices) {
270271
if (device.name.compare("hf-track-index-skim-creator") == 0) {
271272
for (const auto& option : device.options) {

EventFiltering/PWGHF/HFFilterHelpers.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,16 +1080,16 @@ inline int8_t HfFilterHelper::isDsPreselected(const P& pTrackSameChargeFirst, co
10801080
}
10811081

10821082
// check delta-mass for phi resonance
1083-
auto ptDs = RecoDecay::pt(std::array{pTrackSameChargeFirst, pTrackSameChargeSecond, pTrackOppositeCharge});
1084-
auto ptBinDs = findBin(mPreselDsToKKPi, ptDs);
1083+
auto ptDs = RecoDecay::pt(pTrackSameChargeFirst, pTrackSameChargeSecond, pTrackOppositeCharge);
1084+
auto ptBinDs = findBin(mPtBinsPreselDsToKKPi, ptDs);
10851085
if (ptBinDs == -1) {
10861086
return retValue;
10871087
}
10881088

10891089
auto invMassKKFirst = RecoDecay::m(std::array{pTrackSameChargeFirst, pTrackOppositeCharge}, std::array{massKa, massKa});
10901090
auto invMassKKSecond = RecoDecay::m(std::array{pTrackSameChargeSecond, pTrackOppositeCharge}, std::array{massKa, massKa});
10911091

1092-
float cutValueMassKK = mPtBinsPreselDsToKKPi.get(ptBinDs, 4u);
1092+
float cutValueMassKK = mPreselDsToKKPi.get(ptBinDs, 4u);
10931093
if (std::fabs(invMassKKFirst - massPhi) < cutValueMassKK) {
10941094
retValue |= BIT(0);
10951095
}

0 commit comments

Comments
 (0)