Skip to content
Snippets Groups Projects
Commit c7b73ed4 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: getting-started/quickstart.mdx

parent b2c9dcca
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,6 @@ The programmer is assumed to be familiar with ...@@ -12,7 +12,6 @@ The programmer is assumed to be familiar with
- C++, python, and shell scripting - C++, python, and shell scripting
Create an account on https://eicweb.phy.anl.gov and configure your account. Create an account on https://eicweb.phy.anl.gov and configure your account.
This tutorial requires that [singularity](singularity) is installed This tutorial requires that [singularity](singularity) is installed
...@@ -28,7 +27,7 @@ following: ...@@ -28,7 +27,7 @@ following:
git clone https://eicweb.phy.anl.gov/containers/eic_container.git git clone https://eicweb.phy.anl.gov/containers/eic_container.git
mkdir eic_container/build mkdir eic_container/build
cd eic_container/build cd eic_container/build
cmake ../. -DCMAKE_INSTALL_PREFIX=$HOME/stow/eic_container_1.0.2 cmake ../. -DCMAKE_INSTALL_PREFIX=$HOME/stow/eic_container_1.0.4
make -j4 install make -j4 install
``` ```
...@@ -55,11 +54,37 @@ you must make sure to set `$PATH` and `$LD_LIBRARY_PATH` to point to the ...@@ -55,11 +54,37 @@ you must make sure to set `$PATH` and `$LD_LIBRARY_PATH` to point to the
development build's installation prefix first. Here we assume your development development build's installation prefix first. Here we assume your development
builds are being installed into `$HOME/stow/development` builds are being installed into `$HOME/stow/development`
A simple setup script will make sure A simple setup script will make sure things are in order
```bash ```shell title=setup.sh
module load eic_container
export $PATH=$HOME/stow/development/bin:$PATH export $PATH=$HOME/stow/development/bin:$PATH
export $LD_LIBRARY_PATH=$HOME/stow/development/lib:$HOME/stow/development/lib64:$LD_LIBRARY_PATH export $LD_LIBRARY_PATH=$HOME/stow/development/lib:$HOME/stow/development/lib64:$LD_LIBRARY_PATH
export $ROOT_INCLUDE_PATH=$HOME/stow/development/include:$ROOT_INCLUDE_PATH export $ROOT_INCLUDE_PATH=$HOME/stow/development/include:$ROOT_INCLUDE_PATH
``` ```
## Detector Library
The
```bash
source setup.sh
module load eic_container
git clone https://eicweb.phy.anl.gov/EIC/NPDet.git
cd NPDet/examples
print_materials gem_tracker_disc.xml 0 0 0 100 0 100
```
The last line dumps the materials encounter along a line defined by two points.
```bash
cd ..
mkdir NPDet/build && cd NPDet/build
cmake ../. -DCMAKE_INSTALL_PREFIX=$HOME/stow/development
make -j4 install
cd ../examples
print_materials gem_tracker_disc.xml 0 0 0 100 0 100
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment