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

Added g4hits and sensitive detector aux data read in from GDML #52

Merged
merged 3 commits into from
Nov 10, 2024

Conversation

ggalgoczi
Copy link
Collaborator

Added G4Hits. The sensitive detector can be set in the GDML file by adding

<auxiliary auxtype="SensDet" auxvalue="PhotonDetector" />

to the sensitive volume. The hits contain the following information:

  1. unsigned id,
  2. G4double energy,
  3. G4double time,
  4. G4ThreeVector position
  5. G4ThreeVector direction
  6. G4ThreeVector polarization

The hits are available for processing in the EndOfEvent function.

@ggalgoczi
Copy link
Collaborator Author

The test fails because the Opticks version that the test runs was not updated to the newest Opticks version.

@plexoos
Copy link
Member

plexoos commented Nov 8, 2024

Thanks for implementing this! It looks good, but I'd like to run the updated code. I'm trying to figure out why the updates in Opticks are failing our test.

@plexoos
Copy link
Member

plexoos commented Nov 8, 2024

The test passes when Opticks is compiled in debug mode

@ggalgoczi ggalgoczi merged commit 2edeaf3 into main Nov 10, 2024
2 checks passed
@ggalgoczi ggalgoczi deleted the g4hits branch November 10, 2024 18:12
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.

2 participants