TH1D *h = new TH1D("h", "Histogram", 100, 0, 100); h->SetYTitle("Counts");
TH1D *h = new TH1D("h", "Histogram", 100, 0, 100); h->SetYTitle("Counts per unit time");Overall, the SetYTitle method is a simple way to modify the Y-axis title of a TH1D histogram, and can be used for a variety of applications.