{ TH1F h2 ("h2", "histogram title", 100, -5.0 , 5.0); // Create a 1D histogram object of floats h2.FillRandom("gaus",10000); // Calls the FillRandom function of the TH1F class which fills the histogram with 10000 gaus-distributed events h2.Draw(); // Draw the histogram }