[Halld-online] RootSpy macro testing

David Lawrence davidl at jlab.org
Fri Oct 17 23:32:25 EDT 2014


Hi All,

  I have committed some changes to RootSpy that should make testing plugins and in particular,
macros with RootSpy easier. It now has the ability to read histograms straight from a ROOT file 
and to extract macros from your plugin directly. I have updated the documentation at the wiki page
below. I’ve pasted the part most directly related the current development below that. 

https://halldweb1.jlab.org/wiki/index.php/Online_Monitoring_plugins


Using a ROOT file with the RootSpy GUI

This is simplest and probably the most useful method. The RootSpy GUI can open a file and register all histograms and trees it finds there. You can even attach your plugin so that any macros you've made are available for testing. To use this, you will first need to generate a ROOT file with your plugin. For example:
> hd_root -PPLUGINS=DAQ,TTab,FCAL_online rawevent_000002.evio
Next, run RootSpy, telling it the file and the plugin(s) to use:
> RootSpy -f hd_root.root -p FCAL_online
The macros and histograms should be available for plotting in the RootSpy GUI. Note that the histograms, trees, and macros are all internally placed in cMsg objects and then decoded by the RootSpy system using the same code that will be used if the cMsg was obtained from the network. A cMsg server is *not* required for using RootSpy with a ROOT file, but by using cMsg's internally, it is more likely to present in the same that it will in an online environment.

Regards,
-David

p.s.

 I have complied this latest version of RootSpy on the gluon cluster in /gluex/builds/devel/packages/RootSpy.
If you want to build you own version, it is probably easiest just to checkout the entire packages directory:
svn co https://halldsvn.jlab.org/repos/trunk/online/packages


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/halld-online/attachments/20141017/4f48d792/attachment.html 


More information about the Halld-online mailing list