Difference between revisions of "Monitoring plugins in offline environment"
From GlueXWiki
m |
|||
(17 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
# Install Python and SCONS on your system. | # Install Python and SCONS on your system. | ||
− | # Install the standard offline analysis software, including JANA and auxiliary packages required (Xerces, etc). | + | # Install the standard offline analysis software, including JANA and auxiliary packages required (Xerces, ROOT, etc). |
− | # Install the online SCONS-based build scripts | + | # Install the online SCONS-based build scripts on your system: |
− | #* | + | #* $ svn co https://halldsvn.jlab.org/repos/trunk/online/packages/buildScripts/scripts |
− | + | # Set some build system environment variables. On the CUE system you would: | |
− | # Set some build system environment variables. On the CUE system | + | |
#* $ setenv PYTHONPATH /group/halld-online/Software/builds/devel/buildScripts | #* $ setenv PYTHONPATH /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/ | + | #* $ svn co https://halldsvn.jlab.org/repos/trunk/online/packages/monitoring/src/plugins |
− | # | + | # This installs the complete set of plugins for all detectors, delete any directory you are not interested in. |
− | # Build the plugins | + | # Build the plugins and install the shared object files into online_monitoring/<arch>/plugins. This compiles without the "--std=c++11" compiler flag, default is to include the flag. From anywhere in the online_monitoring directory tree: |
#* $ scons -D C++11=N install | #* $ scons -D C++11=N install | ||
− | # Add the plugin directory to the JANA plugin path | + | # Add the plugin directory to the JANA plugin path. Execute something like: |
− | #* $ setenv JANA_PLUGIN_PATH | + | #* $ setenv JANA_PLUGIN_PATH <somedir>/online_monitoring/<arch>/plugins:"$JANA_PLUGIN_PATH" |
# Run hd_root, something like: | # 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 | + | #* $ HALLD_HOME/bin/Linux_RHEL6-x86_64-gcc4.4.6/hd_root -PPLUGINS="BCAL_online,CDC_online,FCAL_online,FDC_online" hdgeant_smeared.hddm |
+ | # This creates hd_root.root, for your viewing pleasure. | ||
+ | # To uninstall the plugins: | ||
+ | #* $ scons -D install -c | ||
+ | |||
+ | |||
+ | Useful scons options: | ||
+ | * To print full build details, add: | ||
+ | ** SHOWBUILD=1 | ||
+ | * To compile but not install: | ||
+ | ** $ scons -D C++11=N | ||
+ | * To compile/install including "--std=c++11": | ||
+ | ** $ scons -D install |
Latest revision as of 17:36, 22 August 2014
It is clearly convenient to develop online monitoring plugins in an offline environment at your home institution. Below I describe how to do this.
- Install Python and SCONS on your system.
- Install the standard offline analysis software, including JANA and auxiliary packages required (Xerces, ROOT, etc).
- Install the online SCONS-based build scripts on your system:
- Set some build system environment variables. On the CUE system you would:
- $ setenv PYTHONPATH /group/halld-online/Software/builds/devel/buildScripts
- Check out the online monitoring package. The plugins reside in src/plugins:
- This installs the complete set of plugins for all detectors, delete any directory you are not interested in.
- Build the plugins and install the shared object files into online_monitoring/<arch>/plugins. This compiles without the "--std=c++11" compiler flag, default is to include the flag. From anywhere in the online_monitoring directory tree:
- $ scons -D C++11=N install
- Add the plugin directory to the JANA plugin path. Execute something like:
- $ setenv JANA_PLUGIN_PATH <somedir>/online_monitoring/<arch>/plugins:"$JANA_PLUGIN_PATH"
- 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
- This creates hd_root.root, for your viewing pleasure.
- To uninstall the plugins:
- $ scons -D install -c
Useful scons options:
- To print full build details, add:
- SHOWBUILD=1
- To compile but not install:
- $ scons -D C++11=N
- To compile/install including "--std=c++11":
- $ scons -D install