Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 1 addition & 39 deletions PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class FemtoUniverseDetaDphiStar
}
}
if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kV0) {
/// Track-V0 combination
for (int i = 0; i < 2; i++) {
std::string dirName = static_cast<std::string>(DirNames[1]);
histdetadpisame[i][0] = mHistogramRegistry->add<TH2>((dirName + static_cast<std::string>(HistNamesSame[0][i])).c_str(), "; #Delta #eta; #Delta #phi", o2::framework::HistType::kTH2F, {{fDeltaEtaAxis}, {fDeltaPhiStarAxis}});
Expand Down Expand Up @@ -592,45 +593,6 @@ class FemtoUniverseDetaDphiStar
}
}
return pass;
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kV0 && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
/// V0-Cascade combination
if (part1.partType() != o2::aod::femtouniverseparticle::ParticleType::kV0 || part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kCascade) {
LOG(fatal) << "FemtoUniverseDetaDphiStar: passed arguments don't agree with FemtoUniverseDetaDphiStar instantiation! Please provide kV0,kCascade candidates.";
return false;
}

bool pass = false;
static constexpr int V0CascChildTable[][2] = {{-1, -1}, {-1, -2}, {-1, -3}, {-2, -1}, {-2, -2}, {-2, -3}};
for (int i = 0; i < 3; i++) {
auto indexOfDaughterV0 = (ChosenEventType == femto_universe_container::EventType::mixed ? part1.globalIndex() : part1.index()) + V0CascChildTable[i][0];
auto indexOfDaughterCasc = (ChosenEventType == femto_universe_container::EventType::mixed ? part2.globalIndex() : part2.index()) + V0CascChildTable[i][1];
auto daughterV0 = particles.begin() + indexOfDaughterV0;
auto daughterCasc = particles.begin() + indexOfDaughterCasc;
if (isSameSignCPR && (daughterV0.mAntiLambda() != daughterCasc.mAntiLambda())) // mAntiLambda() is used here as sign getter
continue;
auto deta = daughterV0.eta() - daughterCasc.eta();
auto dphiAvg = averagePhiStar(*daughterV0, *daughterCasc, i);
if (ChosenEventType == femto_universe_container::EventType::same) {
histdetadpisame[i][0]->Fill(deta, dphiAvg);
} else if (ChosenEventType == femto_universe_container::EventType::mixed) {
histdetadpimixed[i][0]->Fill(deta, dphiAvg);
} else {
LOG(fatal) << "FemtoUniverseDetaDphiStar: passed arguments don't agree with FemtoUniverseDetaDphiStar's type of events! Please provide same or mixed.";
}

if ((dphiAvg > cutDeltaPhiStarMin) && (dphiAvg < cutDeltaPhiStarMax) && (deta > cutDeltaEtaMin) && (deta < cutDeltaEtaMax)) {
pass = true;
} else {
if (ChosenEventType == femto_universe_container::EventType::same) {
histdetadpisame[i][1]->Fill(deta, dphiAvg);
} else if (ChosenEventType == femto_universe_container::EventType::mixed) {
histdetadpimixed[i][1]->Fill(deta, dphiAvg);
} else {
LOG(fatal) << "FemtoUniverseDetaDphiStar: passed arguments don't agree with FemtoUniverseDetaDphiStar's type of events! Please provide same or mixed.";
}
}
}
return pass;
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kD0) {
/// Track-D0 combination
// check if provided particles are in agreement with the class instantiation
Expand Down
19 changes: 1 addition & 18 deletions PWGCF/FemtoUniverse/Core/FemtoUniversePairCleaner.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,6 @@ class FemtoUniversePairCleaner
return false;
}
return part1.globalIndex() != part2.globalIndex();
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kV0 && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
/// V0-Cascade combination where part1 is a V0 and part2 is a cascade
if (part1.partType() != o2::aod::femtouniverseparticle::ParticleType::kV0 || part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kCascade) {
LOG(fatal) << "FemtoUniversePairCleaner: passed arguments don't agree with FemtoUniversePairCleaner instantiation! Please provide first argument kV0 candidate and second argument kCascade candidate.";
return false;
}
// part1 v0 children
const auto& posChild1 = particles.iteratorAt(part1.index() - 2);
const auto& negChild1 = particles.iteratorAt(part1.index() - 1);
// part2 cascade children
const auto& posChild2 = particles.iteratorAt(part2.index() - 3);
const auto& negChild2 = particles.iteratorAt(part2.index() - 2);
const auto& bachelor2 = particles.iteratorAt(part2.index() - 1);
if (posChild1.globalIndex() == posChild2.globalIndex() || negChild1.globalIndex() == negChild2.globalIndex() || posChild1.globalIndex() == bachelor2.globalIndex() || negChild1.globalIndex() == bachelor2.globalIndex()) {
return false;
}
return part1.globalIndex() != part2.globalIndex();
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kD0) {
/// Track-D0 combination part1 is hadron and part2 is D0
if (part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kD0) {
Expand Down Expand Up @@ -186,7 +169,7 @@ class FemtoUniversePairCleaner
}

private:
framework::HistogramRegistry* mHistogramRegistry; ///< For QA output
framework::HistogramRegistry* mHistogramRegistry = nullptr; ///< For QA output
static constexpr o2::aod::femtouniverseparticle::ParticleType kPartOneType = partOne; ///< Type of particle 1
static constexpr o2::aod::femtouniverseparticle::ParticleType kPartTwoType = partTwo; ///< Type of particle 2
};
Expand Down
7 changes: 1 addition & 6 deletions PWGCF/FemtoUniverse/Tasks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ o2physics_add_dpl_workflow(femtouniverse-pair-track-cascade-extended
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(femtouniverse-pair-v0-cascade-extended
SOURCES femtoUniversePairTaskV0CascadeExtended.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(femtouniverse-pair-track-d0
SOURCES femtoUniversePairTaskTrackD0.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
Expand Down Expand Up @@ -112,4 +107,4 @@ o2physics_add_dpl_workflow(femtouniverse-efficiency-base
o2physics_add_executable(femtouniverse-cutculator
SOURCES femtoUniverseCutCulator.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
COMPONENT_NAME Analysis)
Loading
Loading