// root macro // { TH1F * h4 = new TH1F("h4","Daten",10,0,10); ifstream inp; inp.open("daten.dat"); double x; while ( !(inp >> x ) == 0 ) { cout << x << endl; h4->Fill( x-0.5 ); } h4->Draw(); }