TH1D* myHist = new TH1D("myHist", "My Histogram", 100, 0, 10); myHist->FillRandom("gaus",1000); myHist->SetStats(kTRUE); myHist->SetStats(0); //Show only entries and mean
TH1D* myHist = new TH1D("myHist", "My Histogram", 100, 0, 10); myHist->FillRandom("gaus",1000); myHist->SetStats(kFALSE);In this example, a new TH1D object is created and filled with 1000 random Gaussian values. The SetStats function is used to disable the display of statistics for the histogram. Package Library: ROOT - A C++ framework for large scale data analysis and visualization.