Hi I have a histogram(h1) inside data2.root, i want to save some part of this histogram with specific range (-14 to -7) with the same binning, how to do that? I am attaching root file which contains this histogram. Thanks
ROOT Version: 6.24/06 Platform: Ubuntu data2.root (6.6 KB)
Compiler: Not Provided
auto f1 = new TFile("data2.root"); h1->Draw() h1->GetXaxis()->SetRangeUser(-14,-7) auto f = new TFile("data3.root", "CREATE"); h1->Write()
@couet You save the WHOLE histogram and only set a zoom “viewing range” on the x-axis.
Yes, thats the simplest because: