-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cluster sequence utilities and reconstruction animation (#65)
* Add ranking of jets Utility function that returns a ranking of initial jets according to some value, by default p_T Used to assign stable values to subsequently reconstructed jets based on their constituents, e.g., for mapping to colours for plotting * Add intermediate state and plotting Add a method to retrieve the intermediate state of a reconstruction (using a special struct, JetWithAncestors) Plotter for this intermediate state, which preserves colours based on a ranking of primary clusters (defaults to p_T ranking) * Fix bug in reco_state Use the jetp_index of the parent's history entry, instead of the history entry index (which is wrong) Add merge_steps method to count the number of meaningful iterations in the reconstruction process (used to get the number of animation steps) * Add reconstruction animation function animatereco() calculates all of the intermediate states during the reconstruction and plots them with meshplot, creating an animation output * Add feature to plot ancestors Option to plot all ancestors of a growing jet, using the colour of the jet they merge to * Shifting perspective Allow passing of tuple of two numbers for axis view options that give the starting and ending points for the axis view Code refomatted * Wrap colormap values When there are > length(colormap) starting clusters the extra ones are clipped, so instead wrap back to the start of the colormap N.B. There is an assumption here that the colormap has 256 categorical values, which may not be true. However, I can't currently find an easy way to inspect a colormap Symbol and extract the length * Use variable for colormap end * Add title and end frames options Title does what it says on the tin... End frames extend the animation at the end * Minor updates Ignore video files in the example directory Remove unneeded dependencies from jetreco.jl * Improved documentation Add Documenter setup to use @autodocs to generate all public and internal documentation. Use @ref links to refer to methods and types in main documentation pages. Move get_all_ancestors() method to ClusterSequence (it is not visualisation). Add logo for the package!
- Loading branch information
1 parent
889b9e4
commit 12079ac
Showing
18 changed files
with
748 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[deps] | ||
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0" | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
JetReconstruction = "44e8cb2c-dfab-4825-9c70-d4808a591196" | ||
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" | ||
|
||
[compat] | ||
Documenter = "1.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
using Documenter | ||
using CairoMakie | ||
using JetReconstruction | ||
|
||
makedocs(sitename = "JetReconstruction.jl") | ||
push!(LOAD_PATH, "../ext/") | ||
|
||
include(joinpath(@__DIR__, "..", "ext", "JetVisualisation.jl")) | ||
|
||
makedocs(sitename = "JetReconstruction.jl", | ||
pages = [ | ||
"Home" => "index.md", | ||
"Examples" => "examples.md", | ||
"Reference" => Any["Public API" => "lib/public.md", | ||
"Internal API" => "lib/internal.md", | ||
"Visualisation API" => "lib/visualisation.md"] | ||
]) | ||
|
||
deploydocs(repo = "github.com/JuliaHEP/JetReconstruction.jl.git", | ||
push_preview = true) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Jet Reconstruction Internal Documentation | ||
|
||
Documentation for `JetReconstruction.jl`'s internal methods and types. | ||
|
||
N.B. no guarantee is made of stability of these interfaces or types. | ||
|
||
```@meta | ||
CollapsedDocStrings = true | ||
``` | ||
|
||
## Index | ||
|
||
```@index | ||
Pages = ["internal.md"] | ||
``` | ||
|
||
## Public Interface | ||
|
||
```@autodocs | ||
Modules = [JetReconstruction] | ||
Public = false | ||
Order = [:function, :type] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Jet Reconstruction Public Documentation | ||
|
||
Documentation for `JetReconstruction.jl`'s public interfaces. | ||
|
||
## Index | ||
|
||
```@index | ||
Pages = ["public.md"] | ||
``` | ||
|
||
## Public Methods and Types | ||
|
||
```@autodocs | ||
Modules = [JetReconstruction] | ||
Private = false | ||
Order = [:function, :type] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Jet Visualisation Documentation | ||
|
||
Documentation for visualisation interfaces extension module. | ||
|
||
## Index | ||
|
||
```@index | ||
Pages = ["visualisation.md"] | ||
``` | ||
|
||
## Jet Visualisation Public Interfaces | ||
|
||
```@autodocs | ||
Modules = [JetVisualisation] | ||
Order = [:function] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Ignore visualisation outputs | ||
*.png | ||
*.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.