Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
tutorials
eic_tutorial
Commits
23fc7392
Commit
23fc7392
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Explain ATHENA_PREFIX
parent
63ea1593
No related branches found
No related tags found
No related merge requests found
Pipeline
#10159
passed
3 years ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/docs/getting-started/quickstart.mdx
+12
-5
12 additions, 5 deletions
src/docs/getting-started/quickstart.mdx
src/docs/part1/simple_detector.md
+1
-1
1 addition, 1 deletion
src/docs/part1/simple_detector.md
with
13 additions
and
6 deletions
src/docs/getting-started/quickstart.mdx
+
12
−
5
View file @
23fc7392
...
@@ -19,15 +19,15 @@ most recent version as of January 2021.
...
@@ -19,15 +19,15 @@ most recent version as of January 2021.
*For an optimal experience, we strongly recommend you to use singularity 3 or later for this tutorial.
*For an optimal experience, we strongly recommend you to use singularity 3 or later for this tutorial.
Use (very) old versions of singularity (e.g. 2.6.x) at your own risk!*
Use (very) old versions of singularity (e.g. 2.6.x) at your own risk!*
##
T
he EIC Software Container (jug_xl)
##
Step 1: Setup t
he EIC Software Container (jug_xl)
### Step 1: Create a local directory that you want to work in, e.g., `~/eic`
### Step 1
a
: Create a local directory that you want to work in, e.g., `~/eic`
```bash
```bash
mkdir ~/eic
mkdir ~/eic
cd ~/eic
cd ~/eic
```
```
### Step
2
: Deploy the containerized environment and launch a shell
### Step
1b
: Deploy the containerized environment and launch a shell
Execute the following line in your terminal to setup your environment in your sandbox
Execute the following line in your terminal to setup your environment in your sandbox
directory. This will install the latest stable container and place a script called
directory. This will install the latest stable container and place a script called
...
@@ -42,7 +42,14 @@ Now you can launch a shell in our development environment:
...
@@ -42,7 +42,14 @@ Now you can launch a shell in our development environment:
./eic-shell
./eic-shell
```
```
### Step 3: Clone the repos
Note that starting `eic-shell` will set the environment variable `ATHENA_PREFIX` to point
to the `local` subdirectory of your chosen working directory (e.g.,`~/eic/local`.
This will then automatically add `$ATHENA_PREFIX/lib` to your `LD_LIBRARY_PATH` in the
container. This means that anything you install to the `ATHENA_PREFIX` will be
automatically available in your environment. This is important for DD4hep to find your
custom installed detector plugins.
## Step 2: Clone the repos
There are 2 repos you need:
There are 2 repos you need:
* IP6 (IP-specific components)
* IP6 (IP-specific components)
...
@@ -57,7 +64,7 @@ ln -s ../ip6/ip6 athena/ip6
...
@@ -57,7 +64,7 @@ ln -s ../ip6/ip6 athena/ip6
In part 1 of the tutorial we will be mostly using files from a tutorial repo.
In part 1 of the tutorial we will be mostly using files from a tutorial repo.
Later on, we will com back to these detector repositories.
Later on, we will com back to these detector repositories.
##
#
Step
4
: Looking at the geometry
## Step
3
: Looking at the geometry
Before moving on to part 1, let's generate the geometry in a root file:
Before moving on to part 1, let's generate the geometry in a root file:
...
...
This diff is collapsed.
Click to expand it.
src/docs/part1/simple_detector.md
+
1
−
1
View file @
23fc7392
...
@@ -48,7 +48,7 @@ directories named compact (but not always).
...
@@ -48,7 +48,7 @@ directories named compact (but not always).
### Compile the detector library
### Compile the detector library
```
bash
```
bash
cmake
-B
build
-S
.
-DCMAKE_INSTALL_PREFIX
=
../local/
-DCMAKE_CXX_STANDARD
=
17
cmake
-B
build
-S
.
-DCMAKE_INSTALL_PREFIX
=
$ATHENA_PREFIX
-DCMAKE_CXX_STANDARD
=
17
cmake
--build
build
-j4
--
install
cmake
--build
build
-j4
--
install
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment