1616#ifndef PWGCF_FEMTO_CORE_MCPARTICLEHISTMANAGER_H_
1717#define PWGCF_FEMTO_CORE_MCPARTICLEHISTMANAGER_H_
1818
19+ #include " PWGCF/Femto/Core/femtoUtils.h"
1920#include " PWGCF/Femto/Core/histManager.h"
2021#include " PWGCF/Femto/Core/modes.h"
2122
@@ -52,6 +53,7 @@ enum McParticleHist {
5253 kMotherEta ,
5354 kMotherPhi ,
5455 kMotherSign ,
56+ kMotherY ,
5557 // origin (kept in sync with TrackHist, even though some categories
5658 // are not expected to be populated for pure MC truth particles)
5759 kOrigin ,
@@ -105,6 +107,7 @@ constexpr std::array<histmanager::HistInfo<McParticleHist>, kMcParticleHistLast>
105107 {kMotherEta , o2::framework::HistType::kTH1F , " hMotherEta" , " Mother pseudorapidity; #eta; Entries" },
106108 {kMotherPhi , o2::framework::HistType::kTH1F , " hMotherPhi" , " Mother azimuthal angle; #varphi; Entries" },
107109 {kMotherSign , o2::framework::HistType::kTH1F , " hMotherSign" , " Sign of mother charge; Sign; Entries" },
110+ {kMotherY , o2::framework::HistType::kTH1F , " hMotherY" , " Mother rapidity; Y; Entries" },
108111 {kOrigin , o2::framework::HistType::kTH1F , " hOrigin" , " Status Codes (=Origin); Status Code; Entries" },
109112 {kNoMcParticle , o2::framework::HistType::kTH1F , " hNoMcParticle" , " Particles with no associated MC information; p_{T} (GeV/#it{c}); Entries" },
110113 {kPrimary , o2::framework::HistType::kTH1F , " hPrimary" , " Primary particles; p_{T} (GeV/#it{c}); Entries" },
@@ -132,6 +135,7 @@ auto makeMcParticleHistSpecMap(const T& confBinning)
132135 {kMotherEta , {confBinning.eta }},
133136 {kMotherPhi , {confBinning.phi }},
134137 {kMotherSign , {confBinning.sign }},
138+ {kMotherY , {confBinning.eta }},
135139 {kNoMcParticle , {confBinning.pt }},
136140 {kPrimary , {confBinning.pt }},
137141 {kFromWrongCollision , {confBinning.pt }},
@@ -182,6 +186,7 @@ class McParticleHistManager
182186 mHistogramRegistry ->add (mcDir + getHistNameV2 (kMotherEta , HistTable), getHistDesc (kMotherEta , HistTable), getHistType (kMotherEta , HistTable), {Specs.at (kMotherEta )});
183187 mHistogramRegistry ->add (mcDir + getHistNameV2 (kMotherPhi , HistTable), getHistDesc (kMotherPhi , HistTable), getHistType (kMotherPhi , HistTable), {Specs.at (kMotherPhi )});
184188 mHistogramRegistry ->add (mcDir + getHistNameV2 (kMotherSign , HistTable), getHistDesc (kMotherSign , HistTable), getHistType (kMotherSign , HistTable), {Specs.at (kMotherSign )});
189+ mHistogramRegistry ->add (mcDir + getHistNameV2 (kMotherY , HistTable), getHistDesc (kMotherY , HistTable), getHistType (kMotherY , HistTable), {Specs.at (kMotherY )});
185190
186191 this ->enableOptionalHistograms (confBinning);
187192 this ->initOrigin (Specs);
@@ -204,6 +209,7 @@ class McParticleHistManager
204209 mHistogramRegistry ->fill (HIST (prefix) + HIST (McDir) + HIST (getHistName (kMotherEta , HistTable)), mother.eta ());
205210 mHistogramRegistry ->fill (HIST (prefix) + HIST (McDir) + HIST (getHistName (kMotherPhi , HistTable)), mother.phi ());
206211 mHistogramRegistry ->fill (HIST (prefix) + HIST (McDir) + HIST (getHistName (kMotherSign , HistTable)), mother.sign ());
212+ mHistogramRegistry ->fill (HIST (prefix) + HIST (McDir) + HIST (getHistName (kMotherY , HistTable)), mother.y (utils::getPdgMass (mother.pdgCode ())));
207213 } else {
208214 mHistogramRegistry ->fill (HIST (prefix) + HIST (McDir) + HIST (getHistName (kPdgMother , HistTable)), 0 );
209215 }
0 commit comments