|
14 | 14 | /// \author Andi Mathis, TU München, andreas.mathis@ph.tum.de |
15 | 15 | /// \author Laura Serksnyte, TU München,laura.serksnyte@cern.ch |
16 | 16 | /// \author Zuzanna Chochulska, WUT Warsaw & CTU Prague, zchochul@cern.ch |
| 17 | +/// \author Shirajum Monira, WUT Warsaw, shirajum.monira@cern.ch |
17 | 18 |
|
18 | 19 | #ifndef PWGCF_FEMTOUNIVERSE_CORE_FEMTOUNIVERSEPAIRCLEANER_H_ |
19 | 20 | #define PWGCF_FEMTOUNIVERSE_CORE_FEMTOUNIVERSEPAIRCLEANER_H_ |
@@ -112,6 +113,24 @@ class FemtoUniversePairCleaner |
112 | 113 | return false; |
113 | 114 | } |
114 | 115 | return part1.globalIndex() != part2.globalIndex(); |
| 116 | + } else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kCascade && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kCascade) { |
| 117 | + /// Cascade-Cascade combination both part1 and part2 are cascades |
| 118 | + if (part1.partType() != o2::aod::femtouniverseparticle::ParticleType::kCascade || part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kCascade) { |
| 119 | + LOG(fatal) << "FemtoUniversePairCleaner: passed arguments don't agree with FemtoUniversePairCleaner instantiation! Please provide first and second arguments kCascade candidate."; |
| 120 | + return false; |
| 121 | + } |
| 122 | + // Getting cascade children for part1 |
| 123 | + const auto& posChild1 = particles.iteratorAt(part1.index() - 3); |
| 124 | + const auto& negChild1 = particles.iteratorAt(part1.index() - 2); |
| 125 | + const auto& bachelor1 = particles.iteratorAt(part1.index() - 1); |
| 126 | + // Getting cascade children for part2 |
| 127 | + const auto& posChild2 = particles.iteratorAt(part2.index() - 3); |
| 128 | + const auto& negChild2 = particles.iteratorAt(part2.index() - 2); |
| 129 | + const auto& bachelor2 = particles.iteratorAt(part2.index() - 1); |
| 130 | + if (posChild1.globalIndex() == posChild2.globalIndex() || negChild1.globalIndex() == negChild2.globalIndex() || bachelor1.globalIndex() == bachelor2.globalIndex()) { |
| 131 | + return false; |
| 132 | + } |
| 133 | + return part1.globalIndex() != part2.globalIndex(); |
115 | 134 | } else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kD0) { |
116 | 135 | /// Track-D0 combination part1 is hadron and part2 is D0 |
117 | 136 | if (part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kD0) { |
|
0 commit comments