RootTalk


ROOT Discussion Forums

Ruby extension and TMVA

Discuss RooFit, TMVA and other statistical and mathematical tools here. Please post bug reports here.

Moderators: cranmer, rootdev

Ruby extension and TMVA

Postby idt209 » Mon Jan 19, 2015 22:15

Hi,

Does anyone know if ROOT's Ruby extension module supports access to TMVA? I couldn't find any example on

https://root.cern.ch/root/html534/guide ... onRuby.pdf

or

https://root.cern.ch/svn/root/trunk/tutorials/ruby/

but was hoping it would be possible.

Thanks,
Don
idt209
 
Posts: 2
Joined: Wed Sep 05, 2012 18:45

Re: Ruby extension and TMVA

Postby dpiparo » Tue Jan 20, 2015 9:36

Hi Don,

the Ruby bindings are rather general: if dictionaries are available for a set of C++ entities (and they are for TMVA), these entites are available to Ruby.
Unfortunately no tutorial was provided which mixed Ruby and TMVA yet.

Best,
Danilo
dpiparo
 
Posts: 357
Joined: Mon May 26, 2008 17:18
Location: CERN

Re: Ruby extension and TMVA

Postby idt209 » Thu Jan 22, 2015 14:39

Thanks Danilo. Would you happen to have a quick example (even a one-liner) on how to access TMVA's entities? I'm having trouble understanding how Ruby handles the TMVA namespace:

Code: Select all
$ irb
irb(main):001:0> require '/usr/lib/root/libRuby'
=> true
irb(main):002:0> TTree
=> TTree
irb(main):003:0> TTree.ancestors
=> [TTree, DRRAbstractClass, Object, Kernel, BasicObject]
irb(main):004:0> TMVA::Factory
Warning in <TClass::TClass>: no dictionary for class TMVA is available
NameError: uninitialized constant TMVA
   from (irb):4:in `const_missing'
   from (irb):4
   from /usr/bin/irb:12:in `<main>'
irb(main):005:0> TMVA
Warning in <TClass::TClass>: no dictionary for class TMVA is available
NameError: uninitialized constant TMVA
   from (irb):5:in `const_missing'
   from (irb):5
   from /usr/bin/irb:12:in `<main>'

Thanks!
idt209
 
Posts: 2
Joined: Wed Sep 05, 2012 18:45


Return to Stat and Math Tool Support

Who is online

Users browsing this forum: No registered users and 2 guests