I am trying to plot Delta N/Delta M from the histogram in this hmass_copy then normalize but getting error with GetBinContent.- Function GetBinContent(ibins) is not defined in current scope
Int_t ibins;
void mass_fit(const char fname = “h_mass.root”)
{
// Get file and get histogram
TFile *file = TFile::Open(“h_mass.root”);
TH1F hmass_copy = (TH1F)file ->Get(“h_mass”)->Clone(“hmass_copy”);
TFile *myfile = new TFile(“hnorm.root”,“RECREATE”);
hmass_copy-> norm/GetBinContent(ibins));
//cout<<“Initial check:”<<endl;
First plot of number vs mass. Then want the plot (derivative number)/(derivative mass), This I use to find the number of particles.(Already completed). was looking for 1.0/(hmass_copy->GetBinWidth(1));