Skip to content
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

fix units in Geant4FastSimShowerModel::constructSensitives #1088

Merged
merged 3 commits into from
Apr 21, 2023

Conversation

gaede
Copy link
Contributor

@gaede gaede commented Apr 6, 2023

BEGINRELEASENOTES

  • fix units in Geant4FastSimShowerModel::constructSensitives
    • used for energy check in Geant4FastSimShowerModel::check_trigger for fast simulation

ENDRELEASENOTES

Logically this should be correct: dd4hep::_toDouble(prop.second)/dd4hep::GeV*CLHEP::GeV - we have a dd4hep property for an energy and need it in Geant4/CLHEP units for GeV. However this is a factor 1000. too large (old code was 1000. too small). @MarkusFrankATcernch Am I missing sth. here ? What is the correct way to convert dd4hep unit to g4 ?

@gaede gaede changed the title fix units in Geant4FastSimShowerModel::constructSensitives WIP: fix units in Geant4FastSimShowerModel::constructSensitives Apr 6, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
 - units from properties specified in ddsim_steer.py
   already are in G4units, so no conversion needed
@gaede
Copy link
Contributor Author

gaede commented Apr 7, 2023

If I understand this correctly, we use G4units in ddsim exclusively. Then there should be no conversion applied at all in Geant4FastSimShowerModel::constructSensitives...

@gaede gaede changed the title WIP: fix units in Geant4FastSimShowerModel::constructSensitives fix units in Geant4FastSimShowerModel::constructSensitives Apr 20, 2023
@andresailer andresailer merged commit c28cb92 into AIDASoft:master Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants