Skip to content

Commit 9af7bc4

Browse files
zchochulZuzanna Chochulska
andauthored
[PWGCF] FemtoUniverse -- MC pPhi fixes for MC reco Phi (#9703)
Co-authored-by: Zuzanna Chochulska <01150674@pw.edu.pl>
1 parent 2806086 commit 9af7bc4

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseParticleHisto.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ class FemtoUniverseParticleHisto
154154
/// to be implemented
155155
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kPhi) {
156156
// Phi histograms
157+
mHistogramRegistry->add((folderName + folderSuffix + "/hPDG").c_str(), "; PDG; Entries", kTH1I, {{6001, -3000, 3000}});
158+
mHistogramRegistry->add((folderName + folderSuffix + "/hOrigin_MC").c_str(), "; Origin; Entries", kTH1I, {{7, 0, 7}});
159+
157160
} else if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kD0) {
158161
// D0/D0bar histograms
159162
} else {

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackPhi.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ struct FemtoUniversePairTaskTrackPhi {
5858

5959
Service<o2::framework::O2DatabasePDG> pdgMC;
6060

61-
using FemtoFullParticles = soa::Join<aod::FDParticles, aod::FDExtParticles>;
62-
// Filters for selecting particles (both p1 and p2)
63-
Filter trackCutFilter = requireGlobalTrackInFilter(); // Global track cuts
64-
// Filter trackAdditionalfilter = (nabs(aod::femtouniverseparticle::eta) < twotracksconfigs.confEtaMax); // example filtering on configurable
65-
using FilteredFemtoFullParticles = soa::Filtered<FemtoFullParticles>;
61+
// using FemtoFullParticles = soa::Join<aod::FDParticles, aod::FDExtParticles>;
62+
// Filter trackCutFilter = requireGlobalTrackInFilter(); // Global track cuts
63+
// using FilteredFemtoFullParticles = soa::Filtered<FemtoFullParticles>;
64+
65+
using FilteredFemtoFullParticles = soa::Join<aod::FDParticles, aod::FDExtParticles>;
6666

6767
SliceCache cache;
6868
Preslice<FilteredFemtoFullParticles> perCol = aod::femtouniverseparticle::fdCollisionId;
@@ -675,12 +675,12 @@ struct FemtoUniversePairTaskTrackPhi {
675675
auto groupMCTruthPhi = partsPhiMCTruth->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
676676
efficiencyCalculator.doMCTruth<2>(hMCTruth2, groupMCTruthPhi);
677677

678-
auto groupMCRecoTrack = partsTrackMCReco->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
679-
auto groupMCRecoPhi = partsPhiMCReco->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
678+
auto thegroupPartsTrack = partsTrackMCReco->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
679+
auto thegroupPartsPhi = partsPhiMCReco->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
680680
auto thegroupPartsPhiDaugh = partsPhiDaughMC->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
681681
auto thegroupPartsKaons = partsKaonsMC->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
682682

683-
doSameEvent<true>(groupMCRecoTrack, groupMCRecoPhi, thegroupPartsPhiDaugh, thegroupPartsKaons, parts, col.magField(), col.multNtr());
683+
doSameEvent<true>(thegroupPartsTrack, thegroupPartsPhi, thegroupPartsPhiDaugh, thegroupPartsKaons, parts, col.magField(), col.multNtr());
684684
}
685685
PROCESS_SWITCH(FemtoUniversePairTaskTrackPhi, processSameEventMC, "Enable processing same event for Monte Carlo", false);
686686

0 commit comments

Comments
 (0)