Multiplicity vs centrality

    hprof2->Draw();

	double bincontent, bincenter;
	auto graph_hprof2 = new TGraph();
	for (int b=1; b<=hprof2->GetNbinsX(); b++) {
	   bincontent = hprof2->GetBinContent(b);
	   if (bincontent) {
	      bincenter = hprof2->GetBinCenter(b);
	      graph_hprof2->AddPoint(bincenter,bincontent);
	   }
	}
	graph_hprof2->Draw("L");
	c11->BuildLegend();

1 Like

Thank you very much! :grin:

1 Like

@couet Why not “b<=hprof2->GetNbinsX()” ?

1 Like

Yes you are right “<=” … typo… thanks