Skip to content

Commit e013c68

Browse files
Eloviyosmonira
andauthored
[PWGCF] FemtoUniverse V0Cascade Task -- removal of unused v0cascade task (#18793)
Co-authored-by: smonira <shirajum.monira@cern.ch>
1 parent 771e949 commit e013c68

4 files changed

Lines changed: 3 additions & 534 deletions

File tree

‎PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h‎

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ class FemtoUniverseDetaDphiStar
193193
}
194194
}
195195
if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kV0) {
196+
/// Track-V0 combination
196197
for (int i = 0; i < 2; i++) {
197198
std::string dirName = static_cast<std::string>(DirNames[1]);
198199
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}});
@@ -592,45 +593,6 @@ class FemtoUniverseDetaDphiStar
592593
}
593594
}
594595
return pass;
595-
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kV0 && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
596-
/// V0-Cascade combination
597-
if (part1.partType() != o2::aod::femtouniverseparticle::ParticleType::kV0 || part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kCascade) {
598-
LOG(fatal) << "FemtoUniverseDetaDphiStar: passed arguments don't agree with FemtoUniverseDetaDphiStar instantiation! Please provide kV0,kCascade candidates.";
599-
return false;
600-
}
601-
602-
bool pass = false;
603-
static constexpr int V0CascChildTable[][2] = {{-1, -1}, {-1, -2}, {-1, -3}, {-2, -1}, {-2, -2}, {-2, -3}};
604-
for (int i = 0; i < 3; i++) {
605-
auto indexOfDaughterV0 = (ChosenEventType == femto_universe_container::EventType::mixed ? part1.globalIndex() : part1.index()) + V0CascChildTable[i][0];
606-
auto indexOfDaughterCasc = (ChosenEventType == femto_universe_container::EventType::mixed ? part2.globalIndex() : part2.index()) + V0CascChildTable[i][1];
607-
auto daughterV0 = particles.begin() + indexOfDaughterV0;
608-
auto daughterCasc = particles.begin() + indexOfDaughterCasc;
609-
if (isSameSignCPR && (daughterV0.mAntiLambda() != daughterCasc.mAntiLambda())) // mAntiLambda() is used here as sign getter
610-
continue;
611-
auto deta = daughterV0.eta() - daughterCasc.eta();
612-
auto dphiAvg = averagePhiStar(*daughterV0, *daughterCasc, i);
613-
if (ChosenEventType == femto_universe_container::EventType::same) {
614-
histdetadpisame[i][0]->Fill(deta, dphiAvg);
615-
} else if (ChosenEventType == femto_universe_container::EventType::mixed) {
616-
histdetadpimixed[i][0]->Fill(deta, dphiAvg);
617-
} else {
618-
LOG(fatal) << "FemtoUniverseDetaDphiStar: passed arguments don't agree with FemtoUniverseDetaDphiStar's type of events! Please provide same or mixed.";
619-
}
620-
621-
if ((dphiAvg > cutDeltaPhiStarMin) && (dphiAvg < cutDeltaPhiStarMax) && (deta > cutDeltaEtaMin) && (deta < cutDeltaEtaMax)) {
622-
pass = true;
623-
} else {
624-
if (ChosenEventType == femto_universe_container::EventType::same) {
625-
histdetadpisame[i][1]->Fill(deta, dphiAvg);
626-
} else if (ChosenEventType == femto_universe_container::EventType::mixed) {
627-
histdetadpimixed[i][1]->Fill(deta, dphiAvg);
628-
} else {
629-
LOG(fatal) << "FemtoUniverseDetaDphiStar: passed arguments don't agree with FemtoUniverseDetaDphiStar's type of events! Please provide same or mixed.";
630-
}
631-
}
632-
}
633-
return pass;
634596
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kD0) {
635597
/// Track-D0 combination
636598
// check if provided particles are in agreement with the class instantiation

‎PWGCF/FemtoUniverse/Core/FemtoUniversePairCleaner.h‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -133,23 +133,6 @@ class FemtoUniversePairCleaner
133133
return false;
134134
}
135135
return part1.globalIndex() != part2.globalIndex();
136-
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kV0 && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
137-
/// V0-Cascade combination where part1 is a V0 and part2 is a cascade
138-
if (part1.partType() != o2::aod::femtouniverseparticle::ParticleType::kV0 || part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kCascade) {
139-
LOG(fatal) << "FemtoUniversePairCleaner: passed arguments don't agree with FemtoUniversePairCleaner instantiation! Please provide first argument kV0 candidate and second argument kCascade candidate.";
140-
return false;
141-
}
142-
// part1 v0 children
143-
const auto& posChild1 = particles.iteratorAt(part1.index() - 2);
144-
const auto& negChild1 = particles.iteratorAt(part1.index() - 1);
145-
// part2 cascade children
146-
const auto& posChild2 = particles.iteratorAt(part2.index() - 3);
147-
const auto& negChild2 = particles.iteratorAt(part2.index() - 2);
148-
const auto& bachelor2 = particles.iteratorAt(part2.index() - 1);
149-
if (posChild1.globalIndex() == posChild2.globalIndex() || negChild1.globalIndex() == negChild2.globalIndex() || posChild1.globalIndex() == bachelor2.globalIndex() || negChild1.globalIndex() == bachelor2.globalIndex()) {
150-
return false;
151-
}
152-
return part1.globalIndex() != part2.globalIndex();
153136
} else if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kD0) {
154137
/// Track-D0 combination part1 is hadron and part2 is D0
155138
if (part2.partType() != o2::aod::femtouniverseparticle::ParticleType::kD0) {
@@ -186,7 +169,7 @@ class FemtoUniversePairCleaner
186169
}
187170

188171
private:
189-
framework::HistogramRegistry* mHistogramRegistry; ///< For QA output
172+
framework::HistogramRegistry* mHistogramRegistry = nullptr; ///< For QA output
190173
static constexpr o2::aod::femtouniverseparticle::ParticleType kPartOneType = partOne; ///< Type of particle 1
191174
static constexpr o2::aod::femtouniverseparticle::ParticleType kPartTwoType = partTwo; ///< Type of particle 2
192175
};

‎PWGCF/FemtoUniverse/Tasks/CMakeLists.txt‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ o2physics_add_dpl_workflow(femtouniverse-pair-track-cascade-extended
6969
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
7070
COMPONENT_NAME Analysis)
7171

72-
o2physics_add_dpl_workflow(femtouniverse-pair-v0-cascade-extended
73-
SOURCES femtoUniversePairTaskV0CascadeExtended.cxx
74-
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
75-
COMPONENT_NAME Analysis)
76-
7772
o2physics_add_dpl_workflow(femtouniverse-pair-track-d0
7873
SOURCES femtoUniversePairTaskTrackD0.cxx
7974
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
@@ -112,4 +107,4 @@ o2physics_add_dpl_workflow(femtouniverse-efficiency-base
112107
o2physics_add_executable(femtouniverse-cutculator
113108
SOURCES femtoUniverseCutCulator.cxx
114109
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
115-
COMPONENT_NAME Analysis)
110+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)