Skip to content
Snippets Groups Projects
INSTALL 2.86 KiB
/*****************************************************************************
 * Copyright (C) 2009-2010   this file is part of the NPTool Project         *
 *                                                                           *
 * For the licensing terms see $NPTOOL/Licence/NPTool_Licence                *
 * For the list of contributors see $NPTOOL/Licence/Contributors             *
 *****************************************************************************/

/*****************************************************************************
 * Original Author: N. de Sereville  contact address: deserevi@ipno.in2p3.fr *
 *                                                                           *
 * Creation Date  : 01/09/09                                                 *
 * Last update    :                                                          *
 *---------------------------------------------------------------------------*
 * Decription:                                                               *
 *      This file describes the installation procedure of the NPLib          *
 *---------------------------------------------------------------------------*
 * Comment:                                                                  *
 *                                                                           *
 *                                                                           *
 *****************************************************************************/

I) REQUIREMENTS
The GSL (Gnu Scientific Library) should be installed at this step as well as
a ROOT version with the MathMore module.
   + To install GSL, your distribution most likely provides a package. This is
     the case for Debian / Ubuntu / Fedora / Mac Os X for example.
   + To install ROOT's MathMore module, you have two options:
      + Install the ROOT binary which contains support for MathMore. 
      + Compile the ROOT source code with support for GSL (see this web page 
        http://root.cern.ch/drupal/content/installing-root-source at the
        GSL paragraph).

The working GSL environement is needed for the NPEnergyLoss.{h,cxx} library
in the Tools directory


II) BUILDING NPLIB
In order to build all the libraries of the NPLib module, use the two 
following commands:
	
   + configure
        This moves headers files to the include directory and compile
	the core libraries.
	One can specify a subset of detectors to compile, e.g:
		./compile must2 cats exogam plastic
	If no arguments are given, all detectors are considered

   + make
	Once this is done the headers of each subdirectory are copied to 
	the include directory and the shared libraries (*.so) associated 
	to each library are copied to the lib directory. If you are using 
	a Mac OS system a symbolic link *.dylib is done with respect to 
	each *.so library. The 'liblist' file used for linking NPS and NPA
        is created.