Cluster sequence return type #38
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes the return type of all algorithms the FastJet-ish$d_{ij}$ values, etc.).
ClusterSequence
which encapsulates all of the intermediate reconstruction steps and the record of cluster merges (parents, children,This unifies the
N2Tiled
andN2Plain
return values,Closes #29
Closes #36
The tiling parameter has been factorised out of the
ClusterSequence
as this is an internal parameter forN2Tiled
.Closes #37
For the
N2Plain
algorithm, we now exclusively usePseudoJet
as the cluster structure type - conversions are made from in the publicplain_jet_reconstruct
function toPseudoJet
before calling the internal implementation function_plain_jet_reconstruct
.The
PseudoJet
vector, of all clusters, is now held inside the cluster sequence, and an extra vector is used which maps the compact index (used for heavy calculations) to the relevant index of the cluster sequence jets.Note that
@debug
code needs to be completely commented out as even having it in the algorithm causes noticeable performance degradations (see JuliaLang/julia#28147, even though with mitigations the performance still drops by a noticeable amount).To help with performance testing, the
--profile
option now takes an argument, which controls where the profiling output is written - this allows different versions of the code to be looked at side-by-side.