Re: Scan to file

From: Rene BRUN <brun_at_mail.cern.ch>
Date: Sat, 22 Jan 2005 10:35:25 +0100 (MET)


Hi Luca,

There are 2 cases (C++ command or script) to send results (or append) to a file
 C++ command



  tree->SetScanField(0);
  tree->Scan(); > scan.log

 script



 .x myscript.C >myscript.log

Note the ";" in the first case.
See the first chapters in the Users Guide explaining this as well as appending to a file using the normal Unix conventions.

Rene Brun

On
Fri, 21 Jan 2005, Luca Grandi wrote:

> Hi all, which command do I have to use to put the output of a tree->Scan()
> into a file instead of the terminal window? I know how to do it with
> treeviewer (checking the Scan option) but I need to do it without using the
> treeviewer.
> Thanks
>
> Luca
>
>
Received on Sat Jan 22 2005 - 10:35:29 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET