Skip to content

Commit 74f2815

Browse files
authored
[PWGCF] FemtoUniverse: Add debug histogram with TPC momentum (#16436)
1 parent 5a7e16a commit 74f2815

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackSpherHarMultKtExtended.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ struct FemtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
166166

167167
ConfigurableAxis confDeltaEtaAxis{"confDeltaEtaAxis", {100, -0.15, 0.15}, "DeltaEta"};
168168
ConfigurableAxis confDeltaPhiStarAxis{"confDeltaPhiStarAxis", {100, -0.15, 0.15}, "DeltaPhiStar"};
169+
Configurable<bool> confIsDebug{"confIsDebug", true, "Fill additional histograms"};
169170
} twotracksconfigs;
170171

171172
using FemtoFullParticles = soa::Join<aod::FDParticles, aod::FDExtParticles>;
@@ -492,6 +493,11 @@ struct FemtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
492493
mixQaRegistry.add("MixingQA/hSECollisionBins", ";bin;Entries", kTH1F, {{120, -0.5, 119.5}});
493494
mixQaRegistry.add("MixingQA/hMECollisionBins", ";bin;Entries", kTH1F, {{120, -0.5, 119.5}});
494495

496+
if (twotracksconfigs.confIsDebug) {
497+
qaRegistry.add("Tracks_one/hPtpcVsP", ";p GeV/c; (p_{TPC}-p)/p", kTH2F, {{800, 0, 4}, {400, -1, 1}});
498+
qaRegistry.add("Tracks_two/hPtpcVsP", ";p GeV/c; (p_{TPC}-p)/p", kTH2F, {{800, 0, 4}, {400, -1, 1}});
499+
}
500+
495501
mass1 = pdg->Mass(trackonefilter.confPDGCodePartOne);
496502
mass2 = pdg->Mass(tracktwofilter.confPDGCodePartTwo);
497503

@@ -582,6 +588,9 @@ struct FemtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
582588
}
583589
trackHistoPartOne.fillQA<isMC, true>(part);
584590
trackHistoPartOne.fillQAMisIden<isMC, true>(part, trackonefilter.confPDGCodePartOne);
591+
if (twotracksconfigs.confIsDebug) {
592+
qaRegistry.fill(HIST("Tracks_one/hPtpcVsP"), part.p(), (part.tpcInnerParam() - part.p()) / part.p());
593+
}
585594
}
586595
}
587596

@@ -591,6 +600,9 @@ struct FemtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
591600
continue;
592601
}
593602
trackHistoPartTwo.fillQA<isMC, true>(part);
603+
if (twotracksconfigs.confIsDebug) {
604+
qaRegistry.fill(HIST("Tracks_two/hPtpcVsP"), part.p(), (part.tpcInnerParam() - part.p()) / part.p());
605+
}
594606
}
595607
}
596608

0 commit comments

Comments
 (0)