I have a question regarding taking the projection along Y axis of a 1D histogram. I have a 1D histogram where I give the yield of particle along the pT (X axis). I want to get a histogram when I project it to Y axis.
I tried doing TH1D* PhiY = pT_hist -> ProjectionY(); But I am getting the error like,
Can’t call TH1D::ProjectionY() in current scope
** pT_hist is also a 1D histogram with different pT binning along X axis.
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided