<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>Hi All,</div><div><br></div><div> I have committed some changes to RootSpy that should make testing plugins and in particular,</div><div>macros with RootSpy easier. It now has the ability to read histograms straight from a ROOT file </div><div>and to extract macros from your plugin directly. I have updated the documentation at the wiki page</div><div>below. I’ve pasted the part most directly related the current development below that. </div><div><br></div><div><a href="https://halldweb1.jlab.org/wiki/index.php/Online_Monitoring_plugins">https://halldweb1.jlab.org/wiki/index.php/Online_Monitoring_plugins</a></div><div><br></div><div><br></div><div><h2 style="background-image: none; background-color: rgb(255, 255, 255); font-weight: normal; margin: 0px 0px 0.6em; overflow: hidden; padding-top: 0.5em; padding-bottom: 0.17em; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(170, 170, 170); font-size: 19px; font-family: sans-serif; line-height: 19px;"><span class="mw-headline" id="Using_a_ROOT_file_with_the_RootSpy_GUI">Using a ROOT file with the RootSpy GUI</span></h2><div style="margin: 0.4em 0px 0.5em; line-height: 19px; font-family: sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">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:</div><pre style="padding: 1em; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;">> hd_root -PPLUGINS=DAQ,TTab,FCAL_online rawevent_000002.evio
</pre><div style="margin: 0.4em 0px 0.5em; line-height: 19px; font-family: sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">Next, run <i>RootSpy</i>, telling it the file and the plugin(s) to use:</div><pre style="padding: 1em; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;">> RootSpy -f hd_root.root -p FCAL_online
</pre><div style="margin: 0.4em 0px 0.5em; line-height: 19px; font-family: sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); position: static; z-index: auto;">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.</div></div><div><br></div><div>Regards,</div><div>-David</div><div><br></div><div>p.s.</div><div><br></div><div> I have complied this latest version of RootSpy on the gluon cluster in /gluex/builds/devel/packages/RootSpy.</div><div>If you want to build you own version, it is probably easiest just to checkout the entire packages directory:</div><div>svn co <a href="https://halldsvn.jlab.org/repos/trunk/online/packages">https://halldsvn.jlab.org/repos/trunk/online/packages</a></div><div><br></div><div><br></div></body></html>