ROOT: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
= Links =
= Links =


* [http://root.cern.ch ROOT at CERN]


= README =
= README =

Revision as of 10:57, 13 June 2012

Links

README

README file for ROOT users at TRIUMF

ROOT is the TRIUMF standard package for data visualization and analysis.

ROOT is an open-source project (LGPL) based at CERN and all ROOT users are encouraged to visit http://root.cern.ch for ROOT documentation, tutorials, examples and support (via ROOT forums and mailing lists).

The TRIUMF Data Acquisition Group provides limited support for ROOT as it is used in conjunction with data acquisition activities, the MIDAS data acquisition system, the ROOTANA package for analysing MIDAS data using ROOT and the ROODY graphical online histogram display tool.

ROOT binary kits used and supported by TRIUMF DAQ are located at /triumfcs/trshare/olchansk/root and all TRIUMF users are welcome to use them. These locally built binary kits have these differences from ROOT binary kits available from CERN:

compiled with "-O2 -g" to ease debugging of user applications, especially when they crash inside the ROOT libraries. ROOT sources are directly accessible to debugger programs and one can single-step through the ROOT libraries. compiled with CERNLIB support compiled with DCACHE support compiled with XML support compiled with ROOFIT support build the static library libroot.a build the extra libraries to enable use of STL in CINT. build ROOT with the "-rpath" option to avoid difficulties with inconsistent user LD_LIBRARY_PATH settings. To use the locally built ROOT do this: run "ls -l /triumfcs/trshare/olchansk/root" to see the available versions set ROOTSYS to /triumfcs/trshare/olchansk/root/root_VVV_AAA, where VVV is the desired version of ROOT and AAA is the desired computer architecture. For example, do "setenv ROOTSYS /triumfcs/trshare/olchansk/root/root_v5.12.00_SL40". Add ROOTSYS/bin to your PATH. Changing LD_LIBRARY_PATH is not required thanks to building ROOT with the "-rpath" compiler option. if you do not want to use the network copy on trshare, do copy the desired ROOT binary kit to your own disk (use "rsync -av" or "cp -rpv"), set ROOTSYS pointing to the new location, add ROOTSYS/bin to your PATH and ROOTSYS/lib to LD_LIBRARY_PATH.

ROOT on MacOS

  • download the 64-bin GCC ROOT binary kit from root.cern.ch
  • unpack, rename
  • setup ROOTSYS & co
  • (required for ROODY) if will use libHbook and minicern, install gfortran runtime libraries:
    • download gfortran-lion.tar.gz from http://hpc.sourceforge.net
    • unpack
    • copy required libraries into /usr/local/lib:
    • sudo /bin/cp -pv usr/local/lib/libgfortran.3.dylib /usr/local/lib/
    • sudo /bin/cp -pv usr/local/lib/libquadmath.0.dylib /usr/local/lib/