Commit b9f268d
authored
Don't forget unattenuated energy and restore discarded sim variables in SimCalorimeterHitProcessor (#2198)
### Briefly, what does this PR introduce?
This PR does addresses two issues in SimCalorimeterHitProcessor:
1. The unattenuated energy is necessary to benchmark e.g. clustering
algorithm performance, or to train AI algorithms. While it was
originally foreseen to be available through 2-step simulated hit
processor, but was then not added once we combined both steps for
performance reasons.
2. Some variables in the SimCalorimeterHit were silently removed in
#2076 as they were deemed "not needed". However, this was not
documented, and leaves the actual SimCalorimeterHits that we use for our
digi/reco in a partially filled state with some information
irretrievably lost.
I addressed the issues as follows
1. Keep track of the unattenuated energy and store it with the
contribution members of the SimCalorimeterHit so it can still be
accessed. It means that
SimCalorimeterHit.energy/sum(contribution.energies) equals the effective
attenuation.
2. Restored the discarded PID/position.xyz/... fields
### What kind of change does this PR introduce?
- [X] Bug fix (issue #__)
- [X] New feature (issue #__)
- [ ] 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?
### Does this PR change default behavior?1 parent be68024 commit b9f268d
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
203 | | - | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| |||
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
216 | | - | |
217 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
218 | 223 | | |
219 | 224 | | |
| 225 | + | |
| 226 | + | |
220 | 227 | | |
221 | | - | |
| 228 | + | |
222 | 229 | | |
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
226 | | - | |
227 | | - | |
| 233 | + | |
| 234 | + | |
228 | 235 | | |
229 | 236 | | |
230 | 237 | | |
| |||
0 commit comments