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

Torch test #78

Closed
wants to merge 6 commits into from
Closed

Torch test #78

wants to merge 6 commits into from

Conversation

ggalgoczi
Copy link
Collaborator

A branch for testing the "torch" photon generation without saving photons and reading them in.

By running the commands in the readme file I get the following results:

PhotonSD::EndOfEvent Number of PhotonHits: 22
Opticks: NumCollected: 1
Opticks: NumCollected: 100
Opticks: NumHits: 25

One can see that there are Opticks and G4 Hits too.

Added environment variables used for torch.
emphasize that primary photon number is set by environment variable too
@plexoos
Copy link
Member

plexoos commented Dec 12, 2024

This PR introduces many changes and completely rewrites the current logic. It might be better to reorganize the code by introducing a switch between the existing and the new logic, or simply create a new file that can be developed in parallel to g4app.h

@ggalgoczi
Copy link
Collaborator Author

We can create a new file instead of g4app.h

I will do that once I clear issues with higher priority.

Closing this PR then.

The discrepancy between G4 and Opticks hits was solved since then in
#80

@ggalgoczi ggalgoczi closed this Dec 12, 2024
@plexoos
Copy link
Member

plexoos commented Dec 12, 2024

Okay... So, do I understand correctly, that all we need is to change REFLECTIVITY in the gdml geometry?

@ggalgoczi
Copy link
Collaborator Author

For issue #80 yes. Keep in mind issue #74 that we talked about yesterday is a different one, it was not solved yet.

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