Get and compile RecPack




The code can be download from a git repository:

git clone http://next.ific.uv.es:8888/sw/RecPack.git

To compile the code, you should first make sure that CLHEP is installed and that the the CLHEPSYS environment variable is set:

> export CLHEPSYS="folder of CLHEP in your system"

Now go into the RecPack/recpack folder, where the RecPack source code is:

> cd RecPack/recpack

Now you can create the Makefile:

> cmake .

and compile:

> make

RecPack provides a ROOT geometry interface under the directory RecPack/recpack/root. To compile this interface the RecPack library must be compiled against the ROOT external package. By default this part of the libbary is not compiled to avoid a dependency on ROOT. Some of the examples use this ROOT interface and compile the root part of the recpack library. In this case you should first make sure than ROOT is installed and that is visible to your system:

> export ROOTSYS="folder of ROOT in your system"