ROOT Version: 6.24/02
Compiler: Not Provided
I wish to create 4 different TCanvas and draw histograms on each of them separately. However, it seems like the position of canvas-> cd() matters which I have no idea why. The code and data are attached below:
analysis.C (2.7 KB)
pedestal2_2022022.root (1.6 MB)
When I run my code, C3 shows nothing but other canvases have the histogram drawn. However, once I moved all the canvas->cd() to the end of the code, everything works.
Why does this happen?