-
Notifications
You must be signed in to change notification settings - Fork 21
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
Persist the actual simulated position of the ECAL hit rather than the cell center #1484
Comments
Re: #1482 (comment) Thanks @tomeichlersmith for the context. I just feel like that with this the meaning of the simhit position is lost. And you are right that it's not relevant to data. I'd like to make a quick test to see how things change if we move to this. |
Quite a lot of changes in the log level Trigger energy by quite often with 5 GeV, sometimes upto 60 GeV. I dont know if it's coming from here, the PR about the thresholds should not change the energy part only if it passes, and also this is 1e so there the threshold is not even changed. Then the lin-reg changes, although the K-S does not say it's bad. Anyway small changes here and there. I think we should have this, just for the geometry testing aspect, and so that the simhit positions have a specific meaning (and not just a copy of the rechit positions). |
I got carried away looking at the logs and seeing a difference of What I didAfter downloading the inclusive PR validation artifact, unzipping and unpacking it. I used
Plot made with Python 3.10.12
BEGIN {
printf "new;old;event"
}
{
if ($1 == "<") {
# original side of diff
printf "%s", $11
} else if ($1 == ">") {
# other side of diff
printf "%s%s\n", $11, $5
}
}
import pandas as pd
import matplotlib.pyplot as plt
esum = pd.read_csv('esumdiff.csv')
plt.hist(
esum['new']-esum['old'],
bins=40,
range=(-0.20,1.80)
)
plt.xlabel('New - Gold ECal Esum / MeV')
plt.ylabel('Events')
plt.yscale('log')
plt.title('Inclusive PR Validation Sample')
plt.savefig('esumdiff.png', bbox_inches='tight')
plt.close() |
Yeah so at this point it's a small difference but also not a null difference. Which to mean concludes that we should do the change, but we should not worry that it changed the physics we already published / presented. (I'm actually not sure if we have a published paper with v14 [and if this difference between GDML and EcalGeom came in for v14 or earlier]) |
Is your feature request related to a problem? Please describe.
This came up in #1482
Currently the ECAL simhit positions are exactly the same as the rechit positions since they go through the EcalGeometry.
See
ldmx-sw/SimCore/src/SimCore/SDs/EcalSD.cxx
Lines 79 to 110 in 34d43a5
In the code there is a comment about the change this issue brings up.
Please note the other subsystems do use the real positions
ldmx-sw/SimCore/src/SimCore/SDs/HcalSD.cxx
Line 159 in 34d43a5
ldmx-sw/SimCore/src/SimCore/SDs/ScoringPlaneSD.cxx
Line 55 in 34d43a5
ldmx-sw/SimCore/src/SimCore/SDs/TrackerSD.cxx
Line 55 in 34d43a5
ldmx-sw/SimCore/src/SimCore/SDs/TrigScintSD.cxx
Line 62 in 34d43a5
Although I should say that the TS has this line
which I'm not sure what it does / is needed, and if it is needed why the other subsystems dont use it.
Describe the solution you'd like
Persist the actual simulated position of the ECAL hit rather than the cell center
i.e.
Describe alternatives you've considered
Keep as it is.
The text was updated successfully, but these errors were encountered: