Drawing multiple Histograms in one canvas using Dividing method

Here in this code I have a problem in constructing a method for Drawing a different graphs between direction of particles in X, Y and Z with Energy in 3 Histograms in one Canvas, I want all of them in one canvas using divided method

The Code is working correctly except the last part of “Draw Direction histogram”

DrawHistograms.cpp (4.5 KB) Out_run_0.root (122.4 KB)

Thanks in Advance

1 Like