@@ -83,13 +83,15 @@ struct CalcNchUpc {
8383
8484 registry.add (" Ncharge" , " N_{charge}" , {HistType::kTH1D , {axisNch}});
8585 registry.add (" zVtx_all" , " zVtx_all" , {HistType::kTH1D , {axisVrtx}});
86+ registry.add (" Nch_vs_zVtx" , " Nch vs zVtx" , {HistType::kTH2D , {axisVrtx, axisNch}});
8687 }
8788
8889 void process (UDCollisionsFull::iterator const & collision, UdTracksFull const & tracks)
8990 {
9091 multiplicityNch (tracks.size ());
9192 registry.fill (HIST (" Ncharge" ), tracks.size ());
9293 registry.fill (HIST (" zVtx_all" ), collision.posZ ());
94+ registry.fill (HIST (" Nch_vs_zVtx" ), collision.posZ (), tracks.size ());
9395 }
9496};
9597
@@ -169,6 +171,7 @@ struct FlowCorrelationsUpc {
169171 registry.add (" pT" , " pT" , {HistType::kTH1D , {axisPtTrigger}});
170172 registry.add (" Nch" , " N_{ch}" , {HistType::kTH1D , {axisMultiplicity}});
171173 registry.add (" zVtx" , " zVtx" , {HistType::kTH1D , {axisVertex}});
174+ registry.add (" Nch_vs_zVtx" , " Nch vs zVtx" , {HistType::kTH2D , {axisVertex, axisMultiplicity}});
172175
173176 registry.add (" Trig_hist" , " " , {HistType::kTHnSparseF , {{axisSample, axisVertex, axisPtTrigger}}});
174177
@@ -380,6 +383,7 @@ struct FlowCorrelationsUpc {
380383 int runIndex = collision.runNumber ();
381384
382385 registry.fill (HIST (" eventcount" ), SameEvent); // because its same event i put it in the 1 bin
386+ registry.fill (HIST (" Nch_vs_zVtx" ), collision.posZ (), tracks.size ());
383387 fillYield (collision, tracks);
384388 fillCorrelations<CorrelationContainer::kCFStepReconstructed >(tracks, tracks, collision.posZ (), SameEvent, runIndex); // fill the SE histogram and Sparse
385389 }
0 commit comments