To see the contents of a histogram I do:
newHisto5->Print(“all”);
This prints it to screen. Now I want to pipe the result into a file. The following doesn’t work:
newHisto5->Print(“all”); > file.dat
How should I do this in a macro?
Niels
To see the contents of a histogram I do:
newHisto5->Print(“all”);
This prints it to screen. Now I want to pipe the result into a file. The following doesn’t work:
newHisto5->Print(“all”); > file.dat
How should I do this in a macro?
Niels
Redirection to a file works only at the command line.
You can redirect the output of a macro to a file via
.x macro.C >x.log
Rene