---+ CLHEP [[http://proj-clhep.web.cern.ch/proj-clhep/][CLHEP]] version 1.9.3.1 has been compiled and is available to LINUX desktop users over NFS. ---++ Using CLHEP CLHEP is currently installed for 32 bit sl4 desktops. ---+++ Setting up environmental variables Check your default shell by typing <pre> echo $SHELL </pre> If your default shell is <code>/bin/bash</code> then append <pre> if [ -z $CLHEP_DIR ]; then CLHEP_DIR=/data/ppe01/sl4x/i386/clhep/1.9.3.1 export CLHEP_DIR if [ -z "$LD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH=$CLHEP_DIR/lib export LD_LIBRARY_PATH else LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CLHEP_DIR/lib export LD_LIBRARY_PATH fi fi </pre> to <code>~/.bashrc</code> If your default shell is <code>/bin/tcsh</code> then append <pre> if ( ! $?CLHEP_DIR ) then setenv CLHEP_DIR /data/ppe01/sl4x/i386/clhep/1.9.3.1 if ( ! $?LD_LIBRARY_PATH ) then setenv LD_LIBRARY_PATH $CLHEP_DIR/lib else setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$CLHEP_DIR/lib fi fi </pre> to <code>~/.cshrc</code> ---+++ Building executables against CLHEP Compile C++ source code via statements of the form: <pre> g++ -I$(CLHEP_DIR)/include -c file.cc </pre> Link resulting objects by using a statement of the form: <pre> g++ -L$(CLHEP_DIR)/lib -lCLHEP -o exename </pre> -- Main.AndrewPickford - 13 Feb 2009
This topic: IT
>
CommonlyUsedSoftware
>
CLHEP
Topic revision: r1 - 2009-02-13 - AndrewPickford
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback