Plotting several variables by using array

Hi Wile,

I tried with tr->Project, but it is plotting empty histograms. I am attaching the macro. Please have a look.

Thanks,
Deepakmultivar3.cc (1.6 KB)

Try (TTree::Project does not draw anything):

      tr->Draw(Form("%s >> h_bs", varmass[i]), Q[j]);

Search for “>>” in the TTree::Draw method description.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.