Our software is developped on Ubuntu 14.04 (Trusty Tahr). It requires a few extra packages:
$ sudo apt-get install libconfig++-dev
ROOT: version 5.34.28, using git
Install the required packages (on Ubuntu 14.04):
$ sudo apt-get install dpkg-dev libX11-dev libXpm-dev libXft-dev libXext-dev
Download the ROOT source using git:
$ git clone http://root.cern.ch/git/root.git
$ cd root
$ git tag -l
$ git checkout -b v5-34-18 v5-34-18To be able to use pyroot, use:
$ ./configure --with-python-libdir=PATHTODIRCONTAINING_libpython2.7.so
$ make
Geant4: version 10, download and compile with cmake
For that you might need to install additional libraries:
$ sudo apt-get install libqt4-opengl-dev libxerces-c-dev
You will need to set a number of environment variable, as shown here: Environment Configuration script
The recommended way of using the software installing from source in git repository.
$ git clone git@llrgit.in2p3.fr:harpo/harpo.git
$ cd harpo/Code/Analysis/trunk
$ make installAlternatively, using cmake:
$ git clone git@llrgit.in2p3.fr:harpo/harpo.git
$ cd harpo/Code/Analysis/
$ mkdir build
$ cd build
$ cmake ../trunk/
$ makeIn that case, the executables will be put in build/bin.
The configure script will setup build environmet. You can find Environment Configuration script some lines you can append to your ./bashrc file. You will need to login again after adding the lines so that they are effective.
If you have installed Geant4, a simulation is available.
You can compile it like with cmake:
$ cd simbase/Geant4-build $ cmake -DGeant4_DIR=$G4INSTALL ../Geant4 $ make
A detailed description of the general framework can be found in the documentation of the main class HarpoReader and in the documentation of the other classes.
1.8.6