I am writing a script in which i am trying to rebin my histograms and draw them in “colz text e” draw option. At the same time i want to evaluate this formula
nt3 = f*nt2/(1-f)
I am not doing the job correctly. I did what I understand. Please help me to solve this issue.
I am attaching my script and root file.
Note: you cannot change histogram binning the way you try it. You need to use the “correct” binning when you create your histograms (which are then stored in your “tt_final_new.root” file).
Thank you.
Is there is some other way to change the bining of the histograms. Because at that instance I cannot change the binning due to long running jobs, it will take much time to do it again.
I modified the “nt2.cc” macro in my previous post. it includes some “rebinning” now (this is the closest to what you want, which can be achieved with your current histograms).
I am again facing difficulty in binning the histograms like above mentioned plot. When I will try to rebin x and y axis seperately it will not plot the data in the respective bins.
bin_x={10,20,40,75,100,150}
bin_y={1,1.5,2,2.5,3}
It just give me the points in these bins. I want the color plot like above.
Kindly help me to do it.
I have used the script sent by you. I changed the binning like
" int nxg = 8, nyg = 30; // how many bins to merge
int nxf = 2, nyf = 0; // the first bin to use / draw
int nxl = 3, nyl = -2; // the last bin to use / draw
"
I am getting the plot like below. I want to change y-axis 0-3 (0-1, 1-2, 2-3)with equal bin size (if variable binning is not possibe). How I would get this.