Skip to content

Commit 3bef8f6

Browse files
authored
[PWGCF/FemtoUniverse] Add pT histo with only primaries. (#10681)
1 parent 9a9c1f8 commit 3bef8f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseParticleHisto.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ class FemtoUniverseParticleHisto
136136
std::string folderSuffix = static_cast<std::string>(o2::aod::femtouniverse_mc_particle::MCTypeName[o2::aod::femtouniverse_mc_particle::MCType::kTruth]).c_str();
137137

138138
mHistogramRegistry->add((folderName + folderSuffix + "/hPt_ReconNoFake").c_str(), "; #it{p}_{T} (GeV/#it{c}); Entries", kTH1F, {tempFitVarpTAxis});
139+
mHistogramRegistry->add((folderName + folderSuffix + "/hPt_ReconPrimary").c_str(), "; #it{p}_{T} (GeV/#it{c}); Entries", kTH1F, {tempFitVarpTAxis});
139140

140141
if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kTrack || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kV0Child || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascadeBachelor || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kMCTruthTrack) {
141142
/// Track histograms
@@ -320,10 +321,14 @@ class FemtoUniverseParticleHisto
320321
if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kTrack || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kV0Child || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascadeBachelor || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kMCTruthTrack) {
321322
/// Track histograms
322323
switch (mctruthorigin) {
323-
case (o2::aod::femtouniverse_mc_particle::kPrimary):
324+
case (o2::aod::femtouniverse_mc_particle::kPrimary): {
325+
if (pdgcode == mPDG) {
326+
mHistogramRegistry->fill(histFolder + HIST("_MC/hPt_Primary"), part.pt());
327+
}
324328
mHistogramRegistry->fill(histFolder + HIST("_MC/hDCAxy_Primary"),
325329
part.pt(), part.tempFitVar());
326330
break;
331+
}
327332
case (o2::aod::femtouniverse_mc_particle::kDaughter):
328333
mHistogramRegistry->fill(histFolder + HIST("_MC/hDCAxy_Daughter"),
329334
part.pt(), part.tempFitVar());

0 commit comments

Comments
 (0)