@@ -117,11 +117,6 @@ struct FemtoUniversePairTaskTrackPhi {
117117 (aod::femtouniverseparticle::pt > ConfTrackPtLow) &&
118118 (aod::femtouniverseparticle::pt < ConfTrackPtHigh);
119119
120- // Partition<soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>> partsTrackMCTruth =
121- // aod::femtouniverseparticle::partType == static_cast<uint8_t>(aod::femtouniverseparticle::ParticleType::kMCTruthTrack) &&
122- // aod::femtouniverseparticle::pt < ConfTrackPtHigh &&
123- // aod::femtouniverseparticle::pt > ConfTrackPtLow;
124-
125120 // / Particle 2 --- PHI MESON
126121 Configurable<float > ConfPhiPtLow{" ConfPhiPtLow" , 0.8 , " Lower limit of the Phi pT." };
127122 Configurable<float > ConfPhiPtHigh{" ConfPhiPtHigh" , 4.0 , " Higher limit of the Phi pT." };
@@ -141,11 +136,6 @@ struct FemtoUniversePairTaskTrackPhi {
141136 (aod::femtouniverseparticle::tempFitVar > confInvMassLowLimitPhi) &&
142137 (aod::femtouniverseparticle::tempFitVar < confInvMassUpLimitPhi);
143138
144- // Partition<soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>> partsPhiMCTruth =
145- // aod::femtouniverseparticle::partType == static_cast<uint8_t>(aod::femtouniverseparticle::ParticleType::kMCTruthTrack) &&
146- // aod::femtouniverseparticle::pt < ConfPhiPtHigh &&
147- // aod::femtouniverseparticle::pt > ConfPhiPtLow;
148-
149139 // / Partitions for Phi daughters kPhiChild
150140 Partition<FilteredFemtoFullParticles> partsPhiDaugh = (aod::femtouniverseparticle::partType == uint8_t (aod::femtouniverseparticle::ParticleType::kPhiChild ));
151141 Partition<soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>> partsPhiDaughMC = (aod::femtouniverseparticle::partType == uint8_t (aod::femtouniverseparticle::ParticleType::kPhiChild ));
@@ -523,13 +513,6 @@ struct FemtoUniversePairTaskTrackPhi {
523513 if constexpr (isMC) {
524514 // reco
525515 effCorrection.fillRecoHist <ParticleNo::ONE, FilteredFDCollisions>(phicandidate, 333 );
526- // truth
527- auto mcPartId1 = phicandidate.fdMCParticleId ();
528- auto const & mcpart1 = mcParts.iteratorAt (mcPartId1);
529- if (mcpart1.pdgMCTruth () != 333 ) {
530- continue ;
531- }
532- effCorrection.fillTruthHist <ParticleNo::ONE, FilteredFDCollisions>(phicandidate);
533516 }
534517 }
535518
@@ -570,14 +553,6 @@ struct FemtoUniversePairTaskTrackPhi {
570553
571554 if constexpr (isMC) {
572555 effCorrection.fillRecoHist <ParticleNo::TWO, FilteredFDCollisions>(track, ConfTrackPDGCode);
573-
574- // truth
575- auto mcPartId2 = track.fdMCParticleId ();
576- auto const & mcpart2 = mcParts.iteratorAt (mcPartId2);
577- if (mcpart2.pdgMCTruth () != ConfTrackPDGCode) {
578- continue ;
579- }
580- effCorrection.fillTruthHist <ParticleNo::TWO, FilteredFDCollisions>(track);
581556 }
582557 }
583558
@@ -738,6 +713,10 @@ struct FemtoUniversePairTaskTrackPhi {
738713 continue ;
739714 }
740715
716+ if (pdgCode == ConfTrackPDGCode) {
717+ effCorrection.fillTruthHist <ParticleNo::TWO, FilteredFDCollisions>(part);
718+ }
719+
741720 // charge +
742721 if (pdgParticle->Charge () > 0.0 ) {
743722 registryMCtruth.fill (HIST (" MCtruthAllPositivePt" ), part.pt ());
@@ -755,6 +734,7 @@ struct FemtoUniversePairTaskTrackPhi {
755734 if (pdgCode == 333 ) {
756735 registryMCtruth.fill (HIST (" MCtruthPhi" ), part.pt (), part.eta ());
757736 registryMCtruth.fill (HIST (" MCtruthPhiPt" ), part.pt ());
737+ effCorrection.fillTruthHist <ParticleNo::ONE, FilteredFDCollisions>(part);
758738 continue ;
759739 }
760740
0 commit comments