TH1F *myHist = new TH1F("myHist", "", 100, 0, 10); myHist->SetTitle("My Histogram");
TH1F *myHist = new TH1F("myHist", "My Histogram", 100, 0, 10); myHist->SetTitle("New Title");This code creates a new TH1F object called myHist with 100 bins between 0 and 10 and sets the original title to "My Histogram", then changes the title to "New Title". The package library for TH1F is ROOT. ROOT is an open-source software framework used by high-energy physicists for data processing, statistical analysis, and graphical representation of large datasets. ROOT provides a wide range of tools and libraries for data visualization, histogramming, fitting, and simulation. TH1F is just one of the many classes available in ROOT.