Skip to content

Commit be851e3

Browse files
authored
Simplify K(892) decay product checks
Removed daughter particle PDG code checks for K(892) decay.
1 parent 0f1e4ed commit be851e3

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

PWGLF/Tasks/Resonances/kstar0analysis.cxx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,22 +1353,6 @@ struct Kstar0analysis {
13531353
// =========================
13541354
if (std::abs(part.pdgCode()) == Pdg::kK0Star892) {
13551355

1356-
std::vector<int> daughterPDGs;
1357-
if (part.has_daughters()) {
1358-
auto daughter01 = mcParticles.rawIteratorAt(part.daughtersIds()[0] - mcParticles.offset());
1359-
auto daughter02 = mcParticles.rawIteratorAt(part.daughtersIds()[1] - mcParticles.offset());
1360-
daughterPDGs = {daughter01.pdgCode(), daughter02.pdgCode()};
1361-
} else {
1362-
daughterPDGs = {-1, -1};
1363-
}
1364-
1365-
bool pass1 = std::abs(daughterPDGs[0]) == kKPlus || std::abs(daughterPDGs[1]) == kKPlus; // At least one decay to Kaon
1366-
bool pass2 = std::abs(daughterPDGs[0]) == kPiPlus || std::abs(daughterPDGs[1]) == kPiPlus; // At least one decay to Pion
1367-
1368-
// Checking if we have both decay products
1369-
if (!pass1 || !pass2)
1370-
continue;
1371-
13721356
if (part.pdgCode() > 0)
13731357
histos.fill(HIST("Result/SignalLoss/GenTruek892pt_den"), part.pt(), centrality);
13741358
else

0 commit comments

Comments
 (0)