Hi all;
I want to rebin my histogram, I have the following lines of code below, the rebin does not work:
warning: implicit conversion from ‘double’ to ‘Int_t’ (aka ‘int’) changes value from 0.5 to 0 [-Wliteral-conversion]
h_0->Rebin(0.5);
~~~~~ ^~~
Applying ATLAS style settings…
Warning in TCanvas::Constructor: Deleting canvas with same name: can
Error in TH1F::Rebin: Illegal value of ngroup=0
TFile *f_0 = new TFile("myfile.root");
TH1F h_0 = (TH1F)gDirectory->Get(“h_pt_mu1”);
h_0->Rebin(0.5);