Skip to content

Commit 6fef4ce

Browse files
authored
[PWGLF] Fix bug related to daughter index (#10960)
1 parent 7585e47 commit 6fef4ce

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

EventFiltering/PWGLF/filterdoublephi.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ struct filterdoublephi {
259259
auto i6 = std::distance(phiresonance.begin(), if2);
260260
PhiVectorDummy2 = phiresonance.at(i6);
261261
PhiPair = PhiVectorDummy + PhiVectorDummy2;
262-
if ((Phid1Index.at(i5) != Phid1Index.at(i6)) && (Phid2Index.at(i5) != Phid2Index.at(i6)) && PhiPair.M() > MinPhiPairMass && PhiPair.M() < MaxPhiPairMass && PhiPair.Pt() > MinPhiPairPt) {
262+
if (!(Phid1Index.at(i5) == Phid1Index.at(i6) && Phid2Index.at(i5) == Phid2Index.at(i6)) && PhiPair.M() > MinPhiPairMass && PhiPair.M() < MaxPhiPairMass && PhiPair.Pt() > MinPhiPairPt) {
263263
qaRegistry.fill(HIST("hInvMassDoublePhi"), PhiPair.M(), PhiPair.Pt());
264264
keepEventDoublePhi = true;
265265
}

PWGLF/Tasks/Resonances/doublephimeson.cxx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ struct doublephimeson {
4545
Configurable<int> strategyPID2{"strategyPID2", 0, "PID strategy 2"};
4646
Configurable<float> minPhiMass{"minPhiMass", 1.01, "Minimum phi mass"};
4747
Configurable<float> maxPhiMass{"maxPhiMass", 1.03, "Maximum phi mass"};
48+
Configurable<float> minExoticMass{"minExoticMass", 2.4, "Minimum Exotic mass"};
49+
Configurable<float> maxExoticMass{"maxExoticMass", 3.2, "Maximum Exotic mass"};
4850
Configurable<bool> additionalEvsel{"additionalEvsel", false, "Additional event selection"};
4951
Configurable<bool> isDeep{"isDeep", true, "Store deep angle"};
5052
Configurable<float> cutMinNsigmaTPC{"cutMinNsigmaTPC", -2.5, "nsigma cut TPC"};
@@ -332,14 +334,20 @@ struct doublephimeson {
332334
if (!selectionPID(phitrackd2.phid2TPC(), phitrackd2.phid2TOF(), phitrackd2.phid2TOFHit(), strategyPID2, kaonminusd2pt)) {
333335
continue;
334336
}
335-
if (phitrackd1.phid1Index() == phitrackd2.phid1Index()) {
336-
continue;
337-
}
338-
if (phitrackd1.phid2Index() == phitrackd2.phid2Index()) {
337+
// if (phitrackd1.phid1Index() == phitrackd2.phid1Index()) {
338+
// continue;
339+
// }
340+
// if (phitrackd1.phid2Index() == phitrackd2.phid2Index()) {
341+
// continue;
342+
// }
343+
if (phitrackd1.phid1Index() == phitrackd2.phid1Index() && phitrackd1.phid2Index() == phitrackd2.phid2Index()) {
339344
continue;
340345
}
341346
Phid2.SetXYZM(phitrackd2.phiPx(), phitrackd2.phiPy(), phitrackd2.phiPz(), phitrackd2.phiMass());
342347
exotic = Phid1 + Phid2;
348+
if (exotic.M() < minExoticMass || exotic.M() > maxExoticMass) {
349+
continue;
350+
}
343351
// auto cosThetaStar = getCosTheta(exotic, Phid1);
344352
// auto kstar = getkstar(Phid1, Phid2);
345353
auto deltaR = TMath::Sqrt(TMath::Power(Phid1.Phi() - Phid2.Phi(), 2.0) + TMath::Power(Phid1.Eta() - Phid2.Eta(), 2.0));

0 commit comments

Comments
 (0)