I’m trying to plot a histogram of two Tree objects using this code snippet
TH2F *h2 = new TH2F("","",100,1195,1275,100,400,500) Treename->Draw(fvar1:fvar2>>h2","","goff") h2->Draw("colz")
But the resultant histogram is a blank plot. but whenever I plot
it gives me a plot I expected so I know it is not blank. Any reason why I could be getting a blank plot using the earlier snippet. The reason I used the earlier snippet was to get finner binning in my plot and plotting tree objects as histograms was the easiest way for me.
ROOT Version: 6.16.00
Compiler: Not Provided