I have two column of data - Energy (x-axis) and Flux (y-axis) - in a txt file. I am trying to plot the histogram but I am having trouble in filling up a data. Please let me know the error in my code and how to deal with it. Thank you/
{
TNtuple t("Flux_data", "Data from DUNE", "Energy:Flux");
t.ReadFile("data.txt");
// manually created histogram
TH1F h("Flux_Hist","Energy vs. Flux", 100, 0, 40);
h.Fill("Energy");
h.Fill("Flux")
h.Draw();
}