[Gate-users] Using ROOT -> ASCII; any way to pass command line variables? (SOLVED)
Bryan McIntosh
mcintoshster at gmail.com
Mon Feb 10 17:10:10 CET 2014
Michaela's response worked well for me, as did one from Rok Pestotnik; his
syntax was:
root -l -q -b test.C"(\"myfile.dat\")"
Many thanks to both for their help!
-Bryan
On Mon, Feb 10, 2014 at 5:00 AM, <
gate-users-request at lists.opengatecollaboration.org> wrote:
> Send Gate-users mailing list submissions to
> gate-users at lists.opengatecollaboration.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
> or, via email, send a message with subject or body 'help' to
> gate-users-request at lists.opengatecollaboration.org
>
> You can reach the person managing the list at
> gate-users-owner at lists.opengatecollaboration.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gate-users digest..."
>
>
> Today's Topics:
>
> 1. Re: Using ROOT -> ASCII; any way to pass command line
> variables? (Gaens, Michaela)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 10 Feb 2014 09:04:36 +0000
> From: "Gaens, Michaela" <m.gaens at fz-juelich.de>
> To: Bryan McIntosh <mcintoshster at gmail.com>
> Cc: "<gate-users at lists.opengatecollaboration.org>"
> <gate-users at lists.opengatecollaboration.org>
> Subject: Re: [Gate-users] Using ROOT -> ASCII; any way to pass command
> line variables?
> Message-ID: <5AEFC879-DBE5-473C-8310-08E912B0CE63 at fz-juelich.de>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Bryan,
>
> I have had a similar problem once and I don't remember where I found it,
> but this is how I am doing it now:
> You can define parameters for the main function in you root macro
> (rootout_scanner), e.g.:
>
> void rootout_scanner( char* outname)
> {...}
>
> and then you can pass the parameters on the command line like this:
>
> root -l 'rootout_scanner.C( "rootout_scanner.dat" )'
>
> I hope this helps.
>
> Michaela
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140210/880239bd/attachment.html>
More information about the Gate-users
mailing list