File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 44/// Basics of RHist, including filling and adding them.
55///
66/// \macro_code
7+ /// \macro_output
78///
89/// \date September 2025
910/// \author The ROOT Team
1718#include <random>
1819#include <variant>
1920
20- // It is currently not possible to directly draw RHist's , so this function implements an output with ASCII characters.
21+ // It is currently not possible to directly draw an RHist, so this function implements an output with ASCII characters.
2122static void DrawHistogram (const ROOT ::Experimental ::RHist < int > & hist )
2223{
2324 // Get the axis object from the histogram.
@@ -56,9 +57,9 @@ static void DrawHistogram(const ROOT::Experimental::RHist<int> &hist)
5657void hist001_RHist_basics ()
5758{
5859 // Create an axis that can be used for multiple histograms.
59- ROOT ::Experimental ::RRegularAxis axis (40 , {0 , 20 });
60+ ROOT ::Experimental ::RRegularAxis axis (40 , {0.0 , 20.0 });
6061
61- // Create a first histograms and fill with random values.
62+ // Create a first histogram and fill with random values.
6263 ROOT ::Experimental ::RHist < int > hist1 ({axis });
6364
6465 // Create a normal distribution with mean 5.0 and stddev 2.0.
Original file line number Diff line number Diff line change 1- \defgroup tutorial_histv7 Histogram tutorials
1+ \defgroup tutorial_histv7 RHist tutorials
22\ingroup tutorial_hist
33
44Examples demonstrating ROOT's histogram package.
You can’t perform that action at this time.
0 commit comments