EdepSim

From DUNE
Revision as of 20:34, 3 November 2017 by BrettViren (talk | contribs) (Created page with "<code>edep-sim</code> is a ROOT/Geant4 based tracking simulation library and command line application. = Source = https://github.com/ClarkMcGrew/edep-sim = Spack Install =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

edep-sim is a ROOT/Geant4 based tracking simulation library and command line application.

Source

https://github.com/ClarkMcGrew/edep-sim

Spack Install

A Spack build package exists for edep-sim that will build also ROOT and Geant4 and the rest of its externals. Here is how to exercise it:

Prerequisites

The edep-disp component requires ROOT's EVE support which requires some GL libraries which do not yet have Spack builders. Installing these libraries is up to you. On Debian-based systems something like:

sudo apt install libglu1-mesa-dev libglew-dev

should suffice.

Install

The builder is currently in a Spack fork. These commands will get that fork and to the full build


git clone https://github.com/brettviren/spack.git
source spack/share/spack/setup-env.sh
spack install edepsim

Run

Spack puts the results of building each package into its own separate installation area. The "view" feature is useful to bring all packages together into one area. In the example, it will create /path/to/view. Select any directory you wish which is writable.

spack view add -i /path/to/view edepsim
PATH=/path/to/view/bin:$PATH
LD_LIBRARY_PATH=/path/to/view/lib:$LD_LIBRARY_PATH  

Now, run the programs

edep-sim --help
edep-disp --help