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

Add optical collector for generating scintillation and Cerenkov distribution data #1173

Merged
merged 29 commits into from
Apr 19, 2024

Conversation

amandalund
Copy link
Contributor

@amandalund amandalund commented Apr 1, 2024

This adds an optical collector class to build the pre- and post-step actions for creating the optical distribution data. A test runs the stepping loop with these actions added and checks the generated distributions.

- Add optical state and params data for generating distributions
- Refactor Cerenkov pre-generator to allocate distribution on stack
- Add optical collector class
- Add pre-generator action
- Update optical test base and Cerenkov test
@amandalund amandalund added enhancement New feature or request physics Particles, processes, and stepping algorithms labels Apr 1, 2024
Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks really good so far. I think it wouldn't be difficult to split the pregenerator refactoring into a separate PR?

src/celeritas/io/LivermorePEReader.cc Outdated Show resolved Hide resolved
src/celeritas/optical/OpticalCollector.hh Outdated Show resolved Hide resolved
@amandalund
Copy link
Contributor Author

Thanks @sethrj, yeah I can definitely move the pre-gen changes into a separate PR.

@sethrj sethrj mentioned this pull request Apr 10, 2024
30 tasks
@amandalund
Copy link
Contributor Author

@sethrj I'm happy to split this up further if you'd like since it's still a little large (maybe into actions/executors and collector/test).

@amandalund amandalund marked this pull request as ready for review April 16, 2024 23:21
Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

src/celeritas/optical/OpticalCollector.hh Outdated Show resolved Hide resolved
src/celeritas/optical/OpticalCollector.hh Outdated Show resolved Hide resolved
test/geocel/data/lar-sphere.org.json Show resolved Hide resolved
@sethrj sethrj merged commit 6410b48 into celeritas-project:develop Apr 19, 2024
26 checks passed
@amandalund amandalund deleted the optical-collector branch April 19, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request physics Particles, processes, and stepping algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants