void readcolumn7() { TCanvas *tc = new TCanvas("ta","tb",1000,700); // Open the CSV file FILE* file = fopen("pedestal-16-01.csv", "r"); char line[1024]; // Skip the first line (header) fgets(line, 1024, file); double column7[1000]; int n = 0; // Read the data from the CSV file while (fgets(line, 1024, file)) { double x; int y; sscanf(line, "%*f,%*f,%*f,%*f,%*f,%*f,%lf,%d", &x, &y); column7[n++] = x; } // Do something with the data in column 7 for (int i = 0; i < n; i++) { cout << column7[i] << endl; } fclose(file); double deltax = x[1]-x[0]; double xmax = x[0]; double xmin = x[i-1]; double nbin = x; cout <Fill(x[k]); } } */ histo->SetTitle("1"); histo->GetXaxis()->SetTitle("c)"); histo->GetYaxis()->SetTitle("number of events"); histo->Rebin(5); histo->Draw(""); }