-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable calorimeter hit merging by functions #1668
Open
ruse-traveler
wants to merge
17
commits into
main
Choose a base branch
from
add-merge-matrix-to-hit-merger
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+201
−33
Conversation
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
for more information, see https://pre-commit.ci
…con into add-merge-matrix-to-hit-merger
for more information, see https://pre-commit.ci
Capybara summary for PR 1668
|
…con into add-merge-matrix-to-hit-merger
ruse-traveler
temporarily deployed
to
github-pages
November 8, 2024 00:16
— with
GitHub Actions
Inactive
ruse-traveler
temporarily deployed
to
github-pages
November 13, 2024 23:59
— with
GitHub Actions
Inactive
I think this is ready to go. I'll post some plots here showing the test case in the BHCal at work shortly... |
ruse-traveler
temporarily deployed
to
github-pages
November 14, 2024 18:18
— with
GitHub Actions
Inactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Briefly, what does this PR introduce?
This PR extends the functionality of the
CalorimeterHitsMerger
algorithm. Previously, reconstructed hits could only be merged across a given field of the readout of a calorimeter. This presents a challenge for calorimeters such as the Barrel HCal whereThis PR addresses this point by utilizing the
EvaluatorSvc
in a manner similar to theadjacencyMatrix
,peakNeighbourhoodMatrix
of theCalorimeterIslandClustering
and thesampFrac
ofCalorimeterHitReco
. Now the user has an option to specify a mapping for a specific field of the readout via themappings
option, which defines a function to map the indices of a field onto the desired reference indices.For example:
The
HcalBarrelMergedHits
collection will merge 5 hits (i.e. scintillator tiles for the BHCal) adjacent in phi into a one with the position and cellID of the 1st of the 5. However, no hits will be merged along eta in this example.If a mapping is provided, the algorithm will construct the map of which hits to merge according the provided functions. If not, it will attempt to merge hits across the provided fields into the indices defined by
refs
.What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
No.
Does this PR change default behavior?
No.