You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/00-setup.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ exercises: 2
6
6
7
7
:::::questions
8
8
- How to install RAT-PAC2 on various systems?
9
+
:::::
10
+
9
11
::::::::::::::::::::::::::::::::::::: objectives
10
12
11
13
- Know how to run ratpac2 via a container.
@@ -20,7 +22,7 @@ Installing ratpac2 via containers is the easiest and most reproducible method of
20
22
#### Linux
21
23
Apptainer (formerly Singularity) can be easily installed in any linux system through a package manager. In most shared clusters, it should already be installed.
22
24
You can most likely install apptainer via:
23
-
```
25
+
```sh
24
26
apt install apptainer # ubuntu
25
27
dnf install apptainer # fedora or rhel/alma9
26
28
pacman -S apptainer # arch linux
@@ -35,15 +37,15 @@ MacOS is not supported by Apptainer. You can either read along to find the manua
35
37
36
38
### Running RAT from a container directly
37
39
We provide a container with the latest version of RAT-PAC2 built in. You can download the container via:
Afterwards, you can enter the container by running:
42
-
```
44
+
```sh
43
45
apptainer run ratpac-two.sif
44
46
```
45
47
which will drop you into a shell with rat installed. Or, if you can run rat directly by using:
46
-
```
48
+
```sh
47
49
apptainer run ratpac-two.sif rat macro_to_run.mac ...
48
50
```
49
51
::::::::::::::::::::::::::::::::::::: caution
@@ -55,29 +57,29 @@ There's some known issues with this way of running rat. Notably, it is very like
55
57
We also provide a container with all the dependencies required to compile RAT-PAC2 installed. This is the recommended way of installing RAT for the purpose of developing rat or poking around the code in general.
By default, apptainer should have mounted your current directory into the container. You can quickly check this by making sure that all the files in this container is still there by running `ls`.
70
72
71
73
At this point, you can double check that all the dependencies are indeed included in your current shell. Namely, you can run `which root` and `which geant4-config`. Both of them should point somewhere in `/rapac-setup/local`.
72
74
73
75
If all goes well, you can then compile RAT-PAC2 following the standard compilation procedure:
74
-
```
76
+
```sh
75
77
cd ratpac-two
76
78
make # add -j $(nproc) if you would like to compile on multiple cores (recommended).
77
79
source ratpac.sh
78
80
```
79
81
You can test that your installation is functional by running:
80
-
```
82
+
```sh
81
83
rat macros/validation/electron.mac
82
84
```
83
85
A simulation should be performed, and rat should exit with no error. You should now see a log file as well as `output.root` in your directory. Congratulations, you now have a working version of RATPAC2!
0 commit comments