Histogram without writing max and min?

Hi, for creating an histogram i use:

TH1D* hist = new TH1D(“hist”, “Istogramma”, nbins, min, max);

Is there something that allows you not to specify min and max?
I need it because i fill the histogram with random numbers so i don’t know a priori the min max and i don’t want to find it manually.

Search for “automatic” in the TH1 Class Reference.

Thank you, I will read meanwhile I have discovered that if you put the min>max it does automatically. But I don’t if this is 100 % correct

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.