[Gate-users] Using ROOT -> ASCII; any way to pass command line variables?

Bryan McIntosh mcintoshster at gmail.com
Fri Feb 7 18:58:47 CET 2014


Hi everyone,

I've been using a ROOT script to convert output from ROOT format to ASCII
format for some time now, but have reached a point where I will be
generating a massive number of simulations. At the moment my file names are
hard-coded (my sample script rootout_scanner.C is available for viewing at
https://drive.google.com/file/d/0B62SIY5aoKjqMERKZGQ1SXN1ZTQ/edit?usp=sharing),
and I'd really like to be able to run the script in the following way from
the command line:

root -l -q -b [FILENAME] rootout_scanner.C

I've searched the ROOT documentation, but haven't been able to find a way
to pass in command line variables to ROOT. Has anyone else been able to do
this? Right now I'm using a clunky Bash script to rename files so that they
match the name in the ROOT script, and it's going to cause some issues as I
start multi-threading simulation runs.

Any insight you can offer would be a big help!

Cheers,

-Bryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140207/818ae2dd/attachment.html>


More information about the Gate-users mailing list