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).
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of Alexis Cothenet
Sent: Wednesday, April 06, 2005 9:12 AM
To: roottalk_at_pcroot.cern.ch
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:
info1
Scanning info for tree1
info2
Scanning info for tree2
etc...
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.
Regards,
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