You did not type the cp commands correctly … you missed the point at the end … the two cp command did not work. … you got error messages … type exactly what I send you … do not forget the “.” !
Side Note: I would be more efficient to copy paste the text you type instead of posting screen dumps … they are hard to read…
I think you need to learn a bit about the unix/linux commands. What you are asking here is very basic. You will encounter many problems if you do not master at least the minimum … and that’s really the minimum
I have a text file . I made a histogram with range from 200 to 2000 with bin 2 .
I want to read the text file and using fill () command want to sort the data into the histogram .
How do I do that ?
I have a txt file in which the data are separated by commas. I need to make a histogram with the X axis ranging from 0 to 205 with 205 bins :
{
TH1F *h = new TH1F("h", "example histogram",205.,0..,205.);
ifstream inp; double x;
inp.open("try.txt");
for (int i=1; i<=205; i++) {
inp >> x;
h->SetBinContent(i,x);
}
h->Draw();
}
But unfortunately, this doesn't work and I get an empty histogram. Can someone help me with this
[try.txt|attachment](upload://8XfgRDDcQREBjWjc37OTr7OKfn9.txt) (589 Bytes)
?