Building ROOT with MonALISA support
support is not default on distributed compiled versions of ROOT.
Download and build the following packages (or the latest versions from here
They both have standard configure scripts and will put the libs and headers in /usr/local/lib
If you would like them installed somewhere else (recommended!) do like in the example below:
tar -zxvf ApMon_cpp-2.2.2.tar.gz
Follow a similar procedure to build ml-gsoapclient
tar -zxvf ml-gsoapclient-1.0.0.tar.gz
Build ROOT from source
Since libMonaLisa.so is not part of the build on distributed compiled versions, you have to build ROOT from source.
Download the source code from http://root.cern.ch/
and follow the instructions for building. Monalisa is included in the root source distribution. To build the shared library just make sure that the configure options include the items below (paths are as per the example above, change them for your specific case):
./configure --enable-monalisa --with-monalisa-libdir=/home/kl/tools/monalisa/lib --with-monalisa-incdir=/home/kl/tools/monalisa/include
This should build all the ROOT libraries, including libMonaLisa.so
For use of the TMonaLisa classes, please read the comments of $ROOTSYS/monalisa/src/TMonaLisaWriter.cxx and TMonaLisaReader.cxx
and/or take a look at the example attached below.
Using the example sender
To try the example sender attached run:
root -b root_sender.C
The path to the ApMon
libraries compiled earlier,
in this example, must be added to your
for this to work.
Otherwise, when running the macro, root will complain of not finding
The datagram sent by the macro once it works can be seen by filtering
in the ML cache from http://mlr1.gla.ac.uk:7001/dump_cache.jsp
- 12 Jun 2007
- 28 Jun 2007
imported from http://nuclear.gla.ac.uk/twiki/bin/view.pl/Main/RootWithMonaLisa
- 23 Aug 2012