@@ -261,6 +261,7 @@ struct FlowGenericFramework {
261261 nchbinning.push_back (nchskip * i + o2::analysis::gfw::nchlow + 0.5 );
262262 }
263263 AxisSpec nchAxis = {nchbinning, " N_{ch}" };
264+ AxisSpec bAxis = {200 ,0 ,20 , " #it{b}" };
264265 AxisSpec t0cAxis = {70 , 0 , 70000 , " N_{ch} (T0C)" };
265266 AxisSpec t0aAxis = {200 , 0 , 200 , " N_{ch}" };
266267 AxisSpec multpvAxis = {4000 , 0 , 4000 , " N_{ch} (PV)" };
@@ -281,6 +282,7 @@ struct FlowGenericFramework {
281282 registry.add (" MCGen/before/pt_gen" , " " , {HistType::kTH1D , {ptAxis}});
282283 registry.add (" MCGen/before/phi_eta_vtxZ_gen" , " " , {HistType::kTH3D , {phiAxis, etaAxis, vtxAxis}});
283284 registry.addClone (" MCGen/before/" , " MCGen/after/" );
285+ registry.add (" MCGen/impactParameter" ," " ,{HistType::kTH2D ,{{bAxis,nchAxis}}});
284286 }
285287 if (doprocessMCReco || doprocessData || doprocessRun2) {
286288 registry.add (" trackQA/before/phi_eta_vtxZ" , " " , {HistType::kTH3D , {phiAxis, etaAxis, vtxAxis}});
@@ -1101,6 +1103,7 @@ struct FlowGenericFramework {
11011103 {
11021104 float centrality = -1 ;
11031105 int run = 0 ;
1106+ registry.fill (HIST (" MCGen/impactParamter" ), mcCollision.impactParameter (),mcParticles.size ());
11041107 processCollision<kGen >(mcCollision, mcParticles, centrality, run);
11051108 }
11061109 PROCESS_SWITCH (FlowGenericFramework, processOnTheFly, " Process analysis for MC on-the-fly generated events" , false );
0 commit comments