My code is the following:
{
TCanvas *c1 = new TCanvas();
h = new TH1D ("h", "Distanza Angolare; Distanza Angolare (deg); Conteggi; ", 100, 0, 5);
fstream file;
file.open("Dist_Ang.txt", ios::in);
double value;
while(1)
{
file >> value;
h->Fill(value);
if(file.eof()) break;
}
file.close();
TH1* hc = h->GetCumulative();
h->SetFillColor(kBlue);
hc->Draw();
}
How do I make it so that the y axis gives me the percentage of points instead of the number of points?