Difference between revisions of "Monitoring plugins in offline environment"

From GlueXWiki
Jump to: navigation, search
(Created page with "Although the online monitoring plugins will run in the online monitoring/L3 farm, it is convenient to develop them in an offline environment at collaborator's home institutions. ...")
 
m
Line 9: Line 9:
 
#* $ setenv PYTHONPATH /group/halld-online/Software/builds/devel/buildScripts
 
#* $ setenv PYTHONPATH /group/halld-online/Software/builds/devel/buildScripts
 
#* $ setenv PERL5LIB /group/halld-online/Software/builds/devel/buildScripts
 
#* $ setenv PERL5LIB /group/halld-online/Software/builds/devel/buildScripts
#  Check out the online monitoring package.  The plugins reside in src/plugins.
+
#  Check out the online monitoring package.  The plugins reside in src/plugins:
 
#* $ svn co https://halldsvn.jlab.org/repos/trunk/online/packages/online_monitoring
 
#* $ svn co https://halldsvn.jlab.org/repos/trunk/online/packages/online_monitoring
 
# Delete any plugin directory you are not interested in.
 
# Delete any plugin directory you are not interested in.

Revision as of 15:43, 26 June 2013

Although the online monitoring plugins will run in the online monitoring/L3 farm, it is convenient to develop them in an offline environment at collaborator's home institutions. The following describes how to do this:

  1. Install Python and SCONS on your system.
  2. Install the standard offline analysis software, including JANA and auxiliary packages needed (Xerces, etc).
  3. Install the online SCONS-based build scripts:
  4. Set some build system environment variables. On the CUE system do as below, or similar if you installed the build scripts yourself:
    • $ setenv PYTHONPATH /group/halld-online/Software/builds/devel/buildScripts
    • $ setenv PERL5LIB /group/halld-online/Software/builds/devel/buildScripts
  5. Check out the online monitoring package. The plugins reside in src/plugins:
  6. Delete any plugin directory you are not interested in.
  7. Build the plugins (without the "--std=c++11" compiler flag, default is to include this flag) and install the shared object files into online_monitoring/<arch>/plugins. From anywhere in the online_monitoring directory tree:
    • $ scons -D C++11=N install
  8. Add the plugin directory to the JANA plugin path, execute something like:
    • $ setenv JANA_PLUGIN_PATH /group/halld-online/Users/ejw/builds/devel/packages/online_monitoring /Linux_RHEL6-x86_64-gcc4.4.7/plugins:"$JANA_PLUGIN_PATH"
  9. Run hd_root, something like:
    • $ HALLD_HOME/bin/Linux_RHEL6-x86_64-gcc4.4.6/hd_root PPLUGINS="BCAL_online,CDC_online,FCAL_online,FDC_online" hdgeant_smeared.hddm