Histogram from Ttree produces a blank plot

you should name the histogram:

TH2F *h2 = new TH2F("h2","h2",100,1195,1275,100,400,500)
1 Like