RE: ScanRedirected

From: Alexis Cothenet <cothenet_at_cppm.in2p3.fr>
Date: Wed, 6 Apr 2005 20:21:33 +0200 (CEST)

Hi Philippe,

Thank you for your answer. In fact, i'd like to create pure win32 executables with my code and so i'd like to avoid shell commands :-( Do you think it would be possible to have an option for choosing an update or overwriten file for scanning in the future ?

Regards,
Alexis

On Wed, 6 Apr 2005, Philippe Canal wrote:

> 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 - 20:21:41 MEST

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