I want to draw histogram from these data But my hostogram has single column How can I improve my graph
My code is here:
{
TTree *t = new TTree("t", "a tree");
t->ReadFile("a.csv", "v/D");
Double_t v_min = t->GetMinimum("v");
Double_t v_max = t->GetMaximum("v");
Int_t n = 100;
Double_t dv = (v_max - v_min) / n;
#if 1 /* 0 or 1 */
TH1D *h = new TH1D("h", "a histogram",
(n + 2), (v_min - dv), (v_max + dv));
#else /* 0 or 1 */
TH1D *h = new TH1D("h", "a histogram",
n, (v_min - dv / n), (v_max + dv / n));
#endif /* 0 or 1 */
t->Project("h", "v");
h->Draw();
}
And my data is here
here