@@ -52,6 +52,7 @@ enum ColHist {
5252 kCentVsSphericity ,
5353 kMultVsSphericity ,
5454 // mc
55+ kTruePosZVsPosZ ,
5556 kTrueCentVsCent ,
5657 kTrueMultVsMult ,
5758 kColHistLast
@@ -80,6 +81,7 @@ constexpr std::array<histmanager::HistInfo<ColHist>, kColHistLast> HistTable = {
8081 {kMultVsSphericity , o2::framework::HistType::kTH2F , " hMultVsSphericity" , " Multiplicity vs Sphericity; Multiplicity; Sphericity" },
8182 {kCentVsSphericity , o2::framework::HistType::kTH2F , " hCentVsSphericity" , " Centrality vs Sphericity; Centrality (%); Sphericity" },
8283 // mc
84+ {kTruePosZVsPosZ , o2::framework::HistType::kTH2F , " hTruePosZVsPosZ" , " True Vertex Z vs Vertex Z; V_{Z,True} (cm); V_{Z} (cm)" },
8385 {kTrueCentVsCent , o2::framework::HistType::kTH2F , " hTrueCentVsCent" , " True centrality vs centrality; Centrality_{True} (%); Centrality (%)" },
8486 {kTrueMultVsMult , o2::framework::HistType::kTH2F , " hTrueMultVsMult" , " True multiplicity vs multiplicity; Multiplicity_{True}; Multiplicity" },
8587 }};
@@ -102,9 +104,10 @@ constexpr std::array<histmanager::HistInfo<ColHist>, kColHistLast> HistTable = {
102104 {kMultVsSphericity , {confAnalysis.mult , confQa.sphericity }}, \
103105 {kCentVsSphericity , {confBinningAnalysis.cent , confQa.sphericity }},
104106
105- #define COL_HIST_MC_MAP (conf ) \
106- {kTrueMultVsMult , {conf.mult , conf.mult }}, \
107- {kTrueCentVsCent , {conf.cent , conf.cent }},
107+ #define COL_HIST_MC_MAP (conf ) \
108+ {kTruePosZVsPosZ , {conf.vtxZ , conf.vtxZ }}, \
109+ {kTrueCentVsCent , {conf.cent , conf.cent }}, \
110+ {kTrueMultVsMult , {conf.mult , conf.mult }},
108111
109112template <typename T>
110113auto makeColHistSpecMap (const T& confBinningAnalysis)
@@ -253,8 +256,9 @@ class CollisionHistManager
253256 void initMc (std::map<ColHist, std::vector<o2::framework::AxisSpec>> const & Specs)
254257 {
255258 std::string mcDir = std::string (McDir);
256- mHistogramRegistry ->add (mcDir + getHistNameV2 (kTrueMultVsMult , HistTable), getHistDesc (kTrueMultVsMult , HistTable), getHistType (kTrueMultVsMult , HistTable), {Specs.at (kTrueMultVsMult )});
259+ mHistogramRegistry ->add (mcDir + getHistNameV2 (kTruePosZVsPosZ , HistTable), getHistDesc (kTruePosZVsPosZ , HistTable), getHistType (kTruePosZVsPosZ , HistTable), {Specs.at (kTruePosZVsPosZ )});
257260 mHistogramRegistry ->add (mcDir + getHistNameV2 (kTrueCentVsCent , HistTable), getHistDesc (kTrueCentVsCent , HistTable), getHistType (kTrueCentVsCent , HistTable), {Specs.at (kTrueCentVsCent )});
261+ mHistogramRegistry ->add (mcDir + getHistNameV2 (kTrueMultVsMult , HistTable), getHistDesc (kTrueMultVsMult , HistTable), getHistType (kTrueMultVsMult , HistTable), {Specs.at (kTrueMultVsMult )});
258262 }
259263
260264 template <typename T>
@@ -290,8 +294,9 @@ class CollisionHistManager
290294 return ;
291295 }
292296 auto mcCol = col.template fMcCol_as <T2 >();
293- mHistogramRegistry ->fill (HIST (McDir) + HIST (getHistName (kTrueMultVsMult , HistTable)), mcCol.mult (), col.mult ());
297+ mHistogramRegistry ->fill (HIST (McDir) + HIST (getHistName (kTruePosZVsPosZ , HistTable)), mcCol.posZ (), col.posZ ());
294298 mHistogramRegistry ->fill (HIST (McDir) + HIST (getHistName (kTrueCentVsCent , HistTable)), mcCol.cent (), col.cent ());
299+ mHistogramRegistry ->fill (HIST (McDir) + HIST (getHistName (kTrueMultVsMult , HistTable)), mcCol.mult (), col.mult ());
295300 }
296301
297302 o2::framework::HistogramRegistry* mHistogramRegistry = nullptr ;
0 commit comments