#includeIn this example, we create a 1D histogram with 50 bins using the ROOT TH1F class. We then fill the histogram with random numbers from a Gaussian distribution. Then we create a TCanvas object named 'canvas'. We set the canvas to be active (using the 'cd' method), and draw the histogram using the 'Draw' method. We then use the 'Range' method to set the x-axis range between -2 and 2, and the y-axis range between 0 and 300. Finally, we save the canvas as a PNG file. In summary, TCanvas Range is a feature provided by the ROOT C++ library for creating and handling graphical objects in a canvas. It allows the user to define the range of the x and y-axis to zoom in or out on the graphical object.#include void DrawHistogram() { TH1F* hist = new TH1F("hist", "Histogram", 50, -5, 5); for (int i = 0; i < 1000; i++) { hist->Fill(gRandom->Gaus()); } TCanvas* canv = new TCanvas("canvas", "Histogram Canvas", 600, 400); canv->cd(); hist->Draw(); canv->Range(-2,0,2,300); canv->SaveAs("histogram.png"); }