Skip to content

Commit 0e2fe57

Browse files
authored
Merge branch 'JuliaHEP:main' into substructure
2 parents 9bfb938 + 7e570cb commit 0e2fe57

19 files changed

+2748
-253
lines changed

docs/src/examples.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ browsed directly on
88
*Note:* because of extra dependencies in these scripts, one must use the
99
`Project.toml` file in the `examples` directory.
1010

11-
## Standalone Examples
11+
## Standalone Basic Reconstruction Examples
1212

1313
### `jetreco.jl`
1414

@@ -38,24 +38,43 @@ performance for the AntiKt algorithm using the tiled strategy:
3838
julia --project instrumented-jetreco.jl -S N2Tiled -A AntiKt --nsamples 100 ../test/data/events.hepmc3
3939
```
4040

41+
## Visualisation
42+
43+
This subdirectory contains examples showing how to use built in support for
44+
visualising jets - either a final reconstruction state or an animation of the
45+
reconstruction process.
46+
47+
Particularly here the heavy Makie dependency is contained in the `Project.toml`
48+
file for these examples only.
49+
4150
### `visualise-jets.jl`
4251

4352
This script will produce a PNG/PDF showing the results of a jet reconstruction.
4453
This is a 3D plot where all the initial energy deposits are visualised, with
4554
colours that indicate in which final cluster the deposit ended up in.
4655

47-
### `visualise-jets.ipynb`
56+
```sh
57+
julia --project visualise-jets.jl -A AntiKt -R 1.0 ../../test/data/events.pp13TeV.hepmc3.gz test-pp.png
58+
```
59+
60+
### `visualise-jets.ipynb` and `visualise-jets-nb.ipynb`
61+
62+
Similar to `visualise-jets.jl` these notebooks will produce a visualisation of
63+
jet reconstruction in the browser. This is a 3D plot where all the initial
64+
energy deposits are visualised, with colours that indicate in which final
65+
cluster the deposit ended up in.
4866

49-
Similar to `visualise-jets.jl` this notebook will produce a visualisation of jet
50-
reconstruction in the browser. This is a 3D plot where all the initial energy
51-
deposits are visualised, with colours that indicate in which final cluster the
52-
deposit ended up in.
67+
The first example is a Jupyter notbook, the second runs in Pluto.
5368

5469
### `animate-reconstruction.jl`
5570

5671
Performs jet reconstruction and then produces and animation of the process,
5772
showing how the jets merge from their different constituents.
5873

74+
```sh
75+
julia --project animate-reconstruction.jl -A AntiKt -R 1.0 ../../test/data/events.pp13TeV.hepmc3.gz test-pp.mp4
76+
```
77+
5978
## EDM4hep
6079

6180
The `examples/EDM4hep` folder contains examples of using EDM4hep reconstructed

examples/Project.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
[deps]
22
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
3-
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
43
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
54
FlameGraphs = "08572546-2f56-4bcf-ba4e-bab62c3a3f89"
6-
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
75
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
86
JetReconstruction = "44e8cb2c-dfab-4825-9c70-d4808a591196"
97
LorentzVectorHEP = "f612022c-142a-473f-8cfd-a09cf3793c6c"
10-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
11-
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
12-
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
138
Profile = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"
149
ProfileSVG = "132c30aa-f267-4189-9183-c8a63c7e05e6"
15-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1610
StatProfilerHTML = "a8a75453-ed82-57c9-9e16-4cd1196ecbf5"

examples/README.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# JetReconstruction.jl Examples
22

3-
This directory has a number of example files that show how to used the
4-
`JetReconstruction.jl` package.
3+
This directory and subdirectories have a number of example files that show how
4+
to used the `JetReconstruction.jl` package.
55

66
Because of extra dependencies in these scripts, one must use the `Project.toml`
77
file in this directory.
@@ -20,20 +20,3 @@ strategy, producing exclusive and inclusive jet selections.
2020
This is a more sophisticated example that allows performance measurements to be
2121
made of the reconstruction, as well as profiling (flamegraphs and memory
2222
profiling).
23-
24-
## `visualise-jets.jl`
25-
26-
This script will produce a PNG/PDF showing the results of a jet reconstruction.
27-
This is a 3D plot where all the initial energy deposits are visualised, with
28-
colours that indicate in which final cluster the deposit ended up in.
29-
30-
## `visualise-jets.ipynb`
31-
32-
This notebook will produce a visualisation of jet reconstruction in the browser.
33-
This is a 3D plot where all the initial energy deposits are visualised, with
34-
colours that indicate in which final cluster the deposit ended up in.
35-
36-
## `animate-reconstruction.jl`
37-
38-
Performs jet reconstruction and then produces and animation of the process,
39-
showing how the jets merge from their different constituents.

examples/benchmark.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/sh
2+
#
3+
# Quick and dirty set of benchmarks for the most important cases
4+
echo "pp 14TeV Tiled"
5+
julia --project instrumented-jetreco.jl --algorithm=AntiKt -R 0.4 ../test/data/events.pp13TeV.hepmc3.gz -S N2Tiled -m 16
6+
7+
echo "pp 14 TeV Plain"
8+
julia --project instrumented-jetreco.jl --algorithm=AntiKt -R 0.4 ../test/data/events.pp13TeV.hepmc3.gz -S N2Plain -m 16
9+
10+
echo "ee H Durham"
11+
julia --project instrumented-jetreco.jl --algorithm=Durham ../test/data/events.eeH.hepmc3.gz -m 16

0 commit comments

Comments
 (0)