|
2 | 2 |
|
3 | 3 | ## Prerequisites
|
4 | 4 |
|
5 |
| -If you are using mac or linux, the steps are relatively straightforward. For windows machines I'm not sure what to do. These are the things you need to install: |
| 5 | +For the project you will need an envinronment that allows you to compile and run different types of software. In the student room there are linux machines that you can use. If you prefer to use your windows computer, you will need to run linux on a virtual machine or use docker (more modern). |
6 | 6 |
|
7 |
| -* C++ compiler: on mac you could install xcode (found on App Store) to get the g++ compilers |
| 7 | +### Docker |
| 8 | +First you have to install docker on your laptop. For windows you can download it here: https://docs.docker.com/docker-for-windows/ |
8 | 9 |
|
9 |
| -## JetToyHI installation |
| 10 | +Once you have installed docker you will have to install some libraries. Follow these instructions that have you can type into the terminal: |
| 11 | +```sh |
| 12 | +docker pull ubuntu #this gets latest ubuntu image (bionic, 18.04) |
10 | 13 |
|
11 |
| -### Install ROOT |
12 |
| -The easiest is to just grep a precompiled version from the root website (take ROOT6) |
13 |
| -* https://root.cern.ch/content/release-61404 |
| 14 | +docker run -i -t ubuntu /bin/bash |
| 15 | + |
| 16 | +apt update -y |
| 17 | + |
| 18 | +apt install -y vim wget curl libcurl4-gnutls-dev build-essential gfortran cmake libmysqlclient-dev xorg-dev libglu1-mesa-dev libfftw3-dev libssl1.0 libssl1.0-dev libxml2-dev git unzip python-pip autoconf automake autopoint texinfo gettext libtool libtool-bin pkg-config bison flex libperl-dev libbz2-dev libboost-all-dev swig liblzma-dev libnanomsg-dev libyaml-cpp-dev rsync lsb-release unzip environment-modules |
| 19 | + |
| 20 | +apt-get install xutils-dev libgsl23 libtbb-dev |
| 21 | + |
| 22 | +apt-get install apt-utils libssl-dev |
| 23 | +apt-get install libgsl0-dev |
| 24 | + |
| 25 | +pip install matplotlib numpy certifi ipython==5.1.0 ipywidgets ipykernel notebook metakernel pyyaml |
| 26 | +``` |
14 | 27 |
|
15 |
| -### Computers in student room |
16 |
| -You can also use the computers in the student room on which a C++ compiler and ROOT are already installed. To use these computers login with your solis ID. Then open a terminal and type: |
| 28 | +### Virtual Machine |
| 29 | +If you prefer to use a virtual machine running ubuntu, use google to find one that you like. Afterwards you will have to install the same librarie as listed above for docker. Note that you will have to put `sudo` in front of all the `apt` commands. |
| 30 | + |
| 31 | +### MacOS |
| 32 | +On a mac there is no need for a virtual machine or docker. But you will need a C++ compiler that you can get by installing xcode to be found in the AppStore. |
| 33 | + |
| 34 | +## JetToyHI installation |
| 35 | + |
| 36 | +Start with creating a directory in which you want to install the software that you will use for this project. For example: |
17 | 37 | ```sh
|
18 |
| -ali |
19 |
| -alienv |
| 38 | +mkdir soft |
20 | 39 | ```
|
21 |
| -To test if ROOT now works type |
| 40 | +Now go into the created directory: |
| 41 | +```sh |
| 42 | +cd soft |
| 43 | +``` |
| 44 | + |
| 45 | +### Install ROOT |
| 46 | +The easiest is to just grep a precompiled version from the root website https://root.cern.ch/content/release-61404 (take ROOT6). You can do this directly from the terminal: |
22 | 47 | ```sh
|
23 |
| -root |
| 48 | +wget https://root.cern.ch/download/root_v6.14.04.Linux-ubuntu18-x86_64-gcc7.3.tar.gz |
| 49 | +tar xvfz root_v6.14.04.Linux-ubuntu18-x86_64-gcc7.3.tar.gz |
| 50 | +rootsetup=$PWD/root/bin/thisroot.sh |
| 51 | +. $rootsetup |
| 52 | +echo $rootsetup >> ~/.bashrc |
24 | 53 | ```
|
25 | 54 |
|
26 | 55 | ### Install PYTHIA8
|
@@ -99,7 +128,7 @@ Click on `jetTree` and play around.
|
99 | 128 | * Fork the original repository. Go to: https://github.com/mverwe/JetToyHI and click 'Fork' in the upper right corner.
|
100 | 129 | * Instead of cloning the original repository as shown above, clone your own.
|
101 | 130 | * After committing your changes to your own branch, push them to your own fork. Don't know how to do this, ask your colleages or use google which might bring you here https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
|
102 |
| -* Do a pull request once you have finished your developements. |
| 131 | +* Do a pull request once you have finished your developments. |
103 | 132 |
|
104 | 133 |
|
105 | 134 | ## Samples
|
|
0 commit comments