How is the current status of the Ruby extension module described at http://root.cern.ch/root/HowtoRuby.html?
Is it possible to create a new Root file and write histograms and trees on it from a Ruby script ?
I could not find any examples doing this.
There is no example for making a tree. Some info can be found on pages 30, 33 of ftp://root.cern.ch/root/RubyRoot.pdf file. For more details you might contact Elias Athanasopoulos who developped the Ruby extension module.
Thank you for the information. I found the example.
Fiiling a tree from Ruby seems rather awkward as compared to from Python.
I’d like to expect it will be more refined in the near future.
Hi Kame,
My knowledge about the documentation of Ruby interface comes from my responsibilities for the ROOT User’s Guide. As I have already mentioned, this interface was developed by Elias Athanasopoulos and might be useful if you send your comments/wishes to him.
Thank you, Ilka
You should use the TTree#via method to fill a TTree, but use it with caution, since the TTree support was a little bit hard to implement, completely transparently.
My apologies. As I saw in my sources, I found out that I have implemented TTree#via only in the static ruby-root, and not in the dynamic version which is included in the official ROOT distribution.
I can recall, that it is not hard enough to activate TTree#via in ROOT’s Ruby module. I just didn’t have the time to submit the patches (the code is actually in the CVS tree, but not enabled).
I will try to give it a shot, but I can’t promise a lot, since I have a deadline for a call for papers on 15 January; that is I’m quite busy these days.
Okay, I’ll wait until you have spare time.
I started to use scripting language recently, and wavering between Ruby and Python.
I’d rather choose Ruby if I its Root interface is enough usable.
Its japanese-friendliness is one reason:)
I am willing to help if you need manpower.
Yes. That will be certainly great, since I have very limited time for further development of this project, although, IMHO, it is very interesting and it can certainly catch up the Python module, if people show some interest.