RE: ScanRedirected

From: Philippe Canal <>
Date: Wed, 06 Apr 2005 12:40:05 -0500

Hi Alexis,

Currently the file is always over-written by TTree::Scan. To implement what you need you might have to create several different files and concatenate them (using shell commands for example).


-----Original Message-----
From: [] On Behalf Of Alexis Cothenet
Sent: Wednesday, April 06, 2005 9:12 AM
Subject: [ROOT] ScanRedirected

Hi all,

I have seen there is a nice way to put the tree data in ascii file by doing
(TTreePlayer*)(T->GetPlayer()))->SetScanRedirect(true); T->Scan("*");

or doing:
  TTree *T = (TTree*) f.Get(l_namestructure);   ((TTreePlayer*)(T->GetPlayer()))->SetScanFileName("toto.txt");

But what i'd like to do is to add some information at the beginning and the end of the file in a loop.

So i'd like something like:

Scanning info for tree1
Scanning info for tree2


Is there a way to do that in a few simple root commands ?(so to append informations in ascii file toto.txt ? )

Thanks in advance.

Alexis Received on Wed Apr 06 2005 - 19:39:31 MEST

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