@@ -933,7 +933,7 @@ struct DndetaMFTPbPb {
933933 hNevt->GetXaxis ()->SetBinLabel (2 , " Generated collisions" );
934934 if (doprocessSecondariesMCInlcusive) {
935935 registry.add ({" Events/EvtGenRec" , " ;status" , {HistType::kTH1F , {{3 , 0.5 , 3.5 }}}});
936- auto heff = registry.get <TH2 >(HIST (" Events/EvtGenRec" ));
936+ auto heff = registry.get <TH1 >(HIST (" Events/EvtGenRec" ));
937937 auto * h = heff->GetXaxis ();
938938 h->SetBinLabel (1 , " All generated" );
939939 h->SetBinLabel (2 , " All reconstructed" );
@@ -951,10 +951,11 @@ struct DndetaMFTPbPb {
951951 }
952952 if (doprocessSecondariesMCCentFT0C) {
953953 registry.add ({" Events/Centrality/EvtGenRec" , " ;status;centrality" , {HistType::kTH2F , {{3 , 0.5 , 3.5 }, centralityAxis}}});
954- auto heff = registry.get <THnSparse>(HIST (" Events/Centrality/EvtGenRec" ));
955- heff->GetAxis (0 )->SetBinLabel (1 , " All generated" );
956- heff->GetAxis (0 )->SetBinLabel (2 , " All reconstructed" );
957- heff->GetAxis (0 )->SetBinLabel (3 , " Selected reconstructed" );
954+ auto heff = registry.get <TH2>(HIST (" Events/Centrality/EvtGenRec" ));
955+ auto * h = heff->GetXaxis ();
956+ h->SetBinLabel (1 , " All generated" );
957+ h->SetBinLabel (2 , " All reconstructed" );
958+ h->SetBinLabel (3 , " Selected reconstructed" );
958959 registry.add ({" Tracks/Centrality/THnRecAmb" , " ; p_{T} (GeV/c); #eta; Z_{vtx} (cm); centrality" , {HistType::kTHnSparseF , {ptAxis, etaAxis, zAxis, centralityAxis}}});
959960 registry.add ({" Tracks/Centrality/THnRec" , " ; p_{T} (GeV/c); #eta; Z_{vtx} (cm); centrality" , {HistType::kTHnSparseF , {ptAxis, etaAxis, zAxis, centralityAxis}}});
960961 registry.add ({" Tracks/Centrality/THnRecNonAmb" , " ; p_{T} (GeV/c); #eta; Z_{vtx} (cm); centrality" , {HistType::kTHnSparseF , {ptAxis, etaAxis, zAxis, centralityAxis}}});
0 commit comments