README.md 4.06 KB
Newer Older
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
1
2
3
4
# ALICE Open Data Blender animation

## Project Description

5
This project has the purpose of generating 3D animations of ALICE particle collision events, inside the LHC, using data obtained from CERN's Open Data Portal, which makes ESDs - Event Summary Data files, that contain information about such events - open and available for analysis.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
6

7
ESD files regarding the ALICE experiment can be found on http://opendata.cern.ch/search?page=1&size=20&experiment=ALICE, and they should be somehow referenced along the process, as explained further.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
8
9
10
11
12
13
14
15
16
17
18
19

The software that makes the animation is Blender, which is free and open source. Blender's 2.79b version should be downloaded for this project, and can be found on https://www.blender.org/download/releases/2-79/

Before starting, you must also clone this repository:
```bash
mkdir -p ~/alice
cd ~/alice
git clone https://git.cta.if.ufrgs.br/ALICE-open-data/alice-blender-animation.git
```

The animation making can be summarized in three basic steps:

20
21
22
1) Installing aliRoot;
2) Getting an ESD file;
3) Run script to process ESD data and generate Blender animations using its results.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
23
24
25

In case you are not conCERNed about the data being used for the animation and only wish to generate a standard one, skip to the Default Animation section below. For detailed steps on how to make the animation from ESDs, as described above, read the following sections.

26
## Step 1 - Installing aliRoot
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

Here is the sequence of steps for installing aliRoot, so you are able to process the relevant information for the project.

1) Install aliBuild. Follow instructions on https://alice-doc.github.io/alice-analysis-tutorial/building/custom.html

2) Initialize AliPhysics

```bash
cd ~/alice
aliBuild init AliPhysics@master
```
3) Verify dependencies (Optional)

```bash
$ aliDoctor AliPhysics
```
4) Build AliPhysics with aliroot5 (this may take a long time)
```bash
aliBuild build AliPhysics --defaults user -z aliroot5
```

48
## Step 2 - Getting an ESD file
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
49

50
ESD files regarding the ALICE experiment can be found on http://opendata.cern.ch/search?page=1&size=20&experiment=ALICE. If you have doubts on which file to pick for a test, you can select any file on this list: http://opendata.cern.ch/record/1102.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
51

52
Here, there are two options from which you can choose:
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
53

54
- the first one is to download your ESD file and save it in the `alice-blender-animation` directory, which was cloned from the git repository. Make sure you save it on the same path as this `README.md` file and the `workflow_sketch.sh` script, not inside the "aliRoot" or "animate" directories. Also make sure the file is named `AliESDs.root`.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
55

56
- the second one is to copy the URL for the ESD file (the address you would click to download it) and paste it on the command line when you run the script that generates the animation, according to the next section.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
57

58
## Step 3 - Generating animation
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
59

60
Once you are all set, run the `workflow_sketch.sh` script through your terminal in the following way:
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
61
62

```bash
63
./workflow_sketch.sh <DOWNLOAD> <URL>
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
64
65
```

66
where <DOWNLOAD> is either "true" of "false", depending on whether you wish to download the ESD file or just go with the one you have already downloaded.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
67

68
If you type in "true", fill in the <URL> field with your ESD's URL, copied in the previous section. The code will then automatically download and run the analysis on the file.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
69

70
If you type in "false" - in which case you should have downloaded the ESD file yourself - just leave the <URL> field blank.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
71

72
Have in mind that it will take a long time to generate all the animations.
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
73

74
After running the script, your Blender animations should be ready! For each event inside the ESD file, there will be three animations saved in .mp4 format, each one corresponding to a different view of the event. They will be available inside the `output` directory. Enjoy!
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
75
76
77
78


# Default Animation

79
For generating a default animation, simply run the script `workflow_sketch.sh` in your terminal as below:
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
80
81

```bash
82
./workflow_sketch.sh 0 0 true
Breno Rilho Lemos's avatar
Breno Rilho Lemos committed
83
```
84
85

After this, a single default animation should be ready. It will be available inside the `output` directory, in mp4 format. Enjoy!