@@ -297,7 +297,9 @@ struct FemtoUniversePairTaskTrackV0Extended {
297297 registryMCtruth.add (" minus/MCtruthPiPt" , " MC truth pions;#it{p}_{T} (GeV/c)" , {HistType::kTH1F , {{500 , 0 , 5 }}});
298298 registryMCtruth.add (" minus/MCtruthPrPt" , " MC truth protons;#it{p}_{T} (GeV/c)" , {HistType::kTH1F , {{500 , 0 , 5 }}});
299299
300- registryMCtruth.add (" mothersTruth/motherParticle" , " pair fractions;part1 mother PDG;part2 mother PDG" , {HistType::kTH2F , {{8001 , -4000 , 4000 }, {8001 , -4000 , 4000 }}});
300+ if (doprocessPairFractionsMCTruthV0 || doprocessPairFractionsMCTruth) {
301+ registryMCtruth.add (" mothersTruth/motherParticle" , " pair fractions;part1 mother PDG;part2 mother PDG" , {HistType::kTH2F , {{8001 , -4000 , 4000 }, {8001 , -4000 , 4000 }}});
302+ }
301303
302304 // MC reco
303305 registryMCreco.add (" plus/MCrecoLambda" , " MC reco Lambdas;#it{p}_{T} (GeV/c); #eta" , {HistType::kTH2F , {{500 , 0 , 5 }, {400 , -1.0 , 1.0 }}});
@@ -321,9 +323,10 @@ struct FemtoUniversePairTaskTrackV0Extended {
321323 registryMCreco.add (" minus/MCrecoPiPt" , " MC reco pions;#it{p}_{T} (GeV/c)" , {HistType::kTH1F , {{500 , 0 , 5 }}});
322324 registryMCreco.add (" minus/MCrecoPrPt" , " MC reco protons;#it{p}_{T} (GeV/c)" , {HistType::kTH1F , {{500 , 0 , 5 }}});
323325
324- registryMCreco.add (" mothersReco/motherParticle" , " pair fractions;part1 mother PDG;part2 mother PDG" , {HistType::kTH2F , {{8001 , -4000 , 4000 }, {8001 , -4000 , 4000 }}});
325- registryMCreco.add (" mothersReco/motherParticlePDGCheck" , " pair fractions;part1 mother PDG;part2 mother PDG" , {HistType::kTH2F , {{8001 , -4000 , 4000 }, {8001 , -4000 , 4000 }}});
326-
326+ if (doprocessPairFractions || doprocessPairFractionsV0) {
327+ registryMCreco.add (" mothersReco/motherParticle" , " pair fractions;part1 mother PDG;part2 mother PDG" , {HistType::kTH2F , {{8001 , -4000 , 4000 }, {8001 , -4000 , 4000 }}});
328+ registryMCreco.add (" mothersReco/motherParticlePDGCheck" , " pair fractions;part1 mother PDG;part2 mother PDG" , {HistType::kTH2F , {{8001 , -4000 , 4000 }, {8001 , -4000 , 4000 }}});
329+ }
327330 sameEventCont.init (&resultRegistry, confkstarBins, confMultBins, confkTBins, confmTBins, confMultBins3D, confmTBins3D, confEtaBins, confPhiBins, confIsMC, confUse3D);
328331 sameEventCont.setPDGCodes (ConfTrkSelection.confTrkPDGCodePartOne , ConfV0Selection.confV0PDGCodePartTwo );
329332 mixedEventCont.init (&resultRegistry, confkstarBins, confMultBins, confkTBins, confmTBins, confMultBins3D, confmTBins3D, confEtaBins, confPhiBins, confIsMC, confUse3D);
0 commit comments