-
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
Add one-to-one relation with raw tracker/calorimeter hit for reconstructed tracker/calorimeter hit #1535
Conversation
I think there is a desire to move forward on tracking here, where the implementation is essentially complete thanks to one-to-one associations and relations, but I fear that if we add calorimeter hit associations and relations to the scope of this PR it will be slowed down. In particular, the CalorimeterHitDigi does pre-digitization merging of SimCalorimeterHits, so the associations are going to be requiring some non-trivial code. So, I suggest we keep this PR for tracker (and photomultiplier) hits only, and create a similar PR for calorimeters that may need more non-trivial code. |
In particular, we want more than just the leading hit in EICrecon/src/algorithms/calorimetry/CalorimeterHitDigi.cc Lines 190 to 194 in ec93c74
and that then requires that we decide on a weight strategy ( hit.getEnergy() / edep probably).
|
2c244b3
to
3132e8d
Compare
Capybara summary for PR 1535 |
for more information, see https://pre-commit.ci
This cannot go in until all references to edm4hep::RawCalorimeterHit is replaced by edm4eic::RawCalorimeterHit
fdbe7ac
to
b00a3fd
Compare
Quality Gate passedIssues Measures |
…y number of hits (#1564) ### Briefly, what does this PR introduce? This PR builds on #1535 to create `edm4eic::Track` associations to `edm4hep::MCParticles`. Results in weights like this: ``` events->Draw("CentralCKFTrackAssociations.weight") ``` ![image](https://github.com/user-attachments/assets/a775165c-f644-49f7-8943-322daf4cc2f7) ``` events->Draw("sqrt(MCParticles[_CentralCKFSeededTrackAssociations_sim.index].momentum.x**2+MCParticles[_CentralCKFSeededTrackAssociations_sim.index].momentum.y**2+MCParticles[_CentralCKFSeededTrackAssociations_sim.index].momentum.z**2)") ``` ![image](https://github.com/user-attachments/assets/217ba69b-f288-4b6b-b49b-6dbcdaf7ca2f) ### What kind of change does this PR introduce? - [ ] Bug fix (issue #__) - [x] New feature (issue: track associations) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [ ] Changes have been communicated to collaborators ### Does this PR introduce breaking changes? What changes might users need to make to their code? No. ### Does this PR change default behavior? No.
Briefly, what does this PR introduce?
Add one-to-one relation with raw tracker/calorimeter hit for reconstructed tracker/calorimeter hit. Contingent on eic/EDM4eic#86.
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?
Does this PR change default behavior?